From cb3716ffb584fe0f593b6f1669a8efdba1305104 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 29 Mar 2016 02:16:55 +1000 Subject: Added my version of libg3d and friends. --- .../mimesh/libg3d-0.0.8/plugins/import/Makefile | 554 ++++ .../mimesh/libg3d-0.0.8/plugins/import/Makefile.am | 40 + .../mimesh/libg3d-0.0.8/plugins/import/Makefile.in | 554 ++++ .../libg3d-0.0.8/plugins/import/imp_3dm/Makefile | 517 ++++ .../plugins/import/imp_3dm/Makefile.am | 26 + .../plugins/import/imp_3dm/Makefile.in | 517 ++++ .../libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c | 169 ++ .../libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h | 31 + .../plugins/import/imp_3dm/imp_3dm_callbacks.c | 278 ++ .../plugins/import/imp_3dm/imp_3dm_callbacks.h | 34 + .../plugins/import/imp_3dm/imp_3dm_chunks.h | 114 + .../plugins/import/imp_3dm/imp_3dm_object.c | 80 + .../plugins/import/imp_3dm/imp_3dm_object.h | 32 + .../plugins/import/imp_3dm/imp_3dm_object_types.h | 61 + .../plugins/import/imp_3dm/imp_3dm_types.h | 64 + .../libg3d-0.0.8/plugins/import/imp_3dmf/Makefile | 512 ++++ .../plugins/import/imp_3dmf/Makefile.am | 21 + .../plugins/import/imp_3dmf/Makefile.in | 512 ++++ .../plugins/import/imp_3dmf/imp_3dmf.c | 646 +++++ .../plugins/import/imp_3dmf/imp_3dmf_callbacks.c | 23 + .../plugins/import/imp_3dmf/imp_3dmf_callbacks.h | 42 + .../plugins/import/imp_3dmf/imp_3dmf_chunks.h | 95 + .../libg3d-0.0.8/plugins/import/imp_3ds/Makefile | 512 ++++ .../plugins/import/imp_3ds/Makefile.am | 21 + .../plugins/import/imp_3ds/Makefile.in | 512 ++++ .../libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.c | 206 ++ .../libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h | 55 + .../plugins/import/imp_3ds/imp_3ds_callbacks.c | 992 +++++++ .../plugins/import/imp_3ds/imp_3ds_callbacks.h | 56 + .../plugins/import/imp_3ds/imp_3ds_chunks.h | 210 ++ .../libg3d-0.0.8/plugins/import/imp_ac3d/Makefile | 509 ++++ .../plugins/import/imp_ac3d/Makefile.am | 20 + .../plugins/import/imp_ac3d/Makefile.in | 509 ++++ .../plugins/import/imp_ac3d/imp_ac3d.c | 534 ++++ .../libg3d-0.0.8/plugins/import/imp_acf/Makefile | 523 ++++ .../plugins/import/imp_acf/Makefile.am | 29 + .../plugins/import/imp_acf/Makefile.in | 523 ++++ .../libg3d-0.0.8/plugins/import/imp_acf/README | 15 + .../libg3d-0.0.8/plugins/import/imp_acf/imp_acf.c | 338 +++ .../libg3d-0.0.8/plugins/import/imp_acf/imp_acf.h | 39 + .../plugins/import/imp_acf/imp_acf_airfoil.c | 166 ++ .../plugins/import/imp_acf/imp_acf_airfoil.h | 44 + .../plugins/import/imp_acf/imp_acf_def.c | 127 + .../plugins/import/imp_acf/imp_acf_def.h | 39 + .../plugins/import/imp_acf/imp_acf_def_acf603.h | 359 +++ .../plugins/import/imp_acf/imp_acf_def_acf625.h | 406 +++ .../plugins/import/imp_acf/imp_acf_def_acf630.h | 417 +++ .../plugins/import/imp_acf/imp_acf_def_acf640.h | 449 ++++ .../plugins/import/imp_acf/imp_acf_def_acf651.h | 456 ++++ .../plugins/import/imp_acf/imp_acf_def_acf700.h | 506 ++++ .../plugins/import/imp_acf/imp_acf_def_acf740.h | 584 ++++ .../plugins/import/imp_acf/imp_acf_def_proto.h | 49 + .../plugins/import/imp_acf/imp_acf_detect.c | 77 + .../plugins/import/imp_acf/imp_acf_detect.h | 30 + .../plugins/import/imp_acf/imp_acf_wing.c | 79 + .../plugins/import/imp_acf/imp_acf_wing.h | 35 + .../libg3d-0.0.8/plugins/import/imp_ar/Makefile | 517 ++++ .../libg3d-0.0.8/plugins/import/imp_ar/Makefile.am | 23 + .../libg3d-0.0.8/plugins/import/imp_ar/Makefile.in | 517 ++++ .../libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c | 183 ++ .../libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h | 33 + .../plugins/import/imp_ar/imp_ar_carini.c | 247 ++ .../plugins/import/imp_ar/imp_ar_carini.h | 35 + .../plugins/import/imp_ar/imp_ar_decompress.c | 161 ++ .../plugins/import/imp_ar/imp_ar_decompress.h | 30 + .../plugins/import/imp_ar/imp_ar_dof.c | 446 ++++ .../plugins/import/imp_ar/imp_ar_dof.h | 33 + .../libg3d-0.0.8/plugins/import/imp_ase/Makefile | 509 ++++ .../plugins/import/imp_ase/Makefile.am | 20 + .../plugins/import/imp_ase/Makefile.in | 509 ++++ .../libg3d-0.0.8/plugins/import/imp_ase/imp_ase.c | 257 ++ .../libg3d-0.0.8/plugins/import/imp_blend/Makefile | 519 ++++ .../plugins/import/imp_blend/Makefile.am | 26 + .../plugins/import/imp_blend/Makefile.in | 519 ++++ .../plugins/import/imp_blend/imp_blend.c | 201 ++ .../plugins/import/imp_blend/imp_blend_callbacks.c | 237 ++ .../plugins/import/imp_blend/imp_blend_callbacks.h | 35 + .../plugins/import/imp_blend/imp_blend_chunks.h | 63 + .../plugins/import/imp_blend/imp_blend_def.h | 42 + .../plugins/import/imp_blend/imp_blend_read.c | 39 + .../plugins/import/imp_blend/imp_blend_read.h | 30 + .../plugins/import/imp_blend/imp_blend_sdna.c | 467 ++++ .../plugins/import/imp_blend/imp_blend_sdna.h | 53 + .../plugins/import/imp_blend/imp_blend_types.h | 100 + .../libg3d-0.0.8/plugins/import/imp_c4d/Makefile | 510 ++++ .../plugins/import/imp_c4d/Makefile.am | 22 + .../plugins/import/imp_c4d/Makefile.in | 510 ++++ .../libg3d-0.0.8/plugins/import/imp_c4d/imp_c4d.c | 363 +++ .../libg3d-0.0.8/plugins/import/imp_cob/Makefile | 509 ++++ .../plugins/import/imp_cob/Makefile.am | 20 + .../plugins/import/imp_cob/Makefile.in | 509 ++++ .../libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c | 430 +++ .../libg3d-0.0.8/plugins/import/imp_dae/Makefile | 518 ++++ .../plugins/import/imp_dae/Makefile.am | 25 + .../plugins/import/imp_dae/Makefile.in | 518 ++++ .../libg3d-0.0.8/plugins/import/imp_dae/imp_dae.c | 126 + .../plugins/import/imp_dae/imp_dae_cb.c | 877 ++++++ .../plugins/import/imp_dae/imp_dae_cb.h | 75 + .../plugins/import/imp_dae/imp_dae_chunks.h | 95 + .../plugins/import/imp_dae/imp_dae_library.c | 167 ++ .../plugins/import/imp_dae/imp_dae_library.h | 38 + .../plugins/import/imp_dae/imp_dae_xml.c | 257 ++ .../plugins/import/imp_dae/imp_dae_xml.h | 44 + .../libg3d-0.0.8/plugins/import/imp_dpm/Makefile | 510 ++++ .../plugins/import/imp_dpm/Makefile.am | 22 + .../plugins/import/imp_dpm/Makefile.in | 510 ++++ .../libg3d-0.0.8/plugins/import/imp_dpm/imp_dpm.c | 156 ++ .../libg3d-0.0.8/plugins/import/imp_dxf/Makefile | 523 ++++ .../plugins/import/imp_dxf/Makefile.am | 28 + .../plugins/import/imp_dxf/Makefile.in | 523 ++++ .../libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.c | 291 ++ .../libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h | 53 + .../plugins/import/imp_dxf/imp_dxf_callbacks.c | 349 +++ .../plugins/import/imp_dxf/imp_dxf_callbacks.h | 36 + .../plugins/import/imp_dxf/imp_dxf_chunks.h | 196 ++ .../plugins/import/imp_dxf/imp_dxf_color.c | 130 + .../plugins/import/imp_dxf/imp_dxf_color.h | 29 + .../plugins/import/imp_dxf/imp_dxf_def.h | 51 + .../plugins/import/imp_dxf/imp_dxf_entities.h | 70 + .../plugins/import/imp_dxf/imp_dxf_prop.c | 128 + .../plugins/import/imp_dxf/imp_dxf_prop.h | 40 + .../plugins/import/imp_dxf/imp_dxf_section.c | 233 ++ .../plugins/import/imp_dxf/imp_dxf_section.h | 34 + .../plugins/import/imp_dxf/imp_dxf_types.h | 78 + .../plugins/import/imp_dxf/imp_dxf_vars.h | 64 + .../libg3d-0.0.8/plugins/import/imp_flt/Makefile | 514 ++++ .../plugins/import/imp_flt/Makefile.am | 24 + .../plugins/import/imp_flt/Makefile.in | 514 ++++ .../libg3d-0.0.8/plugins/import/imp_flt/imp_flt.c | 175 ++ .../libg3d-0.0.8/plugins/import/imp_flt/imp_flt.h | 30 + .../plugins/import/imp_flt/imp_flt_callbacks.c | 999 +++++++ .../plugins/import/imp_flt/imp_flt_callbacks.h | 95 + .../plugins/import/imp_flt/imp_flt_opcodes.h | 136 + .../libg3d-0.0.8/plugins/import/imp_glb/Makefile | 509 ++++ .../plugins/import/imp_glb/Makefile.am | 20 + .../plugins/import/imp_glb/Makefile.in | 509 ++++ .../libg3d-0.0.8/plugins/import/imp_glb/imp_glb.c | 258 ++ .../plugins/import/imp_heightfield/Makefile | 509 ++++ .../plugins/import/imp_heightfield/Makefile.am | 20 + .../plugins/import/imp_heightfield/Makefile.in | 509 ++++ .../import/imp_heightfield/imp_heightfield.c | 115 + .../libg3d-0.0.8/plugins/import/imp_iob/Makefile | 512 ++++ .../plugins/import/imp_iob/Makefile.am | 21 + .../plugins/import/imp_iob/Makefile.in | 512 ++++ .../libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c | 98 + .../libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h | 33 + .../plugins/import/imp_iob/imp_iob_callbacks.c | 347 +++ .../plugins/import/imp_iob/imp_iob_callbacks.h | 37 + .../plugins/import/imp_iob/imp_iob_chunks.h | 73 + .../libg3d-0.0.8/plugins/import/imp_joe/Makefile | 509 ++++ .../plugins/import/imp_joe/Makefile.am | 20 + .../plugins/import/imp_joe/Makefile.in | 509 ++++ .../libg3d-0.0.8/plugins/import/imp_joe/imp_joe.c | 386 +++ .../libg3d-0.0.8/plugins/import/imp_kmz/Makefile | 514 ++++ .../plugins/import/imp_kmz/Makefile.am | 26 + .../plugins/import/imp_kmz/Makefile.in | 514 ++++ .../libg3d-0.0.8/plugins/import/imp_kmz/imp_kmz.c | 168 ++ .../libg3d-0.0.8/plugins/import/imp_ldraw/Makefile | 519 ++++ .../plugins/import/imp_ldraw/Makefile.am | 24 + .../plugins/import/imp_ldraw/Makefile.in | 519 ++++ .../plugins/import/imp_ldraw/imp_ldraw.c | 112 + .../plugins/import/imp_ldraw/imp_ldraw_color.c | 124 + .../plugins/import/imp_ldraw/imp_ldraw_color.h | 30 + .../plugins/import/imp_ldraw/imp_ldraw_library.c | 175 ++ .../plugins/import/imp_ldraw/imp_ldraw_library.h | 32 + .../plugins/import/imp_ldraw/imp_ldraw_misc.h | 36 + .../plugins/import/imp_ldraw/imp_ldraw_mpd.c | 121 + .../plugins/import/imp_ldraw/imp_ldraw_mpd.h | 33 + .../plugins/import/imp_ldraw/imp_ldraw_part.c | 291 ++ .../plugins/import/imp_ldraw/imp_ldraw_part.h | 31 + .../plugins/import/imp_ldraw/imp_ldraw_types.h | 48 + .../plugins/import/imp_leocad/Makefile | 510 ++++ .../plugins/import/imp_leocad/Makefile.am | 20 + .../plugins/import/imp_leocad/Makefile.in | 510 ++++ .../plugins/import/imp_leocad/imp_leocad.c | 496 ++++ .../plugins/import/imp_leocad/imp_leocad_library.c | 633 +++++ .../plugins/import/imp_leocad/imp_leocad_library.h | 62 + .../libg3d-0.0.8/plugins/import/imp_lwo/Makefile | 512 ++++ .../plugins/import/imp_lwo/Makefile.am | 21 + .../plugins/import/imp_lwo/Makefile.in | 512 ++++ .../libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.c | 216 ++ .../libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.h | 48 + .../plugins/import/imp_lwo/imp_lwo_callbacks.c | 584 ++++ .../plugins/import/imp_lwo/imp_lwo_callbacks.h | 41 + .../plugins/import/imp_lwo/imp_lwo_chunks.h | 124 + .../libg3d-0.0.8/plugins/import/imp_max/Makefile | 515 ++++ .../plugins/import/imp_max/Makefile.am | 26 + .../plugins/import/imp_max/Makefile.in | 515 ++++ .../libg3d-0.0.8/plugins/import/imp_max/imp_max.c | 358 +++ .../plugins/import/imp_max/imp_max_callbacks.c | 696 +++++ .../plugins/import/imp_max/imp_max_callbacks.h | 82 + .../plugins/import/imp_max/imp_max_chunks.h | 289 ++ .../libg3d-0.0.8/plugins/import/imp_maya/Makefile | 518 ++++ .../plugins/import/imp_maya/Makefile.am | 25 + .../plugins/import/imp_maya/Makefile.in | 518 ++++ .../plugins/import/imp_maya/imp_maya.c | 77 + .../plugins/import/imp_maya/imp_maya_callbacks.c | 645 +++++ .../plugins/import/imp_maya/imp_maya_callbacks.h | 43 + .../plugins/import/imp_maya/imp_maya_chunks.h | 130 + .../plugins/import/imp_maya/imp_maya_obj.c | 110 + .../plugins/import/imp_maya/imp_maya_obj.h | 41 + .../plugins/import/imp_maya/imp_maya_var.c | 60 + .../plugins/import/imp_maya/imp_maya_var.h | 33 + .../libg3d-0.0.8/plugins/import/imp_md2/Makefile | 509 ++++ .../plugins/import/imp_md2/Makefile.am | 20 + .../plugins/import/imp_md2/Makefile.in | 509 ++++ .../libg3d-0.0.8/plugins/import/imp_md2/imp_md2.c | 292 ++ .../plugins/import/imp_md2/imp_md2_normals.h | 192 ++ .../libg3d-0.0.8/plugins/import/imp_md3/Makefile | 509 ++++ .../plugins/import/imp_md3/Makefile.am | 20 + .../plugins/import/imp_md3/Makefile.in | 509 ++++ .../libg3d-0.0.8/plugins/import/imp_md3/imp_md3.c | 396 +++ .../libg3d-0.0.8/plugins/import/imp_nff/Makefile | 509 ++++ .../plugins/import/imp_nff/Makefile.am | 20 + .../plugins/import/imp_nff/Makefile.in | 509 ++++ .../libg3d-0.0.8/plugins/import/imp_nff/imp_nff.c | 169 ++ .../libg3d-0.0.8/plugins/import/imp_obj/Makefile | 509 ++++ .../plugins/import/imp_obj/Makefile.am | 20 + .../plugins/import/imp_obj/Makefile.in | 509 ++++ .../libg3d-0.0.8/plugins/import/imp_obj/imp_obj.c | 403 +++ .../libg3d-0.0.8/plugins/import/imp_osm/Makefile | 511 ++++ .../plugins/import/imp_osm/Makefile.am | 24 + .../plugins/import/imp_osm/Makefile.in | 511 ++++ .../libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c | 334 +++ .../libg3d-0.0.8/plugins/import/imp_q3o/Makefile | 509 ++++ .../plugins/import/imp_q3o/Makefile.am | 20 + .../plugins/import/imp_q3o/Makefile.in | 509 ++++ .../libg3d-0.0.8/plugins/import/imp_q3o/imp_q3o.c | 586 ++++ .../libg3d-0.0.8/plugins/import/imp_r4/Makefile | 513 ++++ .../libg3d-0.0.8/plugins/import/imp_r4/Makefile.am | 23 + .../libg3d-0.0.8/plugins/import/imp_r4/Makefile.in | 513 ++++ .../libg3d-0.0.8/plugins/import/imp_r4/imp_r4.c | 79 + .../plugins/import/imp_r4/imp_r4_callbacks.c | 418 +++ .../plugins/import/imp_r4/imp_r4_callbacks.h | 40 + .../plugins/import/imp_r4/imp_r4_chunks.h | 62 + .../libg3d-0.0.8/plugins/import/imp_rbh/Makefile | 513 ++++ .../plugins/import/imp_rbh/Makefile.am | 23 + .../plugins/import/imp_rbh/Makefile.in | 513 ++++ .../libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh.c | 88 + .../plugins/import/imp_rbh/imp_rbh_callbacks.c | 116 + .../plugins/import/imp_rbh/imp_rbh_callbacks.h | 32 + .../plugins/import/imp_rbh/imp_rbh_chunks.h | 38 + .../libg3d-0.0.8/plugins/import/imp_skp/Makefile | 516 ++++ .../plugins/import/imp_skp/Makefile.am | 24 + .../plugins/import/imp_skp/Makefile.in | 516 ++++ .../libg3d-0.0.8/plugins/import/imp_skp/imp_skp.c | 218 ++ .../libg3d-0.0.8/plugins/import/imp_skp/imp_skp.h | 25 + .../plugins/import/imp_skp/imp_skp_callbacks.c | 614 +++++ .../plugins/import/imp_skp/imp_skp_callbacks.h | 59 + .../plugins/import/imp_skp/imp_skp_chunks.h | 62 + .../plugins/import/imp_skp/imp_skp_read.c | 114 + .../plugins/import/imp_skp/imp_skp_read.h | 35 + .../plugins/import/imp_skp/imp_skp_types.h | 33 + .../libg3d-0.0.8/plugins/import/imp_stl/Makefile | 510 ++++ .../plugins/import/imp_stl/Makefile.am | 22 + .../plugins/import/imp_stl/Makefile.in | 510 ++++ .../libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c | 200 ++ .../libg3d-0.0.8/plugins/import/imp_ta/Makefile | 513 ++++ .../libg3d-0.0.8/plugins/import/imp_ta/Makefile.am | 23 + .../libg3d-0.0.8/plugins/import/imp_ta/Makefile.in | 513 ++++ .../libg3d-0.0.8/plugins/import/imp_ta/imp_ta.c | 77 + .../plugins/import/imp_ta/imp_ta_3do.c | 183 ++ .../plugins/import/imp_ta/imp_ta_3do.h | 31 + .../plugins/import/imp_ta/imp_ta_3do_palette.h | 286 ++ .../libg3d-0.0.8/plugins/import/imp_test/Makefile | 510 ++++ .../plugins/import/imp_test/Makefile.am | 22 + .../plugins/import/imp_test/Makefile.in | 510 ++++ .../plugins/import/imp_test/imp_test.c | 164 ++ .../libg3d-0.0.8/plugins/import/imp_vrml/Makefile | 524 ++++ .../plugins/import/imp_vrml/Makefile.am | 26 + .../plugins/import/imp_vrml/Makefile.in | 524 ++++ .../plugins/import/imp_vrml/imp_vrml.c | 122 + .../plugins/import/imp_vrml/imp_vrml_v1.c | 2788 ++++++++++++++++++++ .../plugins/import/imp_vrml/imp_vrml_v1.h | 356 +++ .../libg3d-0.0.8/plugins/import/imp_vrml2/Makefile | 518 ++++ .../plugins/import/imp_vrml2/Makefile.am | 26 + .../plugins/import/imp_vrml2/Makefile.in | 518 ++++ .../plugins/import/imp_vrml2/imp_vrml2.c | 82 + .../plugins/import/imp_vrml2/imp_vrml2.h | 42 + .../plugins/import/imp_vrml2/imp_vrml2_nodes.h | 42 + .../plugins/import/imp_vrml2/imp_vrml2_types.c | 78 + .../plugins/import/imp_vrml2/imp_vrml2_types.h | 103 + .../plugins/import/imp_vrml2/imp_vrml_read.c | 647 +++++ .../plugins/import/imp_vrml2/imp_vrml_read.h | 56 + .../plugins/import/imp_vrml2/imp_vrml_types.h | 88 + 285 files changed, 74555 insertions(+) create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/README create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf603.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf625.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf630.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf640.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf651.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf700.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf740.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_proto.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/imp_ase.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_def.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_types.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/imp_c4d.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/imp_dpm.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_def.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_entities.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_vars.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/imp_glb.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/imp_heightfield.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/imp_joe.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/imp_kmz.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_misc.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_types.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2_normals.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/imp_md3.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/imp_nff.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/imp_obj.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/imp_q3o.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_chunks.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_types.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do_palette.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.am create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_nodes.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.c create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h create mode 100644 src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_types.h (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import') 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../.. +top_srcdir = ../.. +SUBDIRS = \ + imp_3dm \ + imp_3dmf \ + imp_3ds \ + imp_ac3d \ + imp_acf \ + imp_ar \ + imp_ase \ + imp_blend \ + imp_c4d \ + imp_cob \ + imp_dae \ + imp_dpm \ + imp_dxf \ + imp_flt \ + imp_glb \ + imp_heightfield \ + imp_iob \ + imp_joe \ + imp_kmz \ + imp_ldraw \ + imp_leocad \ + imp_lwo \ + imp_max \ + imp_maya \ + imp_md2 \ + imp_md3 \ + imp_nff \ + imp_obj \ + imp_osm \ + imp_q3o \ + imp_r4 \ + imp_rbh \ + imp_skp \ + imp_stl \ + imp_ta \ + imp_test \ + imp_vrml \ + imp_vrml2 + +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-exec-am: + +install-html: install-html-recursive + +install-info: install-info-recursive + +install-man: + +install-pdf: install-pdf-recursive + +install-ps: install-ps-recursive + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ + install-strip + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am check check-am clean clean-generic clean-libtool \ + ctags ctags-recursive distclean distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +SUBDIRS = \ + imp_3dm \ + imp_3dmf \ + imp_3ds \ + imp_ac3d \ + imp_acf \ + imp_ar \ + imp_ase \ + imp_blend \ + imp_c4d \ + imp_cob \ + imp_dae \ + imp_dpm \ + imp_dxf \ + imp_flt \ + imp_glb \ + imp_heightfield \ + imp_iob \ + imp_joe \ + imp_kmz \ + imp_ldraw \ + imp_leocad \ + imp_lwo \ + imp_max \ + imp_maya \ + imp_md2 \ + imp_md3 \ + imp_nff \ + imp_obj \ + imp_osm \ + imp_q3o \ + imp_r4 \ + imp_rbh \ + imp_skp \ + imp_stl \ + imp_ta \ + imp_test \ + imp_vrml \ + imp_vrml2 + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = \ + imp_3dm \ + imp_3dmf \ + imp_3ds \ + imp_ac3d \ + imp_acf \ + imp_ar \ + imp_ase \ + imp_blend \ + imp_c4d \ + imp_cob \ + imp_dae \ + imp_dpm \ + imp_dxf \ + imp_flt \ + imp_glb \ + imp_heightfield \ + imp_iob \ + imp_joe \ + imp_kmz \ + imp_ldraw \ + imp_leocad \ + imp_lwo \ + imp_max \ + imp_maya \ + imp_md2 \ + imp_md3 \ + imp_nff \ + imp_obj \ + imp_osm \ + imp_q3o \ + imp_r4 \ + imp_rbh \ + imp_skp \ + imp_stl \ + imp_ta \ + imp_test \ + imp_vrml \ + imp_vrml2 + +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-exec-am: + +install-html: install-html-recursive + +install-info: install-info-recursive + +install-man: + +install-pdf: install-pdf-recursive + +install-ps: install-ps-recursive + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ + install-strip + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am check check-am clean clean-generic clean-libtool \ + ctags ctags-recursive distclean distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_3dm/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_3dm +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_3dm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_3dm_la_OBJECTS = imp_3dm.lo imp_3dm_callbacks.lo \ + imp_3dm_object.lo +imp_3dm_la_OBJECTS = $(am_imp_3dm_la_OBJECTS) +#am_imp_3dm_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_3dm_la_SOURCES) +DIST_SOURCES = $(imp_3dm_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_3dm.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \ + imp_3dm_callbacks.h imp_3dm_callbacks.c \ + imp_3dm_object.c imp_3dm_object.h \ + imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h + +imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_3dm.la: $(imp_3dm_la_OBJECTS) $(imp_3dm_la_DEPENDENCIES) + $(LINK) $(am_imp_3dm_la_rpath) $(imp_3dm_la_OBJECTS) $(imp_3dm_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_3dm.Plo +include ./$(DEPDIR)/imp_3dm_callbacks.Plo +include ./$(DEPDIR)/imp_3dm_object.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_3dm.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \ + imp_3dm_callbacks.h imp_3dm_callbacks.c \ + imp_3dm_object.c imp_3dm_object.h \ + imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h +imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_3dm +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_3dm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_3dm_la_OBJECTS = imp_3dm.lo imp_3dm_callbacks.lo \ + imp_3dm_object.lo +imp_3dm_la_OBJECTS = $(am_imp_3dm_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_3dm_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_3dm_la_SOURCES) +DIST_SOURCES = $(imp_3dm_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_3dm.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \ + imp_3dm_callbacks.h imp_3dm_callbacks.c \ + imp_3dm_object.c imp_3dm_object.h \ + imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h + +imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_3dm.la: $(imp_3dm_la_OBJECTS) $(imp_3dm_la_DEPENDENCIES) + $(LINK) $(am_imp_3dm_la_rpath) $(imp_3dm_la_OBJECTS) $(imp_3dm_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm_callbacks.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm_object.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005 - 2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include + +#include +#include +#include + +#include "imp_3dm.h" +#include "imp_3dm_chunks.h" + +static gboolean tdm_read_container(TdmGlobal *global, gpointer object, + goffset nb, guint32 level); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + TdmGlobal *global; + G3DFloat version; + gchar magic[33], *pver; + gboolean retval; + guint32 max_len; + + memset(magic, '\0', 33); + g3d_stream_read(stream, magic, 32); + if(strncmp(magic, "3D Geometry File Format ", 24) != 0) { + g_warning("%s is not an OpenNURBS 3dm file", stream->uri); + return FALSE; + } + pver = magic + 24; + while(isspace(*pver)) + pver ++; + version = strtod(pver, NULL); +#if DEBUG > 0 + g_debug("loading %s, version %.1f", stream->uri, version); +#endif + + global = g_new0(TdmGlobal, 1); + global->context = context; + global->stream = stream; + global->model = model; + max_len = g3d_stream_size(stream); + if(!max_len) + max_len = (guint32) -1; + retval = tdm_read_container(global, NULL, max_len - 32, 0); + g_free(global); + + return retval; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("OpenNURBS models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("3dm", ":", 0); +} + +/*****************************************************************************/ + +static TdmChunkInfo *tdm_get_chunk_info(guint32 tcode) +{ + gint32 i; + + for(i = 0; tdm_chunks[i].tcode <= tcode; i ++) + if(tdm_chunks[i].tcode == tcode) + return &(tdm_chunks[i]); + return NULL; +} + +static gboolean tdm_read_container(TdmGlobal *global, gpointer object, + goffset nb, guint32 level) +{ + TdmChunkInfo *chunkinfo; + TdmLocal *local; + guint32 tcode; + guint32 len; + goffset off; + + while(TRUE) { + off = g3d_stream_tell(global->stream); + tcode = g3d_stream_read_int32_le(global->stream); + len = g3d_stream_read_int32_le(global->stream); + nb -= 8; + if(tcode == 0) + return TRUE; + + /* mask out DATA and CRC */ + chunkinfo = tdm_get_chunk_info(tcode & 0x7FFF7FFF); + +#if DEBUG > 0 + g_debug("\\%s[0x%08x][%c%c%c] %s (%d bytes @ 0x%08x)", + debug_pad(level), tcode, + (chunkinfo && chunkinfo->container) ? 'c' : ' ', + (chunkinfo && chunkinfo->endofcnt) ? 'e' : ' ', + (chunkinfo && chunkinfo->callback) ? 'f' : ' ', + chunkinfo ? chunkinfo->description : "unknown chunk", + (tcode & TCODE_DATA) ? 0 : len, + (guint32)off); +#endif + if(chunkinfo && chunkinfo->endofcnt) + return TRUE; + +#if DEBUG > 0 + if(tcode & TCODE_DATA) + g_debug("|%sdata: 0x%08x", debug_pad(level + 1), len); +#endif + + if(chunkinfo) { + if(chunkinfo->callback) { + local = g_new0(TdmLocal, 1); + local->tcode = tcode; + local->len = (tcode & TCODE_DATA) ? 0 : len; + local->data = (tcode & TCODE_DATA) ? len : 0; + local->level = level; + local->object = object; + chunkinfo->callback(global, local); + len = local->len; + object = local->object; + g_free(local); + } + if(chunkinfo->container) { + if(!tdm_read_container(global, object, len, level + 1)) + return FALSE; + nb -= len; + len = 0; + if(tcode & TCODE_CRC) { + g3d_stream_read_int32_le(global->stream); + nb -= 4; + } + } + } + + if(tcode & TCODE_DATA) + continue; + + if(len > 0) + g3d_stream_skip(global->stream, len); + } + + return TRUE; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_3DM_H +#define _IMP_3DM_H + +#define TCODE_TABLE 0x10000000 +#define TCODE_DATA 0x80000000 +#define TCODE_CRC 0x00008000 + +#define TCODE_ENDOFTABLE 0xFFFFFFFF + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include +#include +#include +#include +#include + +#include "imp_3dm_types.h" +#include "imp_3dm_callbacks.h" +#include "imp_3dm_object.h" +#include "imp_3dm_object_types.h" + +static TdmObjectTypeInfo *tdm_otype_get_info(guint32 code) +{ + gint32 i; + + if(code == 0xFFFFFFFF) + return NULL; + + for(i = 0; tdm_object_types[i].code <= code; i ++) + if(tdm_object_types[i].code == code) + return &(tdm_object_types[i]); + return NULL; +} + +static gboolean tdm_read_chunk_version(TdmGlobal *global, TdmLocal *local) +{ + guint8 ver = g3d_stream_read_int8(global->stream); + + if(!ver) + return FALSE; + local->len -= 1; + local->major_version = (ver >> 4) & 0x0F; + local->minor_version = ver & 0x0F; + + return TRUE; +} + +/* OpenNURBS class data */ +gboolean tdm_cb_0x00027ffc(TdmGlobal *global, TdmLocal *local) +{ + TdmObjectRecord *obj = local->object; + TdmObjectTypeInfo *tinfo; + G3DMaterial *material; + + if(!obj) { + g_warning("tdm_cb_0x00027FFC: expecting object..."); + return TRUE; + } + + tinfo = tdm_otype_get_info(obj->otype); + if(!tinfo) { + g_warning("unknown object type 0x%08x", obj->otype); + return TRUE; + } + + local->level ++; +#if DEBUG > 0 + g_debug("\\%so: [0x%08x][%c]: %s", debug_pad(local->level), + obj->otype, + tinfo->callback ? 'f' : ' ', + tinfo->description); +#endif + obj->object = g_new0(G3DObject, 1); + obj->object->name = g_strdup_printf("%s object @ 0x%08x", + tinfo->description, (guint32)g3d_stream_tell(global->stream)); + global->model->objects = g_slist_append(global->model->objects, + obj->object); + + material = g3d_material_new(); + material->name = g_strdup("(default material)"); + obj->object->materials = g_slist_append(obj->object->materials, material); + + if(tinfo->callback) + tinfo->callback(global, local); + + return TRUE; +} + +/* object record type */ +gboolean tdm_cb_0x02000071(TdmGlobal *global, TdmLocal *local) +{ + TdmObjectRecord *obj = local->object; + + if(obj) + obj->otype = local->data; + return TRUE; +} + +/* object record end */ +gboolean tdm_cb_0x0200007f(TdmGlobal *global, TdmLocal *local) +{ + TdmObjectRecord *obj = local->object; + + if(obj) { + g_free(obj); + } + return TRUE; +} + +/* object record */ +gboolean tdm_cb_0x20000070(TdmGlobal *global, TdmLocal *local) +{ + local->object = g_new0(TdmObjectRecord, 1); + return TRUE; +} + +/* object: mesh */ +gboolean tdm_cb_o_0x00000020(TdmGlobal *global, TdmLocal *local) +{ + TdmObjectRecord *obj = local->object; + G3DFace *face; + gint32 i, j; + guint32 vcount, fcount, isize, csize, crc; + guint8 c; + + if(!tdm_read_chunk_version(global, local)) + return FALSE; + if((local->major_version != 3) && (local->major_version != 1)) + return TRUE; + + vcount = g3d_stream_read_int32_le(global->stream); + fcount = g3d_stream_read_int32_le(global->stream); + local->len -= 8; + + /* packed tex domain */ + g3d_stream_read_double_le(global->stream); + g3d_stream_read_double_le(global->stream); + g3d_stream_read_double_le(global->stream); + g3d_stream_read_double_le(global->stream); + local->len -= 32; + /* srf domain */ + g3d_stream_read_double_le(global->stream); + g3d_stream_read_double_le(global->stream); + g3d_stream_read_double_le(global->stream); + g3d_stream_read_double_le(global->stream); + local->len -= 32; + /* srf scale */ + g3d_stream_read_double_le(global->stream); + g3d_stream_read_double_le(global->stream); + local->len -= 16; + /* vbox */ + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + local->len -= 24; + /* nbox */ + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + local->len -= 24; + /* tbox */ + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + g3d_stream_read_float_le(global->stream); + local->len -= 16; + /* closed */ + g3d_stream_read_int32_le(global->stream); + local->len -= 4; + +#if DEBUG > 0 + g_debug("|%svcount = %u, fcount = %u", debug_pad(local->level), + vcount, fcount); +#endif + + /* mesh parameters */ + c = g3d_stream_read_int8(global->stream); + local->len -= 1; + if(c) { + return TRUE; + /* TODO */ + } + + /* mesh curvature */ + for(i = 0; i < 4; i ++) { + c = g3d_stream_read_int8(global->stream); + local->len -= 1; + if(c) { + return TRUE; + /* TODO */ + } + } + + /* face array */ + isize = g3d_stream_read_int32_le(global->stream); + local->len -= 4; + for(i = 0; i < fcount; i ++) { + face = g_new0(G3DFace, 1); + face->material = g_slist_nth_data(obj->object->materials, 0); + face->vertex_count = 4; + face->vertex_indices = g_new0(guint32, 4); + for(j = 0; j < 4; j ++) { + switch(isize) { + case 1: + face->vertex_indices[j] = + g3d_stream_read_int8(global->stream); + local->len -= 1; + break; + case 2: + face->vertex_indices[j] = + g3d_stream_read_int16_le(global->stream); + local->len -= 2; + break; + case 4: + face->vertex_indices[j] = + g3d_stream_read_int32_le(global->stream); + local->len -= 4; + break; + default: + g_warning("unsupported isize: %d", isize); + return TRUE; + break; + } /* switch(isize) */ + } /* j := 0..3 */ + + obj->object->faces = g_slist_prepend(obj->object->faces, face); +#if DEBUG > 0 + g_debug("|%s[face %04d] %u, %u, %u, %u", debug_pad(local->level), i, + face->vertex_indices[0], face->vertex_indices[1], + face->vertex_indices[2], face->vertex_indices[3]); +#endif + } /* i := 0..fcount */ + + /* vertex stuff */ + if(local->major_version == 1) { + /* TODO */ + return TRUE; + } + + if(vcount > 0) { + csize = g3d_stream_read_int32_le(global->stream); + local->len -= 4; + + crc = g3d_stream_read_int32_le(global->stream); + local->len -= 4; + + c = g3d_stream_read_int8(global->stream); + local->len -= 1; + + obj->object->vertex_count = vcount; + obj->object->vertex_data = g3d_vector_new(3, vcount); + if(c) + tdm_object_read_vertex_data_compressed(global, local); + else + tdm_object_read_vertex_data_uncompressed(global, local); + } /* vcount > 0 */ + + return TRUE; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_3DM_CALLBACKS_H +#define _IMP_3DM_CALLBACKS_H + +#include "imp_3dm_types.h" + +gboolean tdm_cb_0x00027ffc(TdmGlobal *global, TdmLocal *local); +gboolean tdm_cb_0x02000071(TdmGlobal *global, TdmLocal *local); +gboolean tdm_cb_0x0200007f(TdmGlobal *global, TdmLocal *local); +gboolean tdm_cb_0x20000070(TdmGlobal *global, TdmLocal *local); + +gboolean tdm_cb_o_0x00000020(TdmGlobal *global, TdmLocal *local); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_3DM_CHUNKS_H +#define _IMP_3DM_CHUNKS_H + +#include "imp_3dm_callbacks.h" + +static TdmChunkInfo tdm_chunks[] = { + { 0x00000001, FALSE, FALSE, "comment block", NULL }, + { 0x00007FFE, FALSE, TRUE, "end of file", NULL }, + { 0x00007FFF, FALSE, TRUE, "end of file", NULL }, + + { 0x00027FF9, FALSE, FALSE, "ON class userdata header", NULL }, + { 0x00027FFA, TRUE, FALSE, "OpenNURBS class", NULL }, + { 0x00027FFB, FALSE, FALSE, "OpenNURBS class UUID", NULL }, + { 0x00027FFC, FALSE, FALSE, "OpenNURBS class data", tdm_cb_0x00027ffc }, + { 0x00027FFD, FALSE, FALSE, "OpenNURBS class userdata", NULL }, + { 0x00027FFF, FALSE, TRUE, "OpenNURBS class end", NULL }, + + { 0x02000061, FALSE, FALSE, "light record attributes", NULL }, + { 0x0200006F, FALSE, TRUE, "light record end", NULL }, + + { 0x02000071, FALSE, FALSE, "object record type", tdm_cb_0x02000071 }, + { 0x02000072, FALSE, FALSE, "object record attributes", NULL }, + { 0x0200007F, FALSE, TRUE, "object record end", tdm_cb_0x0200007f }, + + { 0x10000010, TRUE, FALSE, "material table", NULL }, + { 0x10000011, TRUE, FALSE, "layer table", NULL }, + { 0x10000012, TRUE, FALSE, "light table", NULL }, + { 0x10000013, TRUE, FALSE, "object table", NULL }, + { 0x10000014, TRUE, FALSE, "properties table", NULL }, + { 0x10000015, TRUE, FALSE, "settings table", NULL }, + { 0x10000016, TRUE, FALSE, "bitmap table", NULL }, + { 0x10000017, TRUE, FALSE, "user table", NULL }, + { 0x10000018, TRUE, FALSE, "group table", NULL }, + { 0x10000019, TRUE, FALSE, "font table", NULL }, + { 0x10000020, TRUE, FALSE, "dimension style table", NULL }, + { 0x10000021, TRUE, FALSE, "instance definition table", NULL }, + { 0x10000022, TRUE, FALSE, "hatch pattern table", NULL }, + { 0x10000023, TRUE, FALSE, "linetype table", NULL }, + { 0x10000024, TRUE, FALSE, "obsolete layer set table", NULL }, + { 0x10000025, TRUE, FALSE, "texture mapping table", NULL }, + { 0x10000026, TRUE, FALSE, "history record table", NULL }, + + { 0x20000021, FALSE, FALSE, "revision history", NULL }, + { 0x20000022, FALSE, FALSE, "notes", NULL }, + { 0x20000023, FALSE, FALSE, "preview image", NULL }, + { 0x20000024, FALSE, FALSE, "application", NULL }, + { 0x20000025, FALSE, FALSE, "compressed preview image", NULL }, + { 0x20000026, FALSE, FALSE, "OpenNURBS version", NULL }, + + { 0x20000031, FALSE, FALSE, "units and tols", NULL }, + { 0x20000032, FALSE, FALSE, "render mesh", NULL }, + { 0x20000033, FALSE, FALSE, "analysis mesh", NULL }, + { 0x20000034, FALSE, FALSE, "annotation", NULL }, + { 0x20000035, FALSE, FALSE, "named cplane list", NULL }, + { 0x20000036, FALSE, FALSE, "named view list", NULL }, + { 0x20000037, FALSE, FALSE, "view list", NULL }, + { 0x20000038, FALSE, FALSE, "current layer index", NULL }, + { 0x20000039, FALSE, FALSE, "current material index", NULL }, + { 0x2000003A, FALSE, FALSE, "current color", NULL }, + { 0x2000003B, FALSE, FALSE, "view record", NULL }, + { 0x2000003C, FALSE, FALSE, "current wire density", NULL }, + { 0x2000003D, FALSE, FALSE, "render", NULL }, + { 0x2000003E, FALSE, FALSE, "NEVER USE THIS", NULL }, + { 0x2000003F, FALSE, FALSE, "grid defaults", NULL }, + { 0x20000040, FALSE, FALSE, "material record", NULL }, + + { 0x20000050, FALSE, FALSE, "layer record", NULL }, + + { 0x20000060, TRUE, FALSE, "light record", NULL }, + + { 0x20000070, TRUE, FALSE, "object record", tdm_cb_0x20000070 }, + + { 0x20000073, FALSE, FALSE, "group record", NULL }, + { 0x20000074, FALSE, FALSE, "font record", NULL }, + { 0x20000075, FALSE, FALSE, "dimstyle record", NULL }, + { 0x20000076, FALSE, FALSE, "instance definition record",NULL }, + { 0x20000077, FALSE, FALSE, "hatch pattern record", NULL }, + { 0x20000078, FALSE, FALSE, "linetype record", NULL }, + + { 0x20000080, FALSE, FALSE, "table id", NULL }, + { 0x20000081, FALSE, FALSE, "user record", NULL }, + + { 0x20000131, FALSE, FALSE, "model url", NULL }, + { 0x20000132, FALSE, FALSE, "current font index", NULL }, + { 0x20000133, FALSE, FALSE, "current dimstyle index", NULL }, + { 0x20000134, FALSE, FALSE, "attributes", NULL }, + { 0x20000135, FALSE, FALSE, "plugin list", NULL }, + { 0x2000013B, FALSE, FALSE, "cplane", NULL }, + + { 0x7FFF7FFF, FALSE, TRUE, "end of table", NULL }, +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include +#include + +#include "imp_3dm_types.h" + +static guint32 tdm_object_read_vector_data(G3DStream *stream, + G3DVector *vertex_data, guint32 vsize, guint32 vcount) +{ + gsize nb = 0; + gint32 i, j; + + for(i = 0; i < vcount; i ++) + for(j = 0; j < vsize; j ++) { + vertex_data[i * vsize + j] = g3d_stream_read_float_le(stream); + nb += 4; + } + return nb; +} + +gboolean tdm_object_read_vertex_data_uncompressed(TdmGlobal *global, + TdmLocal *local) +{ + TdmObjectRecord *obj = local->object; + + local->len -= tdm_object_read_vector_data(global->stream, + obj->object->vertex_data, 3, obj->object->vertex_count); + return TRUE; +} + +gboolean tdm_object_read_vertex_data_compressed(TdmGlobal *global, + TdmLocal *local) +{ +#if HAVE_ZLIB + TdmObjectRecord *obj = local->object; + G3DStream *zstream; + guint32 csize; + + g3d_stream_read_int32_le(global->stream); /* tcode */ + csize = g3d_stream_read_int32_le(global->stream) - 4; /* size */ + local->len -= 8; + + zstream = g3d_stream_zlib_inflate_stream(global->stream, csize); + if(zstream) { + tdm_object_read_vector_data(zstream, + obj->object->vertex_data, 3, obj->object->vertex_count); + local->len -= csize; + g3d_stream_close(zstream); + /* CRC */ + g3d_stream_read_int32_le(global->stream); + local->len -= 4; + return TRUE; + }; +#else + g_warning("no zlib support, unable to read deflated data"); +#endif /* HAVE_ZLIB */ + return FALSE; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_3DM_OBJECT_H +#define _IMP_3DM_OBJECT_H + +#include "imp_3dm_types.h" + +gboolean tdm_object_read_vertex_data_uncompressed(TdmGlobal *global, + TdmLocal *local); +gboolean tdm_object_read_vertex_data_compressed(TdmGlobal *global, + TdmLocal *local); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_3DM_OBJECT_TYPES_H +#define _IMP_3DM_OBJECT_TYPES_H + +#include "imp_3dm_callbacks.h" + +static TdmObjectTypeInfo tdm_object_types[] = { + { 0x00000000, "unknown object", NULL }, + { 0x00000001, "point", NULL }, + { 0x00000002, "point set", NULL }, + { 0x00000004, "curve", NULL }, + { 0x00000008, "surface", NULL }, + { 0x00000010, "brep", NULL }, + { 0x00000020, "mesh", tdm_cb_o_0x00000020 }, + { 0x00000040, "layer", NULL }, + { 0x00000080, "material", NULL }, + { 0x00000100, "light", NULL }, + { 0x00000200, "annotation", NULL }, + { 0x00000400, "user data", NULL }, + { 0x00000800, "instance definition", NULL }, + { 0x00001000, "instance reference", NULL }, + { 0x00002000, "text dot", NULL }, + { 0x00004000, "grip", NULL }, + { 0x00008000, "detail", NULL }, + { 0x00010000, "hatch", NULL }, + { 0x00020000, "morph control", NULL }, + { 0x00080000, "loop", NULL }, + { 0x00200000, "poly surface", NULL }, + { 0x00400000, "edge filter", NULL }, + { 0x00800000, "poly edge filter", NULL }, + { 0x01000000, "mesh vertex", NULL }, + { 0x02000000, "mesh edge", NULL }, + { 0x04000000, "mesh face", NULL }, + { 0x08000000, "cage", NULL }, + { 0x10000000, "phantom", NULL }, + { 0x20000000, "clip plane", NULL }, + + { 0xFFFFFFFF, "any object", NULL } +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_3DM_TYPES_H +#define _IMP_3DM_TYPES_H + +#include + +typedef struct { + G3DContext *context; + G3DStream *stream; + G3DModel *model; +} TdmGlobal; + +typedef struct { + guint32 tcode; + guint32 len; + guint32 data; + guint32 level; + guint16 major_version; + guint16 minor_version; + gpointer object; +} TdmLocal; + +typedef gboolean (* TdmCallback)(TdmGlobal *, TdmLocal *); + +typedef struct { + guint32 tcode; + gboolean container; + gboolean endofcnt; + const gchar *description; + TdmCallback callback; +} TdmChunkInfo; + +typedef struct { + guint32 code; + const gchar *description; + TdmCallback callback; +} TdmObjectTypeInfo; + +typedef struct { + guint32 otype; + G3DObject *object; +} TdmObjectRecord; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_3dmf/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_3dmf +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_3dmf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_3dmf_la_OBJECTS = imp_3dmf.lo imp_3dmf_callbacks.lo +imp_3dmf_la_OBJECTS = $(am_imp_3dmf_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_3dmf_la_SOURCES) +DIST_SOURCES = $(imp_3dmf_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_3dmf.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \ + imp_3dmf_callbacks.c imp_3dmf_callbacks.h + +imp_3dmf_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_3dmf.la: $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_3dmf.Plo +include ./$(DEPDIR)/imp_3dmf_callbacks.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_3dmf.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \ + imp_3dmf_callbacks.c imp_3dmf_callbacks.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_3dmf +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_3dmf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_3dmf_la_OBJECTS = imp_3dmf.lo imp_3dmf_callbacks.lo +imp_3dmf_la_OBJECTS = $(am_imp_3dmf_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_3dmf_la_SOURCES) +DIST_SOURCES = $(imp_3dmf_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_3dmf.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \ + imp_3dmf_callbacks.c imp_3dmf_callbacks.h + +imp_3dmf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_3dmf.la: $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dmf.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dmf_callbacks.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "imp_3dmf_chunks.h" + +#define X3DMF_CHUNK_CHAR(id, shift) \ + ((((id) >> (shift)) & 0xFF) == 0) ? \ + ' ' : ((id) >> (shift)) & 0xFF + +typedef struct { + guint32 id; + guint32 offset; + guint32 type; +} +X3dmfTocEntry; + +typedef struct { + guint32 num_entries; + X3dmfTocEntry *entries; +} +X3dmfToc; + + +static gboolean x3dmf_read_container(G3DStream *stream, guint32 length, + G3DModel *model, G3DObject *object, guint32 level, X3dmfToc *toc, + G3DContext *context); +static X3dmfToc *x3dmf_read_toc(G3DStream *stream, X3dmfToc *prev_toc, + G3DContext *context); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + guint32 id, flags, tocloc, pos; + gsize len; + guint16 ver_min, ver_maj; + gchar txthead[10]; + X3dmfToc *toc = NULL; + + g3d_iff_read_chunk(stream, &id, &len, 0); + if((id != G3D_IFF_MKID('3', 'D', 'M', 'F')) || (len != 16)) { + g3d_stream_seek(stream, 0, G_SEEK_SET); + g3d_stream_read(stream, txthead, 10); + if(strncmp(txthead, "3DMetafile", 10) == 0) { + g_warning("file %s is an ASCII 3D Metafile (unhandled)\n", + stream->uri); + } else { + g_warning("file %s is not a 3D Metafile\n", stream->uri); + } + return FALSE; + } + + ver_maj = g3d_stream_read_int16_be(stream); + ver_min = g3d_stream_read_int16_be(stream); + + flags = g3d_stream_read_int32_be(stream); + + g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */ + tocloc = g3d_stream_read_int32_be(stream); + + /* read TOC if available */ + if(tocloc > 0) { + pos = g3d_stream_tell(stream); + g3d_stream_seek(stream, tocloc, G_SEEK_SET); + toc = x3dmf_read_toc(stream, NULL, context); + g3d_stream_seek(stream, pos, G_SEEK_SET); + } + +#if DEBUG > 0 + g_debug("3DMF: version %d.%d (0x%08x) TOC @ 0x%08x", + ver_maj, ver_min, flags, tocloc); +#endif + + x3dmf_read_container(stream, (guint32) -1, model, NULL, 0, toc, context); + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("3D Metafiles."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("b3d:3mf:3dmf", ":", 0); +} + +/****************************************************************************** + * 3DMF specific + */ + +static X3dmfChunkDesc *x3dmf_get_chunk_info(guint32 id) +{ + gint32 i; + + for(i = 0; x3dmf_chunks[i].id != 0; i ++) + if(x3dmf_chunks[i].id == id) + return &(x3dmf_chunks[i]); + return NULL; +} + +static X3dmfToc *x3dmf_read_toc(G3DStream *stream, X3dmfToc *prev_toc, + G3DContext *context) +{ + X3dmfToc *toc; + guint32 off_next_toc, typeseed, refseed, entrytype, entrysize, nentries; + guint32 noff, i; + + if(prev_toc) + toc = prev_toc; + else + toc = g_new0(X3dmfToc, 1); + + /* skip tag and size (FIXME) */ + g3d_stream_skip(stream, 8); + + g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */ + off_next_toc = g3d_stream_read_int32_be(stream); + typeseed = g3d_stream_read_int32_be(stream); + refseed = g3d_stream_read_int32_be(stream); + entrytype = g3d_stream_read_int32_be(stream); + entrysize = g3d_stream_read_int32_be(stream); + nentries = g3d_stream_read_int32_be(stream); + + /* resize entry array */ + noff = toc->num_entries; + toc->num_entries += nentries; + toc->entries = (X3dmfTocEntry *)g_realloc(toc->entries, + toc->num_entries * sizeof(X3dmfTocEntry)); + + /* read TOC entries */ + for(i = 0; i < nentries; i ++) { + toc->entries[noff + i].id = g3d_stream_read_int32_be(stream); + g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */ + toc->entries[noff + i].offset = g3d_stream_read_int32_be(stream); + + if((entrytype == 1) && (entrysize == 16)) { + toc->entries[noff + i].type = g3d_stream_read_int32_be(stream); + } +#if DEBUG > 0 + g_debug("3DMF: TOC: %06d @ 0x%08x", + toc->entries[noff + i].id, + toc->entries[noff + i].offset); +#endif + } + + /* read next toc */ + if(off_next_toc > 0) { + g3d_stream_seek(stream, off_next_toc, SEEK_SET); + toc = x3dmf_read_toc(stream, toc, context); + } + + return toc; +} + +static guint32 x3dmf_read_mesh(G3DStream *stream, G3DObject *object, + G3DContext *context) +{ + guint32 i, j, nconts, nfaces, nbytes = 0, ncverts, offv; + G3DFace *face; + + g_return_val_if_fail(object != NULL, FALSE); + + offv = object->vertex_count; + object->vertex_count += g3d_stream_read_int32_be(stream); + object->vertex_data = g_realloc(object->vertex_data, + object->vertex_count * 3 * sizeof(G3DFloat)); + nbytes += 4; + + for(i = offv; i < object->vertex_count; i ++) { + for(j = 0; j < 3; j ++) + object->vertex_data[i * 3 + j] = g3d_stream_read_float_be(stream); + nbytes += 12; + + g3d_context_update_interface(context); + } + + nfaces = g3d_stream_read_int32_be(stream); + nconts = g3d_stream_read_int32_be(stream); + nbytes += 8; + +#if DEBUG > 0 + g_debug("|%u verts, %u faces, %u conts", object->vertex_count, + nfaces, nconts); +#endif + + for(i = 0; i < nfaces; i ++) { + face = g_new0(G3DFace, 1); + + face->vertex_count = g3d_stream_read_int32_be(stream); + nbytes += 4; + face->vertex_indices = g_new0(guint32, face->vertex_count); + + for(j = 0; j < face->vertex_count; j ++) { + face->vertex_indices[j] = offv + g3d_stream_read_int32_be(stream); + nbytes += 4; + if(face->vertex_indices[j] >= object->vertex_count) { + g_warning("face index wrong: %u >= %u", + face->vertex_indices[j], object->vertex_count); + face->vertex_indices[j] = 0; + } + } + +#if DEBUG > 3 + g_debug("|face %u: %u %u %u", i, face->vertex_indices[0], + face->vertex_indices[1], face->vertex_indices[2]); +#endif + + face->material = g_slist_nth_data(object->materials, 0); + object->faces = g_slist_prepend(object->faces, face); + + g3d_context_update_interface(context); + } + + /* contours */ + for(i = 0; i < nconts; i ++) { + ncverts = g3d_stream_read_int32_be(stream); + nbytes += 4; + for(j = 0; j < ncverts; j ++) { + g3d_stream_read_int32_be(stream); + nbytes += 4; + } + } + + return nbytes; +} + +static G3DObject *x3dmf_object_new(G3DStream *stream, G3DModel *model) +{ + G3DObject *object; + G3DMaterial *material; + + object = g_new0(G3DObject, 1); + material = g3d_material_new(); + + object->name = g_strdup_printf("container @ 0x%08x", + (guint32)g3d_stream_tell(stream) - 8); + model->objects = g_slist_append(model->objects, object); + object->materials = g_slist_append(object->materials, material); + + return object; +} + +static guint32 x3dmf_read_packed(G3DStream *stream, guint32 maxx, + guint32 *nread) +{ + if(maxx > 0xFFFE) { + if(nread) + (*nread) += 4; + return g3d_stream_read_int32_be(stream); + } else if(maxx > 0xFE) { + if(nread) + (*nread) += 2; + return g3d_stream_read_int16_be(stream); + } else { + if(nread) + (*nread) += 1; + return g3d_stream_read_int8(stream); + } +} + +/* + [tmsh] - TriMesh + http://developer.apple.com/documentation/QuickTime/QD3D/qd3dmetafile.33.htm + + Uns32 numTriangles + Uns32 numTriangleAttributeTypes + Uns32 numEdges + Uns32 numEdgeAttributeTypes + Uns32 numPoints + Uns32 numVertexAttributeTypes + TriMeshTriangleData triangles[numTriangles] + TriMeshEdgeData edges[numEdges] + Point3D points[numPoints] + BoundingBox bBox +*/ + +static guint32 x3dmf_read_tmsh(G3DStream *stream, G3DObject *object, + G3DContext *context) +{ + G3DFace *face; + guint32 nread = 0, nfaces, nverts, nedges; + gint32 i, j; + + nfaces = g3d_stream_read_int32_be(stream); /* numTriangles */ + nread += 4; + + g3d_stream_read_int32_be(stream); /* numTriangleAttributeTypes */ + nread += 4; + + nedges = g3d_stream_read_int32_be(stream); /* numEdges */ + nread += 4; + + g3d_stream_read_int32_be(stream); /* numEdgeAttributeTypes */ + nread += 4; + + nverts = g3d_stream_read_int32_be(stream); /* numPoints */ + nread += 4; + + g3d_stream_read_int32_be(stream); /* numVertexAttributeTypes */ + nread += 4; + +#if DEBUG > 3 + g_debug("3DMF: [tmsh] %d faces, %d edges, %d vertices", + nfaces, nedges, nverts); +#endif + + /* triangles */ + for(i = 0; i < nfaces; i ++) { + face = g_new0(G3DFace, 1); + + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + for(j = 0; j < 3; j ++) { + face->vertex_indices[j] = + x3dmf_read_packed(stream, nfaces, &nread); + if(face->vertex_indices[j] >= nverts) { + g_warning("face index error: %u >= %u", + face->vertex_indices[j], nverts); + face->vertex_indices[j] = 0; + } + } + +#if DEBUG > 3 + g_debug("face %u (packed): %u %u %u", i, face->vertex_indices[0], + face->vertex_indices[1], face->vertex_indices[2]); +#endif + + face->material = g_slist_nth_data(object->materials, 0); + object->faces = g_slist_prepend(object->faces, face); + } + + /* edges */ + for(i = 0; i < nedges; i ++) { + /* pointIndices */ + x3dmf_read_packed(stream, nedges, &nread); + x3dmf_read_packed(stream, nedges, &nread); + /* triangleIndices */ + x3dmf_read_packed(stream, nedges, &nread); + x3dmf_read_packed(stream, nedges, &nread); + } + + /* points */ + object->vertex_count = nverts; + object->vertex_data = g_new0(G3DFloat, 3 * nverts); + for(i = 0; i < nverts; i ++) { + object->vertex_data[i * 3 + 0] = g3d_stream_read_float_be(stream); + object->vertex_data[i * 3 + 1] = g3d_stream_read_float_be(stream); + object->vertex_data[i * 3 + 2] = g3d_stream_read_float_be(stream); + nread += 12; + } + + /* bBox */ + /* Point3D min */ + g3d_stream_read_float_be(stream); + g3d_stream_read_float_be(stream); + g3d_stream_read_float_be(stream); + nread += 12; + /* Point3D max */ + g3d_stream_read_float_be(stream); + g3d_stream_read_float_be(stream); + g3d_stream_read_float_be(stream); + nread += 12; + /* boolean isEmpty */ + g3d_stream_read_int32_be(stream); + nread += 4; + + return nread; +} + +static gboolean x3dmf_read_rfrn(G3DStream *stream, G3DModel *model, + X3dmfToc *toc, G3DContext *context) +{ + G3DObject *object; + guint32 id, i, refid, savedoffset; + gsize len; + X3dmfTocEntry *tocentry = NULL; + + refid = g3d_stream_read_int32_be(stream); + if(refid == 0) { + /* FIXME */ + return FALSE; + } + + if(toc == NULL) { + return FALSE; + } + + /* find reference object */ + for(i = 0; i < toc->num_entries; i ++) + if(toc->entries[i].id == refid) + tocentry = &(toc->entries[i]); + + g_return_val_if_fail(tocentry != NULL, FALSE); + + savedoffset = g3d_stream_tell(stream); + g3d_stream_seek(stream, tocentry->offset, G_SEEK_SET); + + object = x3dmf_object_new(stream, model); + + g3d_iff_read_chunk(stream, &id, &len, 0); + switch(id) { + case G3D_IFF_MKID('c', 't', 'n', 'r'): + x3dmf_read_container(stream, len, model, NULL, 0xFF, toc, context); + break; + + default: + break; + } + + g3d_stream_seek(stream, savedoffset, G_SEEK_SET); + + return TRUE; +} + +static gboolean x3dmf_read_container(G3DStream *stream, guint32 length, + G3DModel *model, G3DObject *object, guint32 level, X3dmfToc *toc, + G3DContext *context) +{ + G3DMaterial *material = NULL; + X3dmfChunkDesc *chunkdesc; + guint32 id, chk, i; + gsize len; + G3DFloat matrix[16]; + + g3d_matrix_identity(matrix); + + while(length > 0) { + if(g3d_stream_eof(stream)) + break; + + g3d_iff_read_chunk(stream, &id, &len, 0); + length -= 8; + + if(id == 0) + return FALSE; + + chunkdesc = x3dmf_get_chunk_info(id); + +#if DEBUG > 0 + g_debug("\\%s[%c%c%c%c]: %s (%d bytes)", debug_pad(level), + X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16), + X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0), + chunkdesc ? chunkdesc->description : "unknown chunk", + len); +#endif + length -= len; + + switch(id) { + case G3D_IFF_MKID('c', 'n', 't', 'r'): + /* container */ +#if DEBUG > 0 + g_debug("|%snew container @ 0x%x (%d bytes)", + debug_pad(level - 1), + (guint32)g3d_stream_tell(stream) - 8, len); +#endif + x3dmf_read_container(stream, len, model, object, level + 1, + toc, context); + break; + + case G3D_IFF_MKID('k', 'd', 'i', 'f'): + /* diffuse color */ + if(object) { +#if DEBUG > 2 + g_debug("3DMF: kdif: got object"); +#endif + material = g_slist_nth_data(object->materials, 0); + material->r = g3d_stream_read_float_be(stream); + material->g = g3d_stream_read_float_be(stream); + material->b = g3d_stream_read_float_be(stream); + } else { + g3d_stream_skip(stream, len); + } + break; + + case G3D_IFF_MKID('k', 's', 'p', 'c'): + /* specular color */ + if(object) { +#if DEBUG > 2 + g_debug("3DMF: kspc: got object"); +#endif + material = g_slist_nth_data(object->materials, 0); + material->specular[0] = g3d_stream_read_float_be(stream); + material->specular[1] = g3d_stream_read_float_be(stream); + material->specular[2] = g3d_stream_read_float_be(stream); + } else { + g3d_stream_skip(stream, len); + } + break; + + case G3D_IFF_MKID('k', 'x', 'p', 'r'): + /* transparency color */ + if(object) { + /* use average as alpha */ + material = g_slist_nth_data(object->materials, 0); + material->a = 1.0 - + (g3d_stream_read_float_be(stream) + + g3d_stream_read_float_be(stream) + + g3d_stream_read_float_be(stream)) / 3.0; + + if(material->a < 0.1) + material->a = 0.1; + } else { + g3d_stream_skip(stream, len); + } + break; + + case G3D_IFF_MKID('m', 'e', 's', 'h'): + /* mesh */ + if(object == NULL) + object = x3dmf_object_new(stream, model); + material = g_slist_nth_data(object->materials, 0); + + chk = x3dmf_read_mesh(stream, object, context); + g3d_object_transform(object, matrix); + if(chk != len) { + g_warning("3DMF: mesh: wrong length (%u != %u)\n", + chk, (unsigned int) len); + return FALSE; + } + break; + + case G3D_IFF_MKID('m', 't', 'r', 'x'): + /* matrix */ + for(i = 0; i < 16; i ++) + matrix[i] = g3d_stream_read_float_be(stream); + if(object) { +#if DEBUG > 2 + g_debug("3DMF: mtrx: object is set"); +#endif + g3d_object_transform(object, matrix); + } +#if DEBUG > 3 + for(i = 0; i < 4; i ++) + g_debug("3DMF: mtrx: %+1.2f %+1.2f %+1.2f %+1.2f", + matrix[i * 4 + 0], matrix[i * 4 + 1], + matrix[i * 4 + 2], matrix[i * 4 + 3]); +#endif + break; + + case G3D_IFF_MKID('r', 'f', 'r', 'n'): + /* reference */ + x3dmf_read_rfrn(stream, model, toc, context); + break; + + case G3D_IFF_MKID('s', 'e', 't', ' '): + /* ??: skip this cntr chunk */ + g3d_stream_skip(stream, length); + length = 0; + break; + + case G3D_IFF_MKID('t', 'm', 's', 'h'): + /* triangle mesh */ + if(object == NULL) + object = x3dmf_object_new(stream, model); + material = g_slist_nth_data(object->materials, 0); + + chk = x3dmf_read_tmsh(stream, object, context); + g3d_object_transform(object, matrix); + if(chk != len) { +#if DEBUG > 0 + g_debug("3DMF: tmsh: offset %d bytes", len - chk); +#endif + g3d_stream_skip(stream, len - chk); + } + break; + + case G3D_IFF_MKID('t', 'r', 'n', 's'): + /* translate */ + if(object) { + G3DFloat x,y,z; + G3DFloat matrix[16]; + + x = g3d_stream_read_float_be(stream); + y = g3d_stream_read_float_be(stream); + z = g3d_stream_read_float_be(stream); + + g3d_matrix_identity(matrix); + g3d_matrix_translate(x, y, z, matrix); + + g3d_object_transform(object, matrix); + } else { +#if DEBUG > 0 + g_warning("3DMF: [trns] no object"); +#endif + g3d_stream_skip(stream, 12); + } + break; + + default: + if(chunkdesc) { + g3d_stream_skip(stream, len); + } else { +#if DEBUG > 0 + g_warning("3DMF: Container: unknown chunk '%c%c%c%c'/" + "0x%02X%02X%02X%02X @ 0x%08x " + "(%d bytes)", + X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16), + X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0), + X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16), + X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0), + (guint32)g3d_stream_tell(stream) - 8, len); +#endif + g3d_stream_skip(stream, len); + } + break; + } + } + + return TRUE; +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include "imp_3dmf_callbacks.h" + 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_3DMF_CALLBACKS_H +#define _IMP_3DMF_CALLBACKS_H + +#include +#include + +typedef struct { + G3DContext *context; + G3DStream *stream; +} X3dmfGlobal; + +typedef struct { + guint32 id; + guint32 parentid; + guint32 level; + G3DObject *object; +} X3dmfLocal; + +typedef gboolean (* X3dmfCallback)(X3dmfGlobal *global, X3dmfLocal *local); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_3DMF_CHUNKS_H +#define _IMP_3DMF_CHUNKS_H + +#include +#include "imp_3dmf_callbacks.h" + +typedef struct { + guint32 id; + const gchar *description; + X3dmfCallback callback; +} X3dmfChunkDesc; + +#define ID G3D_IFF_MKID + +static X3dmfChunkDesc x3dmf_chunks[] = { + { ID('a', 'm', 'b', 'n'), "ambient light", NULL }, + { ID('a', 't', 'a', 'r'), "(registered unknown)", NULL }, + { ID('a', 't', 't', 'r'), "attribute set", NULL }, + { ID('b', 'g', 'n', 'g'), "begin group", NULL }, + { ID('c', 'a', 'm', 'b'), "ambient coefficient", NULL }, + { ID('c', 'm', 'p', 'l'), "camera placement", NULL }, + { ID('c', 'm', 'r', 'g'), "camera range", NULL }, + { ID('c', 'm', 'v', 'p'), "camera viewport", NULL }, + { ID('c', 'n', 't', 'r'), "container", NULL }, + { ID('c', 's', 'g', 'e'), "(registered unknown)", NULL }, + { ID('c', 's', 'p', 'c'), "specular control", NULL }, + { ID('c', 't', 'w', 'n'), "interactive renderer", NULL }, + { ID('d', 'b', 'b', 'p'), "(registered unknown)", NULL }, + { ID('d', 'r', 'c', 't'), "directional light", NULL }, + { ID('e', 'n', 'd', 'g'), "end group", NULL }, + { ID('h', 'l', 's', 't'), "highlight state", NULL }, + { ID('i', 'm', 'c', 'c'), "image clear color", NULL }, + { ID('i', 'm', 'd', 'm'), "image dimensions", NULL }, + { ID('k', 'd', 'i', 'f'), "diffuse color", NULL }, + { ID('k', 's', 'p', 'c'), "specular color", NULL }, + { ID('k', 'x', 'p', 'r'), "transparency color", NULL }, + { ID('l', 'g', 'h', 't'), "light data", NULL }, + { ID('m', 'e', 's', 'h'), "mesh", NULL }, + { ID('m', 't', 'r', 'x'), "matrix", NULL }, + { ID('n', 'r', 'm', 'l'), "normal", NULL }, + { ID('p', 'n', 't', 'l'), "point light", NULL }, + { ID('r', 'f', 'r', 'n'), "reference", NULL }, + { ID('r', 'v', 'h', 'n'), "(registered unknown)", NULL }, + { ID('r', 'v', 't', 'x'), "(registered unknown)", NULL }, + { ID('s', 'e', 't', ' '), "set", NULL }, + { ID('s', 't', 'r', 'c'), "C string", NULL }, + { ID('t', 'm', 's', 'h'), "triangle mesh", NULL }, + { ID('t', 'o', 'c', ' '), "tabe of contents", NULL }, + { ID('t', 'r', 'n', 's'), "translation", NULL }, + { ID('t', 'y', 'p', 'e'), "type definition", NULL }, + { ID('v', 'a', 'n', 'a'), "view angle aspect cam", NULL }, + { ID('v', 'a', 's', 'l'), "vertex attr set list", NULL }, + { ID('v', 'n', 'i', 'd'), "(registered unknown)", NULL }, + { ID('v', 'w', 'h', 'n'), "view hints", NULL }, + { ID('v', 'w', 'p', 'l'), "view plane camera", NULL }, + + { ID(0xFF, 0xFF, 0xFF, 0xE5), "0xFFFFFFE5", NULL }, + { ID(0xFF, 0xFF, 0xFF, 0xE7), "0xFFFFFFE7", NULL }, + { ID(0xFF, 0xFF, 0xFF, 0xE9), "0xFFFFFFE9", NULL }, + { ID(0xFF, 0xFF, 0xFF, 0xEA), "0xFFFFFFEA", NULL }, + { ID(0xFF, 0xFF, 0xFF, 0xEB), "0xFFFFFFEB", NULL }, + { ID(0xFF, 0xFF, 0xFF, 0xEC), "0xFFFFFFEC", NULL }, + { ID(0xFF, 0xFF, 0xFF, 0xEF), "0xFFFFFFEF (EoC?)", NULL }, + { ID(0xFF, 0xFF, 0xFF, 0xF1), "0xFFFFFFF1", NULL }, + { ID(0xFF, 0xFF, 0xFF, 0xF4), "0xFFFFFFF4", NULL }, + { ID(0xFF, 0xFF, 0xFF, 0xF6), "0xFFFFFFF6", NULL }, + { ID(0xFF, 0xFF, 0xFF, 0xFD), "0xFFFFFFFD", NULL }, + + { 0, NULL, NULL } +}; + +#undef ID + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_3ds/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_3ds +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_3ds_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_3ds_la_OBJECTS = imp_3ds.lo imp_3ds_callbacks.lo +imp_3ds_la_OBJECTS = $(am_imp_3ds_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_3ds_la_SOURCES) +DIST_SOURCES = $(imp_3ds_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_3ds.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_3ds_la_SOURCES = imp_3ds.c imp_3ds.h imp_3ds_chunks.h \ + imp_3ds_callbacks.c imp_3ds_callbacks.h + +imp_3ds_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_3ds.la: $(imp_3ds_la_OBJECTS) $(imp_3ds_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_3ds_la_OBJECTS) $(imp_3ds_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_3ds.Plo +include ./$(DEPDIR)/imp_3ds_callbacks.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_3ds.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_3ds_la_SOURCES = imp_3ds.c imp_3ds.h imp_3ds_chunks.h \ + imp_3ds_callbacks.c imp_3ds_callbacks.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_3ds +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_3ds_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_3ds_la_OBJECTS = imp_3ds.lo imp_3ds_callbacks.lo +imp_3ds_la_OBJECTS = $(am_imp_3ds_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_3ds_la_SOURCES) +DIST_SOURCES = $(imp_3ds_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_3ds.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_3ds_la_SOURCES = imp_3ds.c imp_3ds.h imp_3ds_chunks.h \ + imp_3ds_callbacks.c imp_3ds_callbacks.h + +imp_3ds_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_3ds.la: $(imp_3ds_la_OBJECTS) $(imp_3ds_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_3ds_la_OBJECTS) $(imp_3ds_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3ds.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3ds_callbacks.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "imp_3ds.h" +#include "imp_3ds_chunks.h" + +/*****************************************************************************/ +/* plugin interface */ +/*****************************************************************************/ + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer plugin_data) +{ + G3DMatrix rmatrix[16]; + gint32 nbytes, magic; + gboolean retval; + x3ds_global_data global; + x3ds_parent_data *parent; + + magic = g3d_stream_read_int16_le(stream); + if((magic != 0x4D4D) && (magic != 0xC23D)) + { + g_warning("file %s is not a 3ds file", stream->uri); + return FALSE; + } + nbytes = g3d_stream_read_int32_le(stream); + nbytes -= 6; +#if DEBUG > 0 + g_debug("\\[%4.4X] 3DS file: main length: %d", magic, nbytes); +#endif + + global.context = context; + global.model = model; + global.stream = stream; + global.scale = 1.0; + global.max_tex_id = 0; + + parent = g_new0(x3ds_parent_data, 1); + parent->id = magic; + parent->nb = nbytes; + + retval = x3ds_read_ctnr(&global, parent); + + g3d_matrix_identity(rmatrix); + g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix); + g3d_model_transform(model, rmatrix); + + g_free(parent); + + return retval; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("AutoCAD 3D Studio models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("3ds:prj", ":", 0); +} + +/*****************************************************************************/ + +gboolean x3ds_read_ctnr(x3ds_global_data *global, x3ds_parent_data *parent) +{ + gint32 chunk_id, chunk_len, i; + x3ds_parent_data *subparent; + gpointer level_object; + gchar *padding = " "; + + level_object = NULL; + + while(parent->nb > 0) { + chunk_id = g3d_stream_read_int16_le(global->stream); + chunk_len = g3d_stream_read_int32_le(global->stream); + parent->nb -= 6; + chunk_len -= 6; + + i = 0; + while((x3ds_chunks[i].id != 0) && (x3ds_chunks[i].id != chunk_id)) + i ++; + + if(x3ds_chunks[i].id == chunk_id) { + g_debug("\\%s(%d)[0x%04X][%c%c] %s (%d bytes)", + padding + (strlen(padding) - parent->level), parent->level, + chunk_id, + x3ds_chunks[i].container ? 'c' : ' ', + x3ds_chunks[i].callback ? 'f' : ' ', + x3ds_chunks[i].desc, chunk_len); + if (chunk_id==0) { + g_warning("error: bad chunk id"); + return FALSE; + } + + subparent = g_new0(x3ds_parent_data, 1); + subparent->id = parent->id; + subparent->object = parent->object; + subparent->level = parent->level + 1; + subparent->level_object = level_object; + subparent->nb = chunk_len; + + if(x3ds_chunks[i].callback) { + /* callback may change "nb" and "object" of + * "subparent" structure for following container run */ + + x3ds_chunks[i].callback(global, subparent); + } + + subparent->id = chunk_id; + + if(x3ds_chunks[i].container) { + if(x3ds_read_ctnr(global, subparent) == FALSE) { + /* abort on error */ + return FALSE; + } + } + + if(subparent->nb) + g3d_stream_skip(global->stream, subparent->nb); + + level_object = subparent->level_object; + + g_free(subparent); + } else { + g_warning("[3DS] unknown chunk type 0x%04X", chunk_id); + g3d_stream_skip(global->stream, chunk_len); + } + parent->nb -= chunk_len; + + /* update progress bar */ + x3ds_update_progress(global, parent->level); + } + + return TRUE; +} + +void x3ds_update_progress(x3ds_global_data *global, guint32 level) +{ + goffset fpos; + + /* update progress bar */ + if(level < 4) { + fpos = g3d_stream_tell(global->stream); + g3d_context_update_progress_bar(global->context, + ((G3DFloat)fpos / (G3DFloat)g3d_stream_size(global->stream)), TRUE); + } +} + +gint32 x3ds_read_cstr(G3DStream *stream, gchar *string) +{ + gint32 n = 0; + char c; + do { + c = g3d_stream_read_int8(stream); + string[n] = c; + n++; + } while(c != 0); + return n; +} + +G3DObject *x3ds_newobject(G3DModel *model, const gchar *name) +{ + G3DObject *object = g_malloc0(sizeof(G3DObject)); + G3DMaterial *material = g3d_material_new(); + + object->name = g_strdup(name); + object->faces = NULL; + model->objects = g_slist_append(model->objects, object); + object->materials = g_slist_append(object->materials, material); + + return object; +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_3DS_H +#define _IMP_3DS_H + +#include +#include +#include +#include + +typedef struct { + G3DContext *context; + G3DModel *model; + G3DStream *stream; + G3DFloat scale; + gint32 max_tex_id; +} x3ds_global_data; + +typedef struct { + gint32 id; + gpointer object; + gpointer misc_object; + gint32 level; + gpointer level_object; + guint32 nb; +} x3ds_parent_data; + +typedef gboolean (* x3ds_callback)(x3ds_global_data *global, + x3ds_parent_data *parent); + +gboolean x3ds_read_ctnr(x3ds_global_data *global, x3ds_parent_data *parent); +void x3ds_update_progress(x3ds_global_data *global, guint32 level); +gint32 x3ds_read_cstr(G3DStream *stream, gchar *string); +G3DObject *x3ds_newobject(G3DModel *model, const gchar *name); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include +#include + +#include +#include +#include +#include + +#include "imp_3ds_callbacks.h" + +#define X3DS_FLAG_TENSION 0x01 +#define X3DS_FLAG_CONTINUITY 0x02 +#define X3DS_FLAG_BIAS 0x04 +#define X3DS_FLAG_EASE_TO 0x08 +#define X3DS_FLAG_EASE_FROM 0x10 + +gboolean x3ds_cb_0x0002(x3ds_global_data *global, x3ds_parent_data *parent) +{ + gint32 version; + + version = g3d_stream_read_int32_le(global->stream); + parent->nb -= 4; +#if DEBUG > 0 + g_debug("[3DS] M3D version %d", version); +#endif + return TRUE; +} + +/* color float */ +gboolean x3ds_cb_0x0010(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DMaterial *material; + G3DFloat r, g, b; + + r = g3d_stream_read_float_le(global->stream); + g = g3d_stream_read_float_le(global->stream); + b = g3d_stream_read_float_le(global->stream); + parent->nb -= 12; + + switch(parent->id) + { + case 0x1200: /* SOLID_BGND */ + g3d_context_set_bgcolor(global->context, r, g, b, 1.0); + break; + + case 0xA010: /* ambient color */ + break; + + case 0xA020: /* diffuse color */ + material = (G3DMaterial *)parent->object; + g_return_val_if_fail(material, FALSE); + + material->r = r; + material->g = g; + material->b = b; + break; + + case 0xA030: /* specular color */ + material = (G3DMaterial *)parent->object; + g_return_val_if_fail(material, FALSE); + + material->specular[0] = r; + material->specular[1] = g; + material->specular[2] = b; + material->specular[3] = 0.25; + break; + + default: +#if DEBUG > 0 + g_warning("[3DS] unhandled COLOR_F in 0x%04X", parent->id); +#endif + break; + } + + return TRUE; +} + +/* color 24 */ +gboolean x3ds_cb_0x0011(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DMaterial *material; + gint32 r, g, b; + + material = (G3DMaterial *)parent->object; + g_return_val_if_fail(material, FALSE); + + r = g3d_stream_read_int8(global->stream); + g = g3d_stream_read_int8(global->stream); + b = g3d_stream_read_int8(global->stream); + parent->nb -= 3; + + switch(parent->id) + { + + case 0xA010: /* ambient color */ + break; + + case 0xA020: /* diffuse color */ + material->r = (G3DFloat)r / 255.0; + material->g = (G3DFloat)g / 255.0; + material->b = (G3DFloat)b / 255.0; + break; + + case 0xA030: /* specular color */ + material->specular[0] = (GLfloat)r / 255.0; + material->specular[1] = (GLfloat)g / 255.0; + material->specular[2] = (GLfloat)b / 255.0; + material->specular[3] = 0.25; + break; + + default: +#if DEBUG > 0 + g_warning("[3DS] unhandled COLOR_24 in 0x%04X", parent->id); +#endif + break; + } + + return TRUE; +} + +/* short percentage */ +gboolean x3ds_cb_0x0030(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DMaterial *material; + gint32 percent; + + material = (G3DMaterial *)parent->object; + g_return_val_if_fail(material, FALSE); + + percent = g3d_stream_read_int16_le(global->stream); + parent->nb -= 2; + + switch(parent->id) + { + case 0xA040: /* shininess */ + material->shininess = (G3DFloat)percent / 100.0; + break; + + case 0xA041: /* shininess (2) */ + /* TODO: do something here? */ + break; + + case 0xA050: /* transparency */ + material->a = 1.0 - ((G3DFloat)percent / 100.0); + break; + + case 0xA052: /* fallthrough */ + /* TODO: do something here? */ + break; + + case 0xA053: /* blur */ + /* TODO: do something here? */ + break; + + case 0xA084: /* self illumination */ + /* TODO: do something here? */ + break; + + case 0xA200: /* texture map */ + /* TODO: do something here? */ + break; + + case 0xA210: /* opacity map */ + /* TODO: do something here? */ + g_debug("[3DS] opacity percentage: %d%%\n", percent); + break; + + case 0xA220: /* reflection map */ + /* TODO: do something here? */ + break; + + case 0xA230: /* bump map */ + /* TODO: do something here? */ + break; + + default: +#if DEBUG > 0 + g_warning("[3DS] unhandled INT_PERCENTAGE in 0x%04X", + parent->id); +#endif + break; + } + + return TRUE; +} + +/* float percentage */ +gboolean x3ds_cb_0x0031(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DMaterial *material; + G3DFloat percent; + + material = (G3DMaterial *)parent->object; + g_return_val_if_fail(material, FALSE); + + percent = g3d_stream_read_float_le(global->stream); + parent->nb -= 4; + + switch(parent->id) + { + case 0xA040: /* shininess */ + material->shininess = percent; + break; + + case 0xA050: /* transparency */ + material->a = 1.0 - percent; + break; + + default: +#if DEBUG > 0 + g_warning("[3DS] unhandled FLOAT_PERCENTAGE in 0x%04X", + parent->id); +#endif + break; + } + + return TRUE; +} + +/* master scale */ +gboolean x3ds_cb_0x0100(x3ds_global_data *global, x3ds_parent_data *parent) +{ + global->scale = g3d_stream_read_float_le(global->stream); + parent->nb -= 4; + + return TRUE; +} + +/* named object */ +gboolean x3ds_cb_0x4000(x3ds_global_data *global, x3ds_parent_data *parent) +{ + gchar buffer[1024]; + + parent->nb -= x3ds_read_cstr(global->stream, buffer); + parent->object = x3ds_newobject(global->model, buffer); + + return TRUE; +} + +/* point array */ +gboolean x3ds_cb_0x4110(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DObject *object; + gint32 i; + + object = (G3DObject *)parent->object; + g_return_val_if_fail(object, FALSE); + + object->vertex_count = g3d_stream_read_int16_le(global->stream); + parent->nb -= 2; + + object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3); + for(i = 0; i < object->vertex_count; i ++) + { + object->vertex_data[i * 3 + 0] = g3d_stream_read_float_le(global->stream); + object->vertex_data[i * 3 + 1] = g3d_stream_read_float_le(global->stream); + object->vertex_data[i * 3 + 2] = g3d_stream_read_float_le(global->stream); + + parent->nb -= 12; + + if((i % 1000) == 0) x3ds_update_progress(global, parent->level); + } + return TRUE; +} + +/* face array */ +gboolean x3ds_cb_0x4120(x3ds_global_data *global, x3ds_parent_data *parent) +{ + gint32 i, flags, nfaces; +#define X3DS_REORDER_FACES +#ifdef X3DS_REORDER_FACES + gint32 p1 = -1, p2 = -1, bottle; +#endif + G3DFace *face; + G3DObject *object; + + object = (G3DObject *)parent->object; + g_return_val_if_fail(object, FALSE); + + nfaces = g3d_stream_read_int16_le(global->stream); + parent->nb -= 2; + + for(i = 0; i < nfaces; i ++) + { + face = g_new0(G3DFace, 1); + + face->vertex_count = 3; + face->vertex_indices = g_malloc(3 * sizeof(guint32)); + + face->vertex_indices[0] = g3d_stream_read_int16_le(global->stream); + face->vertex_indices[1] = g3d_stream_read_int16_le(global->stream); + face->vertex_indices[2] = g3d_stream_read_int16_le(global->stream); + flags = g3d_stream_read_int16_le(global->stream); + parent->nb -= 8; + +#ifdef X3DS_REORDER_FACES + /* try to put all faces in the same direction */ + if((p1 == face->vertex_indices[0]) && (p2 == face->vertex_indices[1])) + { + bottle = face->vertex_indices[0]; + face->vertex_indices[0] = face->vertex_indices[2]; + face->vertex_indices[2] = bottle; + } + + p1 = face->vertex_indices[0]; + p2 = face->vertex_indices[1]; +#endif + + face->material = g_slist_nth_data(object->materials, 0); + + object->faces = g_slist_append(object->faces, face); + + if((i % 1000) == 0) x3ds_update_progress(global, parent->level); + } + + return TRUE; +} + +/* mesh mat group */ +gboolean x3ds_cb_0x4130(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DObject *object; + gint32 i, j, facenum, nfaces; + gchar buffer[512]; + G3DMaterial *material = NULL, *mat; + G3DFace *face; + GSList *mlist; + + object = (G3DObject *)parent->object; + g_return_val_if_fail(object, FALSE); + + /* name of material */ + parent->nb -= x3ds_read_cstr(global->stream, buffer); + + /* find material in list */ + mlist = global->model->materials; + while(mlist != NULL) + { + mat = (G3DMaterial*)mlist->data; + if(strcmp(mat->name, buffer) == 0) + { + material = mat; + break; + } + mlist = mlist->next; + } + + nfaces = g3d_stream_read_int16_le(global->stream); + parent->nb -= 2; + + for(i = 0; i < nfaces; i ++) + { + facenum = g3d_stream_read_int16_le(global->stream); + parent->nb -= 2; + + if(material != NULL) + { + face = (G3DFace*)g_slist_nth_data(object->faces, facenum); + if(face == NULL) continue; + + face->material = material; + + if(face->material->tex_image && object->tex_vertex_data) + { + face->flags |= G3D_FLAG_FAC_TEXMAP; + face->tex_image = face->material->tex_image; + face->tex_vertex_count = 3; + face->tex_vertex_data = g_new0(G3DFloat, 6); + for(j = 0; j < 3; j ++) + { + face->tex_vertex_data[j * 2 + 0] = object->tex_vertex_data[ + face->vertex_indices[j] * 2 + 0]; + face->tex_vertex_data[j * 2 + 1] = object->tex_vertex_data[ + face->vertex_indices[j] * 2 + 1]; + } + } /* textured face */ + } /* material != NULL */ + + if((i % 1000) == 0) x3ds_update_progress(global, parent->level); + } /* 0..nfaces */ + + return TRUE; +} + +/* texture vertices */ +gboolean x3ds_cb_0x4140(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DObject *object; + gint32 i; + + object = (G3DObject *)parent->object; + g_return_val_if_fail(object, FALSE); + + object->tex_vertex_count = g3d_stream_read_int16_le(global->stream); + parent->nb -= 2; + + object->tex_vertex_data = g_new0(G3DFloat, object->tex_vertex_count * 2); + + for(i = 0; i < object->tex_vertex_count; i ++) + { + object->tex_vertex_data[i * 2 + 0] = g3d_stream_read_float_le(global->stream); + object->tex_vertex_data[i * 2 + 1] = g3d_stream_read_float_le(global->stream); + parent->nb -= 8; + + if((i % 1000) == 0) x3ds_update_progress(global, parent->level); + } + + return TRUE; +} + +/* smoothing groups */ +gboolean x3ds_cb_0x4150(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DObject *object; + G3DFace *face; + GSList *oface; + gint32 i, j, k, n=0, polynum, group; + guint32 *smooth_list; + G3DFloat *pnormal_list, *vertex_normal_buf; + G3DFloat a[3],b[3], *p0,*p1,*p2,*r; + + /* read data */ + object = (G3DObject *)parent->object; + g_return_val_if_fail(object, FALSE); + + oface=object->faces; + polynum=0; + for(oface = object->faces; oface != NULL ; oface = oface->next) + polynum++; /* count polygons */ + + /* polygon normal list */ + pnormal_list = g_new(float, 3 * polynum); + /* normals per vertice */ + vertex_normal_buf = g_new0(float, 3 * object->vertex_count); + + smooth_list = g_new(guint32, polynum); + + for(i = 0 ; i < polynum ; i ++) + smooth_list[i] = g3d_stream_read_int32_le(global->stream); + + parent->nb -= polynum * 4; + /* first, we calculate the normal by the polygon vertices (just vector + * product) */ + i = 0; + for(oface = object->faces; oface != NULL ; oface=oface->next) + { + face = (G3DFace *)oface->data; + r = &(pnormal_list[i*3]); + p0 = &(object->vertex_data[3 * face->vertex_indices[0]]); + p1 = &(object->vertex_data[3 * face->vertex_indices[1]]); + p2 = &(object->vertex_data[3 * face->vertex_indices[2]]); + + a[0]=p1[0] - p0[0]; + a[1]=p1[1] - p0[1]; + a[2]=p1[2] - p0[2]; + b[0]=p2[0] - p0[0]; + b[1]=p2[1] - p0[1]; + b[2]=p2[2] - p0[2]; + + g3d_vector_normal(a[0], a[1], a[2], b[0], b[1], b[2], + &r[0], &r[1], &r[2]); + + g3d_vector_unify(&r[0], &r[1], &r[2]); + + face->flags |= G3D_FLAG_FAC_NORMALS; + i ++; + } + + do { + /* find a suitable group. -1 means we've already taken care */ + group = -1; + for(i = 0; i < polynum; i ++) + if((group = smooth_list[i]) != -1) /* found a group */ + break; + /* handle this group */ + if(group != -1) + { + /* SMOOTH + * we add normals of the polygons's vertices so each vertex will + * finally have + * the sum of the polygons normals where the vertex is part of. + * + * run0: clear the vertex_normal_buf for this group */ + for(i = 0; i < object->vertex_count * 3; i ++) + vertex_normal_buf[i] = 0.0; + /* run1: add normals on themselves into the vertex_normal_buf */ + i = 0; + for(oface = object->faces; oface != NULL ; oface = oface->next) + { + face = (G3DFace *) oface->data; + if(smooth_list[i] == group) + { + /* for all 3 vertices of the polygon */ + for(j = 0; j < 3; j ++) + { + k = face->vertex_indices[j]; + for(n = 0; n < 3; n ++) + vertex_normal_buf[k * 3 + n] += + pnormal_list[i * 3 + n]; + } + } + i ++; + } + i = 0; + /* run2: apply to the final vertex buffer */ + for(oface = object->faces; oface != NULL ; oface = oface->next) + { + face = (G3DFace *)oface->data; + if(smooth_list[i] == group) + { + face->normals = g_new(G3DFloat, 9); + for(j = 0; j < 3; j ++) + { + k = face->vertex_indices[j]; + + g3d_vector_unify( + &(vertex_normal_buf[k * 3 + 0]), + &(vertex_normal_buf[k * 3 + 1]), + &(vertex_normal_buf[k * 3 + 2])); + + if(vertex_normal_buf[k * 3 + 0] != 0.0F) + /* finally, we save the normal in our normal + * buffer */ + memcpy(face->normals + j * 3, + vertex_normal_buf + k * 3, + sizeof(G3DFloat) * 3); + else + /* use the pbuf normal */ + memcpy(face->normals + j * 3, + pnormal_list + i * 3, + sizeof(G3DFloat) * 3); + + } + smooth_list[i] = -1; /* finished this polygon */ + } + i++; + } + /* SMOOTH END */ + } + } while (group != -1); + + g_free(pnormal_list); + g_free(vertex_normal_buf); + g_free(smooth_list); + return TRUE; +} + +/* mesh matrix */ +gboolean x3ds_cb_0x4160(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DFloat matrix[16]; + gint32 i; + G3DFloat det; + + g3d_matrix_identity(matrix); + for(i = 0; i < 12; i ++) + matrix[(i / 3) * 4 + (i % 3)] = g3d_stream_read_float_le(global->stream); + parent->nb -= 48; + + det = g3d_matrix_determinant(matrix); + + g3d_matrix_dump(matrix); + g_debug("det: %f", det); + + + if(det < 0.0) { +#if 0 + G3DFloat scale[16]; + g3d_matrix_identity(scale); + g3d_matrix_scale(-1.0, 1.0, 1.0, scale); + g3d_matrix_multiply(scale, matrix, matrix); + g3d_matrix_dump(matrix); +#endif +#define X3DS_MESH_TRANSFORM 0 +#if X3DS_MESH_TRANSFORM + object = parent->object; + if(object) { + object->transformation = g_new0(G3DTransformation, 1); + memcpy(object->transformation->matrix, matrix, 16 * sizeof(G3DFloat)); + } + +#if 0 + if(parent->object) { + g3d_object_transform(parent->object, matrix); + } +#endif +#endif + } + return TRUE; +} + +/* material name */ +gboolean x3ds_cb_0xA000(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DMaterial *material; + gchar buffer[1024]; + + g_return_val_if_fail(parent->object, FALSE); + + parent->nb -= x3ds_read_cstr(global->stream, buffer); + material = (G3DMaterial *)(parent->object); + + material->name = g_strdup(buffer); + + return TRUE; +} + +/* two sided material */ +gboolean x3ds_cb_0xA081(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DMaterial *material; + + material = (G3DMaterial *)parent->object; + g_return_val_if_fail(material, FALSE); + + material->flags |= G3D_FLAG_MAT_TWOSIDE; + + return TRUE; +} + +/* texture map name */ +gboolean x3ds_cb_0xA300(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DMaterial *material; + G3DImage *image; + gchar buffer[512]; + + material = (G3DMaterial *)parent->object; + g_return_val_if_fail(material, FALSE); + + parent->nb -= x3ds_read_cstr(global->stream, buffer); + + switch(parent->id) + { + case 0xA200: /* texture map */ + material->tex_image = g3d_texture_load_cached(global->context, + global->model, buffer); + if(material->tex_image) + { + g3d_texture_flip_y(material->tex_image); + material->tex_image->tex_id = ++ global->max_tex_id; + } + break; + + case 0xA210: /* opacity map */ + image = g3d_texture_load(global->context, buffer); + if(image != NULL) + { + g3d_texture_flip_y(image); + material->tex_image = g3d_texture_merge_alpha( + material->tex_image, image); + g3d_texture_free(image); + } + break; + + case 0xA220: /* reflection map */ + /* TODO: implement */ + break; + + case 0xA230: /* bump map */ + /* TODO: implement */ + break; + + default: +#if DEBUG > 0 + g_warning("[3DS] unhandled texture name in 0x%04X", parent->id); +#endif + + break; + } + + return TRUE; +} + +/* texture map scale u */ +gboolean x3ds_cb_0xA354(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DMaterial *material; + G3DImage *image; + G3DFloat scale; + + material = (G3DMaterial *)parent->object; + g_return_val_if_fail(material, FALSE); + + image = material->tex_image; + g_return_val_if_fail(image, FALSE); + + scale = g3d_stream_read_float_le(global->stream); + parent->nb -= 4; + + image->tex_scale_u = scale; +#if DEBUG > 3 + g_debug("[3DS] scale_u: %f", image->tex_scale_u); +#endif + + return TRUE; +} + +/* texture map scale v */ +gboolean x3ds_cb_0xA356(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DMaterial *material; + G3DImage *image; + G3DFloat scale; + + material = (G3DMaterial *)parent->object; + g_return_val_if_fail(material, FALSE); + + image = material->tex_image; + g_return_val_if_fail(image, FALSE); + + scale = g3d_stream_read_float_le(global->stream); + parent->nb -= 4; + + image->tex_scale_v = scale; +#if DEBUG > 3 + g_debug("[3DS] scale_v: %f", image->tex_scale_v); +#endif + + return TRUE; +} + +/* material */ +gboolean x3ds_cb_0xAFFF(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DMaterial *material; + G3DObject *object; + + material = g3d_material_new(); + + if(parent->object) + { + object = (G3DObject *)parent->object; + object->materials = g_slist_append(object->materials, material); + } + else + { + global->model->materials = g_slist_append(global->model->materials, + material); + } + + parent->object = material; + + return TRUE; +} + +/* keyframe data header */ +gboolean x3ds_cb_0xB00A(x3ds_global_data *global, x3ds_parent_data *parent) +{ + gint32 rev, len; + gchar buffer[512]; + + rev = g3d_stream_read_int16_le(global->stream); + parent->nb -= 2; + parent->nb -= x3ds_read_cstr(global->stream, buffer); + len = g3d_stream_read_int16_le(global->stream); + parent->nb -= 2; + +#if DEBUG > 0 + g_debug("[3DS] keyframe data: r%d, %d frames, \"%s\"", + rev, len, buffer); +#endif + return TRUE; +} + +/* node header */ +gboolean x3ds_cb_0xB010(x3ds_global_data *global, x3ds_parent_data *parent) +{ + GSList *olist; + G3DObject *object; + gchar buffer[512]; + + parent->nb -= x3ds_read_cstr(global->stream, buffer); +#if DEBUG > 3 + g_debug("[3DS] NODE_HDR: %s", buffer); +#endif + + /* find object by name */ + olist = global->model->objects; + while(olist) + { + object = (G3DObject *)olist->data; + if(strcmp(object->name, buffer) == 0) + { + parent->level_object = object; + break; + } + olist = olist->next; + } + + g3d_stream_read_int16_le(global->stream); /* flags 1 */ + g3d_stream_read_int16_le(global->stream); /* flags 2 */ + g3d_stream_read_int16_le(global->stream); /* ? */ + parent->nb -= 6; + + return TRUE; +} + +/* pivot */ +gboolean x3ds_cb_0xB013(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DObject *object; +#if 0 + gint32 i; +#endif + G3DFloat x, y, z; + + object = parent->level_object; + if(object == NULL) return FALSE; + + x = g3d_stream_read_float_le(global->stream); + y = g3d_stream_read_float_le(global->stream); + z = g3d_stream_read_float_le(global->stream); + parent->nb -= 12; + +#if DEBUG > 3 + g_debug("[3DS]: PIVOT: (%.2f,%.2f,%.2f)", x, y, z); +#endif + + return TRUE; +} + +#define X3DS_ENABLE_POS_TRACK_TAG 0 + +/* position tracking tag */ +gboolean x3ds_cb_0xB020(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DObject *object; + gint32 i, flags, fflags, nkeys, fnum; +#if X3DS_ENABLE_POS_TRACK_TAG + gint32 j; +#endif + G3DFloat x, y, z; + + object = parent->level_object; + if(object == NULL) return FALSE; + + flags = g3d_stream_read_int16_le(global->stream); + g3d_stream_skip(global->stream, 8); + nkeys = g3d_stream_read_int32_le(global->stream); + + parent->nb -= 14; + + for(i = 0; i < nkeys; i ++) + { + fnum = g3d_stream_read_int32_le(global->stream); + fflags = g3d_stream_read_int16_le(global->stream); + parent->nb -= 6; + + if(fflags & X3DS_FLAG_TENSION) + { + g3d_stream_read_float_le(global->stream); + parent->nb -= 4; + } + if(fflags & X3DS_FLAG_CONTINUITY) + { + g3d_stream_read_float_le(global->stream); + parent->nb -= 4; + } + if(fflags & X3DS_FLAG_BIAS) + { + g3d_stream_read_float_le(global->stream); + parent->nb -= 4; + } + if(fflags & X3DS_FLAG_EASE_TO) + { + g3d_stream_read_float_le(global->stream); + parent->nb -= 4; + } + if(fflags & X3DS_FLAG_EASE_FROM) + { + g3d_stream_read_float_le(global->stream); + parent->nb -= 4; + } + + x = g3d_stream_read_float_le(global->stream); + y = g3d_stream_read_float_le(global->stream); + z = g3d_stream_read_float_le(global->stream); + parent->nb -= 12; +#if DEBUG > 3 + g_debug("[3DS]: POS_TRACK_TAG: frame %d: (%.2f,%.2f,%.2f) (0x%X) " + "object: %s", + fnum, x, y, z, fflags, object->name); +#endif + +#if X3DS_ENABLE_POS_TRACK_TAG + if(fnum == 0) + { +#if 1 + for(j = 0; j < object->vertex_count; j ++) + { + object->vertex_data[j * 3 + 0] -= x; + object->vertex_data[j * 3 + 1] -= y; + object->vertex_data[j * 3 + 2] -= z; + } +#endif + } +#endif + } + + return TRUE; +} + +/* rotation tracking tag */ +gboolean x3ds_cb_0xB021(x3ds_global_data *global, x3ds_parent_data *parent) +{ + G3DObject *object; + gint32 i, j, flags, nkeys, fnum; + G3DFloat x, y, z, rot; + G3DFloat matrix[16]; + + object = parent->level_object; + if(object == NULL) return FALSE; + + flags = g3d_stream_read_int16_le(global->stream); + g3d_stream_skip(global->stream, 8); + nkeys = g3d_stream_read_int16_le(global->stream); + g3d_stream_read_int16_le(global->stream); + parent->nb -= 14; + + for(i = 0; i < nkeys; i ++) + { + fnum = g3d_stream_read_int16_le(global->stream); + g3d_stream_read_int32_le(global->stream); + parent->nb -= 6; + + rot = g3d_stream_read_float_le(global->stream); + x = g3d_stream_read_float_le(global->stream); + y = g3d_stream_read_float_le(global->stream); + z = g3d_stream_read_float_le(global->stream); + parent->nb -= 16; +#if DEBUG > 3 + g_debug( + "[3DS]: ROT_TRACK_TAG: frame %d: (%.2f,%.2f,%.2f), %.2f rad", + fnum, x, y, z, rot); +#endif + if(fnum == -1) + { +#if 1 + g3d_matrix_identity(matrix); + g3d_matrix_rotate(rot, x, y, z, matrix); + + for(j = 0; j < object->vertex_count; j ++) + { + g3d_vector_transform( + &(object->vertex_data[j * 3 + 0]), + &(object->vertex_data[j * 3 + 1]), + &(object->vertex_data[j * 3 + 2]), + matrix); + } +#endif + } + } + + return TRUE; + +} + +/* node id */ +gboolean x3ds_cb_0xB030(x3ds_global_data *global, x3ds_parent_data *parent) +{ + gint32 id; + + id = g3d_stream_read_int16_le(global->stream); + parent->nb -= 2; +#if DEBUG > 3 + g_debug("[3DS] NODE_ID: %d", id); +#endif + + return TRUE; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_3DS_CALLBACKS_H +#define _IMP_3DS_CALLBACKS_H + +#include "imp_3ds.h" + +gboolean x3ds_cb_0x0002(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0x0010(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0x0011(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0x0030(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0x0031(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0x0100(x3ds_global_data *global, x3ds_parent_data *parent); + +gboolean x3ds_cb_0x4000(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0x4110(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0x4120(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0x4130(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0x4140(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0x4150(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0x4160(x3ds_global_data *global, x3ds_parent_data *parent); + +gboolean x3ds_cb_0xA000(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0xA081(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0xA300(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0xA354(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0xA356(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0xAFFF(x3ds_global_data *global, x3ds_parent_data *parent); + +gboolean x3ds_cb_0xB00A(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0xB010(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0xB013(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0xB020(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0xB021(x3ds_global_data *global, x3ds_parent_data *parent); +gboolean x3ds_cb_0xB030(x3ds_global_data *global, x3ds_parent_data *parent); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_3DS_CHUNKS_H +#define _IMP_3DS_CHUNKS_H + +#include + +#include "imp_3ds_callbacks.h" + +typedef struct { + guint32 id; + char *desc; + gboolean container; + x3ds_callback callback; +} x3ds_chunk_desc; + +static x3ds_chunk_desc x3ds_chunks[] = { + { 0x0002, "M3D version", 0, x3ds_cb_0x0002 }, + { 0x0001, "(unknown)", 0, NULL }, + { 0x0010, "color (float)", 0, x3ds_cb_0x0010 }, + { 0x0011, "color (24 bit)", 0, x3ds_cb_0x0011 }, + { 0x0012, "line color (24 bit)", 0, NULL }, + { 0x0013, "line color (float)", 0, NULL }, + { 0x0030, "percentage (short)", 0, x3ds_cb_0x0030 }, + { 0x0031, "percentage (float)", 0, x3ds_cb_0x0031 }, + { 0x0100, "global scale", 0, NULL }, + + { 0x1100, "BIT_MAP", 0, NULL }, + { 0x1101, "USE_BIT_MAP", 0, NULL }, + { 0x1200, "SOLID_BGND", 1, NULL }, + { 0x1201, "USE_SOLID_BGND", 0, NULL }, + { 0x1300, "V_GRADIENT", 0, NULL }, + { 0x1301, "USE_V_GRADIENT", 0, NULL }, + { 0x1400, "LO_SHADOW_BIAS", 0, NULL }, + { 0x1410, "HI_SHADOW_BIAS", 0, NULL }, + { 0x1420, "SHADOW_MAP_SIZE", 0, NULL }, + { 0x1430, "SHADOW_SAMPLES", 0, NULL }, + { 0x1440, "SHADOW_RANGE", 0, NULL }, + { 0x1450, "SHADOW_FILTER", 0, NULL }, + { 0x1460, "RAY_BIAS", 0, NULL }, + { 0x1500, "O_CONSTS", 0, NULL }, + + { 0x2100, "AMBIENT_LIGHT", 0, NULL }, + { 0x2200, "FOG", 0, NULL }, + { 0x2300, "DISTANCE_CUE", 0, NULL }, + { 0x2301, "USE_DISTANCE_CUE", 0, NULL }, + { 0x2302, "LAYER_FOG", 0, NULL }, + { 0x2D2D, "SMAGIC", 0, NULL }, + { 0x2D3D, "LMAGIC", 0, NULL }, + + { 0x3000, "default view", 1, NULL }, + { 0x3010, "VIEW_TOP", 0, NULL }, + { 0x3020, "VIEW_BOTTOM", 0, NULL }, + { 0x3030, "VIEW_LEFT", 0, NULL }, + { 0x3040, "VIEW_RIGHT", 0, NULL }, + { 0x3050, "VIEW_FRONT", 0, NULL }, + { 0x3060, "VIEW_BACK", 0, NULL }, + { 0x3070, "VIEW_USER", 0, NULL }, + { 0x3080, "VIEW_CAMERA", 0, NULL }, + { 0x3090, "VIEW_WINDOW", 0, NULL }, + { 0x3D3D, "mesh", 1, NULL }, + { 0x3D3E, "mesh version", 0, NULL }, + + { 0x4000, "named object", 1, x3ds_cb_0x4000 }, + { 0x4010, "object hidden", 0, NULL }, + { 0x4011, "object vis lofter", 0, NULL }, + { 0x4012, "object doesnt cast", 0, NULL }, + { 0x4013, "object matte", 0, NULL }, + { 0x4014, "object fast", 0, NULL }, + { 0x4015, "object procedural", 0, NULL }, + { 0x4016, "object frozen", 0, NULL }, + { 0x4017, "object dont recv shadow", 0, NULL }, + { 0x4100, "triangle object", 1, NULL }, + { 0x4110, "point array", 0, x3ds_cb_0x4110 }, + { 0x4111, "point flag array", 0, NULL }, + { 0x4120, "face array", 1, x3ds_cb_0x4120 }, + { 0x4130, "mesh mat group", 0, x3ds_cb_0x4130 }, + { 0x4140, "texture vertices", 0, x3ds_cb_0x4140 }, + { 0x4150, "smooth group", 0, x3ds_cb_0x4150 }, + { 0x4160, "mesh matrix", 0, x3ds_cb_0x4160 }, + { 0x4165, "mesh color", 0, NULL }, + { 0x4170, "texture info", 0, NULL }, + { 0x4600, "N_DIRECT_LIGHT", 0, NULL }, + { 0x4700, "N_CAMERA", 0, NULL }, + + { 0x7001, "VIEWPORT_LAYOUT", 0, NULL }, + + { 0x8000, "XDATA_SECTION", 0, NULL }, + + { 0xA000, "material name", 0, x3ds_cb_0xA000 }, + { 0xA010, "ambient color", 1, NULL }, + { 0xA020, "diffuse color", 1, NULL }, + { 0xA030, "specular color", 1, NULL }, + { 0xA040, "shininess", 1, NULL }, + { 0xA041, "shininess (2)", 1, NULL }, + { 0xA042, "shininess (3)", 1, NULL }, + { 0xA050, "transparency", 1, NULL }, + { 0xA052, "fallthrough", 1, NULL }, + { 0xA053, "blur", 1, NULL }, + { 0xA081, "two-sided", 0, x3ds_cb_0xA081 }, + { 0xA082, "decal", 0, NULL }, + { 0xA083, "additive", 0, NULL }, + { 0xA084, "self illumination", 1, NULL }, + { 0xA085, "wire", 0, NULL }, + { 0xA086, "super-sampling", 0, NULL }, + { 0xA087, "wire size", 0, NULL }, + { 0xA088, "MAT_FACEMAP", 0, NULL }, + { 0xA08A, "MAT_XPFALLIN", 0, NULL }, + { 0xA08C, "MAT_PHONGSOFT", 0, NULL }, + { 0xA08E, "MAT_WIREABS", 0, NULL }, + { 0xA100, "shading", 0, NULL }, + { 0xA200, "texture map", 1, NULL }, + { 0xA204, "spec map", 1, NULL }, + { 0xA210, "opacity map", 1, NULL }, + { 0xA220, "reflection map", 1, NULL }, + { 0xA230, "bump map", 1, NULL }, + { 0xA240, "mat use xpfall", 0, NULL }, + { 0xA250, "mat use refblur", 0, NULL }, + { 0xA252, "bump percentage", 0, NULL }, + { 0xA300, "texture map name", 0, x3ds_cb_0xA300 }, + { 0xA310, "MAT_ACUBIC", 0, NULL }, + { 0xA320, "MAT_SXP_TEXT_DATA", 0, NULL }, + { 0xA324, "MAT_SXP_BUMP_DATA", 0, NULL }, + { 0xA33A, "MAT_TEX2MAP", 0, NULL }, + { 0xA351, "texture map tiling", 0, NULL }, + { 0xA352, "texture map blurring (old)", 0, NULL }, + { 0xA353, "texture map blurring", 0, NULL }, + { 0xA354, "texture map scale u", 0, x3ds_cb_0xA354 }, + { 0xA356, "texture map scale v", 0, x3ds_cb_0xA356 }, + { 0xA358, "texture map offset u", 0, NULL }, + { 0xA35A, "texture map offset v", 0, NULL }, + { 0xAFFF, "material", 1, x3ds_cb_0xAFFF }, + + { 0xB000, "keyframe data", 1, NULL }, + { 0xB001, "ambient data node", 1, NULL }, + { 0xB002, "object node", 1, NULL }, + { 0xB003, "camera node", 1, NULL }, + { 0xB004, "target node", 1, NULL }, + { 0xB005, "light node", 1, NULL }, + { 0xB006, "L_TARGET_NODE_TAG", 1, NULL }, + { 0xB007, "spotlight node", 1, NULL }, + { 0xB008, "KFSEG", 0, NULL }, + { 0xB009, "KFCURTIME", 0, NULL }, + { 0xB00A, "keyframe data header", 0, x3ds_cb_0xB00A }, + { 0xB010, "node header", 0, x3ds_cb_0xB010 }, + { 0xB011, "instance name", 0, NULL }, + { 0xB012, "PRESCALE", 0, NULL }, + { 0xB013, "pivot", 0, x3ds_cb_0xB013 }, + { 0xB014, "bounding box", 0, NULL }, + { 0xB015, "MORPH_SMOOTH", 0, NULL }, + { 0xB020, "position tracking tag", 0, x3ds_cb_0xB020 }, + { 0xB021, "rotation tracking tag", 0, x3ds_cb_0xB021 }, + { 0xB022, "scale tracking tag", 0, NULL }, + { 0xB023, "FOV_TRACK_TAG", 0, NULL }, + { 0xB024, "ROLL_TRACK_TAG", 0, NULL }, + { 0xB025, "COL_TRACK_TAG", 0, NULL }, + { 0xB026, "MORPH_TRACK_TAG", 0, NULL }, + { 0xB027, "HOT_TRACK_TAG", 0, NULL }, + { 0xB028, "FALL_TRACK_TAG", 0, NULL }, + { 0xB029, "HIDE_TRACK_TAG", 0, NULL }, + { 0xB030, "node identification", 0, x3ds_cb_0xB030 }, + + { 0xC010, "C_MDRAWER", 0, NULL }, + { 0xC030, "C_SHPDRAWER", 0, NULL }, + { 0xC040, "C_MODDRAWER", 0, NULL }, + { 0xC060, "C_TXDRAWER", 0, NULL }, + { 0xC064, "C_MTLDRAWER", 0, NULL }, + { 0xC066, "C_FLIDRAWER", 0, NULL }, + { 0xC067, "C_CUBDRAWER", 0, NULL }, + { 0xC070, "C_MFILE", 0, NULL }, + { 0xC080, "C_SHPFILE", 0, NULL }, + { 0xC090, "C_MODFILE", 0, NULL }, + { 0xC0B0, "C_TXFILE", 0, NULL }, + { 0xC0B4, "C_MTLFILE", 0, NULL }, + { 0xC0B6, "C_FLIFILE", 0, NULL }, + { 0xC0B8, "C_PALFILE", 0, NULL }, + { 0xC0C0, "C_TX_STRING", 0, NULL }, + { 0xC0D0, "C_CONSTS", 0, NULL }, + { 0xC0E0, "C_SNAPS", 0, NULL }, + { 0xC0F0, "C_GRIDS", 0, NULL }, + { 0xC100, "C_ASNAPS", 0, NULL }, + { 0xC25B, "C_BITMAP_DRAWER", 0, NULL }, + { 0xC525, "C_CUR_MNAME", 0, NULL }, + { 0xCA00, "C_MAPDRAWER", 0, NULL }, + + { 0xD000, "VPDATA", 0, NULL }, + + { 0x0000, NULL, 0, NULL } +}; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_ac3d/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_ac3d +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_ac3d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_ac3d_la_OBJECTS = imp_ac3d.lo +imp_ac3d_la_OBJECTS = $(am_imp_ac3d_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_ac3d_la_SOURCES) +DIST_SOURCES = $(imp_ac3d_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_ac3d.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_ac3d_la_SOURCES = imp_ac3d.c +imp_ac3d_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_ac3d.la: $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_ac3d.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_ac3d.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_ac3d_la_SOURCES = imp_ac3d.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_ac3d +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_ac3d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_ac3d_la_OBJECTS = imp_ac3d.lo +imp_ac3d_la_OBJECTS = $(am_imp_ac3d_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_ac3d_la_SOURCES) +DIST_SOURCES = $(imp_ac3d_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_ac3d.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_ac3d_la_SOURCES = imp_ac3d.c +imp_ac3d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_ac3d.la: $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ac3d.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include +#include + +#include + +#include +#include +#include +#include +#include +#include + +#define AC3D_FLAG_ACC 0x01 + +struct ac3d_transform { + G3DFloat offx, offy, offz; +}; + +static gint32 ac3d_read_object(G3DStream *stream, G3DContext *context, + G3DModel *model, gchar *line, struct ac3d_transform *transform, + guint32 flags, GSList **objectlist, gint32 *rowcnt, guint32 level); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + struct ac3d_transform *transform; + gchar buffer[2049], namebuf[257], *filename; + guint32 version, ti1, flags = 0; + G3DMaterial *material; + G3DFloat tf1, tf2, tf3, tf4, tf5, tf6, trans; + gint32 rowcnt = 0; + + setlocale(LC_NUMERIC, "C"); + + rowcnt ++; + g3d_stream_read_line(stream, buffer, 2048); + + if(strncmp(buffer, "AC3D", 4) != 0) + { + g_warning("file is not a AC3D model"); + return FALSE; + } + + filename = g3d_stream_get_uri(stream); + if(g_ascii_strcasecmp(filename + strlen(filename) - 4, ".acc") == 0) + { +#if DEBUG > 0 + g_debug("AC3D: .acc file"); +#endif + flags |= AC3D_FLAG_ACC; + } + + version = strtoul(buffer + 4, NULL, 16); + +#if DEBUG > 0 + g_debug("AC3D: version %d", version); +#endif + + while(g3d_stream_read_line(stream, buffer, 2048)) + { + rowcnt ++; + if(strncmp(buffer, "MATERIAL", 8) == 0) + { + material = g3d_material_new(); + if(sscanf(buffer, + "MATERIAL %s " + "rgb " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " + "amb " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " + "emis " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " + "spec %f %f %f " + "shi %u " + "trans " G3D_SCANF_FLOAT, + namebuf, + &(material->r), &(material->g), &(material->b), + &tf1, &tf2, &tf3, + &tf4, &tf5, &tf6, + &(material->specular[0]), + &(material->specular[1]), + &(material->specular[2]), + &ti1, + &trans) != 15) + { + g_warning("AC3D: error reading material line (%s)", buffer); + } + + material->name = g_strdup(namebuf); + material->a = 1.0 - trans; + + model->materials = g_slist_append(model->materials, material); + g_debug("\\(0) Material (line %d)", rowcnt); + } + else if(strncmp(buffer, "OBJECT", 6) == 0) + { + transform = g_new0(struct ac3d_transform, 1); + g_debug("\\(0) Object (line %d)", rowcnt); + ac3d_read_object(stream, context, model, buffer, transform, flags, + &(model->objects), &rowcnt, 1); + } + else + { +#if DEBUG > 0 + g_warning("AC3D: unhandled line: %s", buffer); +#endif + } + } + + return TRUE; +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("AC3D models."); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g_strsplit("ac:acc", ":", 0); +} + +/* + * AC3D specific + */ + +static gchar *ac3d_remove_quotes(gchar *text) +{ + if(text[0] == '"') + return g_strndup(text + 1, strlen(text) - 2); + else + return g_strdup(text); +} + +/** + * ac3d_read_object: + * returns: number of objects (including sub-objects) read, 0 in case of + * error. + */ + +static gint32 ac3d_read_object(G3DStream *stream, G3DContext *context, + G3DModel *model, gchar *line, struct ac3d_transform *parent_transform, + guint32 flags, GSList **objectlist, gint32 *rowcnt, guint32 level) +{ + struct ac3d_transform *transform; + G3DObject *object; + G3DMaterial *material = NULL; + G3DFace *face; + gchar buffer[2049], namebuf[257]; + guint32 nkids, ti1, i, surf_flags, surf_done; + guint32 i1, i2, i3; + G3DFloat u1, u2, u3, v1, v2, v3; + G3DFloat locx = 0.0, locy = 0.0, locz = 0.0; + G3DFloat texrepu = 1.0, texrepv = 1.0, texoffu = 0.0, texoffv = 0.0; + G3DFloat texscaleu = 1.0, texscalev = 1.0; + G3DFloat crease = 0.0; + guint32 len, facecnt = 0; + gchar *filename; + gint32 kidsread, objectcount = 0; + G3DFloat pcnt, prev_pcnt = 0.0; + + if(sscanf(line, "OBJECT %s", namebuf) != 1) + { + g_warning("AC3D: error reading object line (%s)", line); + } + + transform = g_new0(struct ac3d_transform, 1); + memcpy(transform, parent_transform, sizeof(struct ac3d_transform)); + + object = g_new0(G3DObject, 1); + objectcount ++; + *(objectlist) = g_slist_append(*(objectlist), object); + + while(g3d_stream_read_line(stream, buffer, 2048)) + { + *rowcnt += 1; + if(strncmp(buffer, "kids", 4) == 0) + { + /* final line of object */ + if(sscanf(buffer, "kids %u", &nkids) != 1) + { + g_warning("AC3D: error reading kids line (%s)", buffer); + return 0; + } + for(i = 0; i < nkids; i ++) + { + /* read kids */ + *rowcnt += 1; + g3d_stream_read_line(stream, buffer, 2048); +#if DEBUG > 0 + g_debug("\\%s(%d) Object (line %d)", debug_pad(level), + level, *rowcnt); +#endif + kidsread = ac3d_read_object(stream, context, model, buffer, + transform, flags, &(object->objects), rowcnt, level + 1); + objectcount += kidsread; + } + +#if DEBUG > 0 + g_debug("AC3D: \"%s\": %d sub-objects read", + object->name ? object->name : "unnamed", + objectcount - 1); +#endif + + if(crease > 0.0) + { + /* doesn't really work */ +#if 0 + g3d_object_smooth(object, crease); +#endif + } + return objectcount; + } + else if(strncmp(buffer, "name", 4) == 0) + { + if(sscanf(buffer, "name %s", namebuf) != 1) + { + g_warning("AC3D: error reading name line (%s)", buffer); + } + else + { + object->name = g_strdup(namebuf); + } + } + else if(strncmp(buffer, "loc", 3) == 0) + { + if(sscanf(buffer, "loc " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &locx, &locy, &locz) != 3) + { + g_warning("AC3D: error reading loc line (%s)", buffer); + locx = locy = locz = 0.0; + } + + transform->offx += locx; + transform->offy += locy; + transform->offz += locz; + } + else if(strncmp(buffer, "numvert", 7) == 0) + { + if(sscanf(buffer, "numvert %u", &(object->vertex_count)) != 1) + { + g_warning("AC3D: error reading numvert line (%s)", buffer); + object->vertex_count = 0; + } + else + { + object->vertex_data = + g_new0(G3DFloat, object->vertex_count * 3); + for(i = 0; i < object->vertex_count; i ++) + { + if(g3d_stream_read_line(stream, buffer, 2048)) + { + *rowcnt += 1; + if(sscanf(buffer, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, + &(object->vertex_data[i * 3 + 0]), + &(object->vertex_data[i * 3 + 1]), + &(object->vertex_data[i * 3 + 2])) != 3) + { + g_warning("AC3D: error reading vertex (%s)", + buffer); + } + + object->vertex_data[i * 3 + 0] += transform->offx; + object->vertex_data[i * 3 + 1] += transform->offy; + object->vertex_data[i * 3 + 2] += transform->offz; + } + } + } + /* END numvert */ + } + else if(strncmp(buffer, "numsurf", 7) == 0) + { + /* ignore for now */ + } + else if(strncmp(buffer, "SURF", 4) == 0) + { + surf_done = 0; + + if(sscanf(buffer, "SURF %x", &surf_flags) != 1) + { + g_warning("AC3D: error reading surf (%s)", buffer); + } + + while(!surf_done) + { + if(!g3d_stream_read_line(stream, buffer, 2048)) + return 0; + *rowcnt += 1; + + if(sscanf(buffer, "refs %u", &ti1) == 1) + { + if(!(flags & AC3D_FLAG_ACC)) + { + face = g_new0(G3DFace, 1); + face->vertex_count = ti1; + face->vertex_indices = + g_new0(guint32, face->vertex_count); + face->material = material; + + face->tex_image = object->tex_image; + if(face->tex_image) + { + face->flags |= G3D_FLAG_FAC_TEXMAP; + } + + face->tex_vertex_count = ti1; + face->tex_vertex_data = + g_new0(G3DFloat, 2 * face->tex_vertex_count); + + /* normal face */ + for(i = 0; i < face->vertex_count; i ++) + { + if(!g3d_stream_read_line(stream, buffer, 2048)) + return 0; + *rowcnt += 1; + + if(sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, + &(face->vertex_indices[i]), + &(face->tex_vertex_data[i * 2 + 0]), + &(face->tex_vertex_data[i * 2 + 1])) != 3) + { + g_warning( + "AC3D: error reading vertex index (%s)", + buffer); + } + face->tex_vertex_data[i * 2 + 0] *= + (texrepu * texscaleu); + face->tex_vertex_data[i * 2 + 1] *= + (texrepv * texscalev); + + face->tex_vertex_data[i * 2 + 0] += texoffu; + face->tex_vertex_data[i * 2 + 1] += texoffv; + +#if 0 + face->tex_coords[i * 2 + 0] *= texscaleu; + face->tex_coords[i * 2 + 1] *= texscalev; +#endif + } + + if(face->material && (face->vertex_count >= 3)) + object->faces = + g_slist_prepend(object->faces, face); + + } /* not .acc */ + else + { + /* triangle stripes */ + i = 0; + while(i < ti1) + { + face = g_new0(G3DFace, 1); + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + + face->material = material; + + face->tex_image = object->tex_image; + if(face->tex_image) + { + face->flags |= G3D_FLAG_FAC_TEXMAP; + } + + face->tex_vertex_count = 3; + face->tex_vertex_data = + g_new0(G3DFloat, 2 * face->tex_vertex_count); + + if(i == 0) + { + /* TODO: error handling */ + g3d_stream_read_line(stream, buffer, 2048); + sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i1, &u1, &v1); + g3d_stream_read_line(stream, buffer, 2048); + sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i2, &u2, &v2); + g3d_stream_read_line(stream, buffer, 2048); + sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i3, &u3, &v3); + + *rowcnt += 3; + i += 3; + } + else + { + /* TODO: error handling */ + i1 = i2; + u1 = u2; + v1 = v2; + i2 = i3; + u2 = u3; + v2 = v3; + + g3d_stream_read_line(stream, buffer, 2048); + *rowcnt += 1; + sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i3, &u3, &v3); + + i ++; + } + + face->vertex_indices[0] = i1; + face->tex_vertex_data[0] = u1; + face->tex_vertex_data[1] = v1; + if(facecnt % 2) { + face->vertex_indices[1] = i3; + face->vertex_indices[2] = i2; + face->tex_vertex_data[2] = u3; + face->tex_vertex_data[3] = v3; + face->tex_vertex_data[4] = u2; + face->tex_vertex_data[5] = v2; + } else { + face->vertex_indices[1] = i2; + face->vertex_indices[2] = i3; + face->tex_vertex_data[2] = u2; + face->tex_vertex_data[3] = v2; + face->tex_vertex_data[4] = u3; + face->tex_vertex_data[5] = v3; + } + + object->faces = + g_slist_prepend(object->faces, face); + facecnt ++; + } + } /* .acc */ + + surf_done = 1; + } + else if(sscanf(buffer, "mat %u", &ti1) == 1) + { + material = g_slist_nth_data(model->materials, ti1); + } + } + + material = NULL; + /* END SURF */ + } + else if(strncmp(buffer, "texture", 7) == 0) + { + if(sscanf(buffer, "texture %s", namebuf) == 1) + { + filename = ac3d_remove_quotes(namebuf); + object->tex_image = g3d_texture_load_cached(context, model, + filename); + if(object->tex_image) + { + g3d_texture_prepare(object->tex_image); + + texscaleu = object->tex_image->tex_scale_u; + texscalev = object->tex_image->tex_scale_v; + } + } + else + { + g_warning("error reading texture line (%s)", buffer); + } + } + else if(strncmp(buffer, "texrep", 6) == 0) + { + if(sscanf(buffer, "texrep " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &texrepu, &texrepv) != 2) + { + g_warning("error reading texrep line (%s)", buffer); + texrepu = 1.0; + texrepv = 1.0; + } + + if(texrepu == 0.0) texrepu = 1.0; + if(texrepv == 0.0) texrepv = 1.0; + } + else if(strncmp(buffer, "texoff", 6) == 0) + { + if(sscanf(buffer, "texoff " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &texoffu, &texoffv) != 2) + { + g_warning("error reading texoff line (%s)", buffer); + } + } + else if(strncmp(buffer, "crease", 6) == 0) + { + if(sscanf(buffer, "crease " G3D_SCANF_FLOAT, &crease) != 1) + { + g_warning("AC3D: error reading crease line (%i): %s", + *rowcnt, buffer); + } + } + else if(strncmp(buffer, "data ", 5) == 0) + { + /* object data */ + if(sscanf(buffer, "data %u", &len) != 1) + { + g_warning("AC3D: error in data line (%i): %s", + *rowcnt, buffer); + } + /* object data on next line */ + g3d_stream_read_line(stream, buffer, 2048); + *rowcnt += 1; + } + else + { +#if DEBUG > 0 + g_warning("AC3D: unhandled line %d: %s", *rowcnt, buffer); +#endif + } + + pcnt = (G3DFloat)g3d_stream_tell(stream) / + (G3DFloat)g3d_stream_size(stream); + if((pcnt - prev_pcnt) > 0.005) { + prev_pcnt = pcnt; + g3d_context_update_progress_bar(context, pcnt, TRUE); + } + } + + /* cleanup */ + g_free(transform); + + return 0; +} 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_acf/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_acf +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_acf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_acf_la_OBJECTS = imp_acf.lo imp_acf_detect.lo \ + imp_acf_airfoil.lo imp_acf_wing.lo imp_acf_def.lo +imp_acf_la_OBJECTS = $(am_imp_acf_la_OBJECTS) +#am_imp_acf_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_acf_la_SOURCES) +DIST_SOURCES = $(imp_acf_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_acf.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_acf_la_SOURCES = imp_acf.c imp_acf.h \ + imp_acf_detect.c imp_acf_detect.h \ + imp_acf_airfoil.c imp_acf_airfoil.h \ + imp_acf_wing.c imp_acf_wing.h \ + imp_acf_def.c imp_acf_def.h imp_acf_def_proto.h \ + imp_acf_def_acf603.h imp_acf_def_acf625.h imp_acf_def_acf630.h \ + imp_acf_def_acf640.h imp_acf_def_acf651.h \ + imp_acf_def_acf700.h imp_acf_def_acf740.h + +imp_acf_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_acf.la: $(imp_acf_la_OBJECTS) $(imp_acf_la_DEPENDENCIES) + $(LINK) $(am_imp_acf_la_rpath) $(imp_acf_la_OBJECTS) $(imp_acf_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_acf.Plo +include ./$(DEPDIR)/imp_acf_airfoil.Plo +include ./$(DEPDIR)/imp_acf_def.Plo +include ./$(DEPDIR)/imp_acf_detect.Plo +include ./$(DEPDIR)/imp_acf_wing.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_acf.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_acf_la_SOURCES = imp_acf.c imp_acf.h \ + imp_acf_detect.c imp_acf_detect.h \ + imp_acf_airfoil.c imp_acf_airfoil.h \ + imp_acf_wing.c imp_acf_wing.h \ + imp_acf_def.c imp_acf_def.h imp_acf_def_proto.h \ + imp_acf_def_acf603.h imp_acf_def_acf625.h imp_acf_def_acf630.h \ + imp_acf_def_acf640.h imp_acf_def_acf651.h \ + imp_acf_def_acf700.h imp_acf_def_acf740.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_acf +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_acf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_acf_la_OBJECTS = imp_acf.lo imp_acf_detect.lo \ + imp_acf_airfoil.lo imp_acf_wing.lo imp_acf_def.lo +imp_acf_la_OBJECTS = $(am_imp_acf_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_acf_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_acf_la_SOURCES) +DIST_SOURCES = $(imp_acf_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_acf.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_acf_la_SOURCES = imp_acf.c imp_acf.h \ + imp_acf_detect.c imp_acf_detect.h \ + imp_acf_airfoil.c imp_acf_airfoil.h \ + imp_acf_wing.c imp_acf_wing.h \ + imp_acf_def.c imp_acf_def.h imp_acf_def_proto.h \ + imp_acf_def_acf603.h imp_acf_def_acf625.h imp_acf_def_acf630.h \ + imp_acf_def_acf640.h imp_acf_def_acf651.h \ + imp_acf_def_acf700.h imp_acf_def_acf740.h + +imp_acf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_acf.la: $(imp_acf_la_OBJECTS) $(imp_acf_la_DEPENDENCIES) + $(LINK) $(am_imp_acf_la_rpath) $(imp_acf_la_OBJECTS) $(imp_acf_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_airfoil.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_def.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_detect.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_wing.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +Airfoils: +========= + +* get airfoil data in .dat format, e.g. from: + http://www.ae.uiuc.edu/m-selig/ads/archives/coord_seligFmt.tar.gz + (search for "UIUC Airfoil Coordinates Database" if this link is broken). + This data can be used according to the GNU General Public License. +* set the environment variable AIRFOIL_DIR to the path containing the + dat files. +* without airfoil data .acf models are still loadable, but wings and stuff + are missing. +* to minimize libg3d loading times (the airfoil data is loaded when this + plugin is initialized, you don't have to try to load an .acf file) you + could only install a selected subset of airfoil data files. + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#include "imp_acf.h" +#include "imp_acf_airfoil.h" +#include "imp_acf_wing.h" +#include "imp_acf_def.h" +#include "imp_acf_detect.h" + +static gboolean acf_load_body(AcfGlobalData *global); +static gboolean acf_load_wings(AcfGlobalData *global); + +EAPI +gpointer plugin_init(G3DContext *context) +{ + return acf_airfoil_init(); +} + +EAPI +void plugin_cleanup(gpointer user_data) +{ + AcfAirfoilDb *db = user_data; + + if(db) + acf_airfoil_cleanup(db); +} + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + AcfGlobalData *global; + const AcfDef *def; + gboolean bigendian; + gchar magic; + + magic = g3d_stream_read_int8(stream); + if(magic == 'i') { + bigendian = FALSE; + g_debug("ACF: intel file found"); + } else if(magic == 'a') { + bigendian = TRUE; + g_debug("ACF: apple file found"); + } else { + g_warning("ACF: not a valid .acf file"); + return FALSE; + } + + g3d_stream_seek(stream, 0, G_SEEK_SET); + + global = g_new0(AcfGlobalData, 1); + global->context = context; + global->model = model; + global->stream = stream; + global->afldb = user_data; + + def = acf_detect_version(global); + if(def == NULL) { + g_free(global); + return FALSE; + } + + global->acf = acf_def_read(stream, def, bigendian); + if(global->acf == NULL) { + g_free(global); + return FALSE; + } + + if(!acf_load_body(global)) { + acf_def_free(global->acf); + g_free(global); + return FALSE; + } + if(!acf_load_wings(global)) { + acf_def_free(global->acf); + g_free(global); + return FALSE; + } + + acf_def_free(global->acf); + g_free(global); + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("XPlane models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("acf", ":", 0); +} + +/*****************************************************************************/ + +#define ACF_OBJECT_MIN 44 +#define ACF_OBJECT_MAX 66 +#define ACF_BODY_NUMSEC 20 +#define ACF_BODY_SECVER 18 +#define ACF_VERTS_PER_OBJECT (ACF_BODY_NUMSEC * ACF_BODY_SECVER) + +#define ACF_REQUIRE_PART(var, name, t) do { \ + var = acf_def_lookup(global->acf, name); \ + if((var == NULL) || (var->type != t)) { \ + g_warning("ACF: %s is missing or has wrong type", name); \ + return FALSE; \ + } } while(0); + +#define ACF_USE_PART(var, name, t) do { \ + var = acf_def_lookup(global->acf, name); \ + if((var != NULL) && (var->type != t)) { \ + g_warning("ACF: %s has wrong type", name); \ + var = NULL; \ + } } while(0); + +static gboolean acf_load_body(AcfGlobalData *global) +{ + AcfValue *vpart_eq, *vbody_x, *vbody_y, *vbody_z, *vbody_r; + AcfValue *vxarm, *vyarm, *vzarm, *vx_body, *vy_body, *vz_body; + G3DObject *object; + G3DMaterial *material; + G3DFace *face; + gint32 i, j; + guint32 min_obj, max_obj; + + /* lookup some required data in library an return FALSE if one of + * them is missing */ + ACF_REQUIRE_PART(vpart_eq, "PARTS_part_eq", XINT); + ACF_REQUIRE_PART(vbody_x, "PARTS_body_X", XFLT); + ACF_REQUIRE_PART(vbody_y, "PARTS_body_Y", XFLT); + ACF_REQUIRE_PART(vbody_z, "PARTS_body_Z", XFLT); + ACF_REQUIRE_PART(vxarm, "PARTS_Xarm", XFLT); + ACF_REQUIRE_PART(vyarm, "PARTS_Yarm", XFLT); + ACF_REQUIRE_PART(vzarm, "PARTS_Zarm", XFLT); + ACF_REQUIRE_PART(vx_body, "PARTS_X_body_aero", XFLT); + ACF_REQUIRE_PART(vy_body, "PARTS_Y_body_aero", XFLT); + ACF_REQUIRE_PART(vz_body, "PARTS_Z_body_aero", XFLT); + ACF_REQUIRE_PART(vbody_r, "PARTS_body_r", XFLT); + + material = g3d_material_new(); + material->name = g_strdup("(default material)"); + global->model->materials = g_slist_append(global->model->materials, + material); + + min_obj = ACF_OBJECT_MIN; + max_obj = MIN(ACF_OBJECT_MAX, (vpart_eq->num - 1)); + if(vpart_eq->num <= 57) { + min_obj = 30; + max_obj = 49; + } + + for(i = min_obj; i <= max_obj; i ++) { + if(!vpart_eq->xint[i]) + continue; + + g_debug("ACF: part[%i]: (%.2f, %.2f, %.2f), %.2f", i, + vx_body->xflt[i], vy_body->xflt[i], vz_body->xflt[i], + vbody_r->xflt[i]); + + object = g_new0(G3DObject, 1); + object->name = g_strdup_printf("object[%d]", i); + object->vertex_count = ACF_VERTS_PER_OBJECT; + object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3); + for(j = 0; j < object->vertex_count; j ++) { + object->vertex_data[j * 3 + 0] = + vbody_x->xflt[i * ACF_VERTS_PER_OBJECT + j] + vxarm->xflt[i]; + object->vertex_data[j * 3 + 1] = + vbody_y->xflt[i * ACF_VERTS_PER_OBJECT + j] + vyarm->xflt[i]; + object->vertex_data[j * 3 + 2] = + vbody_z->xflt[i * ACF_VERTS_PER_OBJECT + j] + vzarm->xflt[i]; +#if DEBUG > 3 + g_debug("\tVERT: (%04d) %.3f, %.3f, %.3f", j, + object->vertex_data[j * 3 + 0], + object->vertex_data[j * 3 + 1], + object->vertex_data[j * 3 + 2]); +#endif + } + + global->model->objects = g_slist_append(global->model->objects, + object); + + for(j = 0; j < (ACF_VERTS_PER_OBJECT - ACF_BODY_SECVER - 1); j ++) { + face = g3d_face_new_tri(material, j + 1, j, j + ACF_BODY_SECVER); + object->faces = g_slist_prepend(object->faces, face); + + face = g3d_face_new_tri(material, j + ACF_BODY_SECVER, + j + ACF_BODY_SECVER + 1, j + 1); + object->faces = g_slist_prepend(object->faces, face); + } + } + + return TRUE; +} + +static gboolean acf_load_wings(AcfGlobalData *global) +{ + AcfValue *vpart_eq, *vrafl0, *vtafl0; + AcfValue *vctip, *vcroot, *vdihed, *vsweep, *vels; + AcfValue *vxarm, *vyarm, *vzarm, *visleft, *vlatsign; + AcfValue *vslseg, *vsljnd, *vpartss, *vpartse; + AcfAirfoil *afrt, *aftp; + G3DObject *object; + G3DMaterial *material; + gint32 i; + guint32 cnt; + G3DFloat m_dihed[16], m_sweep[16], m_trans[16]; + G3DFloat vecrt[3], vectp[3], lf, ls; + gchar *title; + + ACF_REQUIRE_PART(vpart_eq, "PARTS_part_eq", XINT); + ACF_REQUIRE_PART(vrafl0, "PARTS_Rafl0", XCHR); + ACF_REQUIRE_PART(vtafl0, "PARTS_Tafl0", XCHR); + ACF_REQUIRE_PART(vcroot, "PARTS_Croot", XFLT); + ACF_REQUIRE_PART(vctip, "PARTS_Ctip", XFLT); + ACF_REQUIRE_PART(vels, "PARTS_els", XINT); + ACF_REQUIRE_PART(vxarm, "PARTS_Xarm", XFLT); + ACF_REQUIRE_PART(vyarm, "PARTS_Yarm", XFLT); + ACF_REQUIRE_PART(vzarm, "PARTS_Zarm", XFLT); + + ACF_USE_PART(vdihed, "PARTS_dihed", XFLT); + if(vdihed == NULL) + ACF_REQUIRE_PART(vdihed, "PARTS_dihed1", XFLT); + ACF_USE_PART(vsweep, "PARTS_sweep", XFLT); + if(vsweep == NULL) + ACF_REQUIRE_PART(vsweep, "PARTS_sweep1", XFLT); + + ACF_REQUIRE_PART(vpartss, "PARTS_s", XFLT); + ACF_REQUIRE_PART(vpartse, "PARTS_e", XFLT); + ACF_REQUIRE_PART(vlatsign, "OVERFLOW_lat_sign", XFLT); + ACF_REQUIRE_PART(vslseg, "PARTS_semilen_SEG", XFLT); + ACF_REQUIRE_PART(vsljnd, "PARTS_semilen_JND", XFLT); + + ACF_USE_PART(visleft, "OVERFLOW_is_left", XINT); + + + material = g_slist_nth_data(global->model->materials, 0); + + cnt = vrafl0->num / vpart_eq->num; + + for(i = 8; i < vpart_eq->num; i ++) { + if(strlen(vrafl0->xchr + i * cnt) == 0) + continue; + if(vels->xint[i] == 0) + continue; +#if DEBUG > 0 + g_debug("PARTS_Rafl0[%d]: %s", i, vrafl0->xchr + i * cnt); + g_debug("PARTS_Tafl0[%d]: %s", i, vtafl0->xchr + i * cnt); + g_debug( + "[%i] lat_sign=%.2f, Croot=%.2f, Ctip=%.2f, dihed=%.2f, els=%i", i, + vlatsign->xflt[i], + vcroot->xflt[i], vctip->xflt[i], + vdihed ? vdihed->xflt[i] : -1337.0, + vels->xint[i]); + g_debug("[%i] semilen_SEG=%.2f, semilen_JND=%.2f, parts_e=%.2f", i, + vslseg->xflt[i], vsljnd->xflt[i], vpartse->xflt[i]); + g_debug("PARTS_s[%i]: %f, %f ... %f, %f", i, + vpartss->xflt[i * 10 + 0], vpartss->xflt[i * 10 + 1], + vpartss->xflt[i * 10 + 8], vpartss->xflt[i * 10 + 9]); +#endif + afrt = acf_airfoil_lookup(global->afldb, "naca16006.dat"); + aftp = acf_airfoil_lookup(global->afldb, "naca16006.dat"); + if((afrt == NULL) || (aftp == NULL)) + continue; + + if(afrt->vertex_count != aftp->vertex_count) { + g_warning("ACF: airfoil vertex count mismatch: %s=%d, %s=%d", + afrt->filename, afrt->vertex_count, + aftp->filename, aftp->vertex_count); + continue; + } + + lf = ((visleft && visleft->xint[i]) ? -1 : 1); + ls = (vlatsign ? vlatsign->xflt[i] : 1.0); + + /* translation */ + g3d_matrix_identity(m_trans); + g3d_matrix_translate(vxarm->xflt[i], vyarm->xflt[i], vzarm->xflt[i], + m_trans); + + /* rotation matrices */ + g3d_matrix_rotate(lf * vdihed->xflt[i] * G_PI / 180.0, + 0.0, 0.0, 1.0, m_dihed); + g3d_matrix_rotate(lf * -1.0 * vsweep->xflt[i] * G_PI / 180.0, + 0.0, 1.0, 0.0, m_sweep); + + /* wing root & tip center */ + memset(vecrt, 0, sizeof(vecrt)); + memset(vectp, 0, sizeof(vectp)); + vectp[0] = vslseg->xflt[i]; + g3d_vector_transform(vectp, vectp + 1, vectp + 2, m_dihed); + g3d_vector_transform(vectp, vectp + 1, vectp + 2, m_sweep); + + title = g_strdup_printf("Wing[%d]", i); + object = acf_wing(material, title, + m_sweep, m_dihed, m_trans, + vecrt, vectp, + afrt, aftp, + vcroot->xflt[i], vctip->xflt[i], lf); + g_free(title); + global->model->objects = g_slist_append(global->model->objects, + object); + } + return TRUE; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_H +#define _IMP_ACF_H + +#include +#include + +#include "imp_acf_def.h" +#include "imp_acf_airfoil.h" + +typedef struct { + G3DContext *context; + G3DModel *model; + G3DStream *stream; + AcfAirfoilDb *afldb; + AcfFile *acf; +} AcfGlobalData; + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include +#include +#include +#include + +#include +#include + +#include "imp_acf_airfoil.h" + +static AcfAirfoil *acf_airfoil_read(const gchar *path); + +AcfAirfoilDb *acf_airfoil_init(void) +{ + AcfAirfoilDb *db; + AcfAirfoil *afl; + GDir *dir; + const gchar *dirname, *filename; + gchar *path; + GError *error = NULL; + + setlocale(LC_NUMERIC, "C"); + + dirname = g_getenv("AIRFOIL_DIR"); + if(!(dirname && g_file_test(dirname, G_FILE_TEST_IS_DIR))) { +#if DEBUG > 0 + g_warning("ACF: could not load airfoils"); +#endif + return NULL; + } + + dir = g_dir_open(dirname, 0, &error); + if(error != NULL) { + g_warning("ACF: failed to open airfoil directory '%s': %s", + dirname, error->message); + g_error_free(error); + return NULL; + } + + db = g_new0(AcfAirfoilDb, 1); + db->db = g_hash_table_new(g_str_hash, g_str_equal); + + filename = g_dir_read_name(dir); + while(filename != NULL) { + if(strcmp(filename + strlen(filename) - 4, ".dat") == 0) { + path = g_strdup_printf("%s%c%s", dirname, G_DIR_SEPARATOR, + filename); + afl = acf_airfoil_read(path); + g_free(path); + if(afl != NULL) { + g_hash_table_insert(db->db, afl->filename, afl); + db->airfoils = g_slist_append(db->airfoils, afl); +#if DEBUG > 2 + g_debug("ACF: airfoil %s loaded", filename); +#endif + } + } + filename = g_dir_read_name(dir); + } + +#if DEBUG > 0 + g_debug("ACF: %d airfoils loaded", g_slist_length(db->airfoils)); +#endif + g_dir_close(dir); + + return db; +} + +void acf_airfoil_free(AcfAirfoil *afl) +{ + if(afl->filename) + g_free(afl->filename); + if(afl->description) + g_free(afl->description); + if(afl->vertex_data) + g_free(afl->vertex_data); + g_free(afl); +} + +void acf_airfoil_cleanup(AcfAirfoilDb *db) +{ + AcfAirfoil *afl; + GSList *item; + + g_hash_table_destroy(db->db); + item = db->airfoils; + while(item) { + afl = item->data; + item = g_slist_remove(item, afl); + acf_airfoil_free(afl); + } + g_free(db); +} + +AcfAirfoil *acf_airfoil_lookup(AcfAirfoilDb *db, const gchar *aflname) +{ + return g_hash_table_lookup(db->db, aflname); +} + +static AcfAirfoil *acf_airfoil_read(const gchar *path) +{ + AcfAirfoil *afl; + FILE *f; + gchar buffer[BUFSIZ + 1]; + guint32 off; + G3DFloat x, y; + + f = fopen(path, "r"); + if(f == NULL) + return NULL; + + afl = g_new0(AcfAirfoil, 1); + fgets(buffer, BUFSIZ, f); + buffer[BUFSIZ] = '\0'; + g_strstrip(buffer); + afl->filename = g_path_get_basename(path); + afl->description = g_strdup(buffer); + + while(!feof(f)) { + memset(buffer, '\0', BUFSIZ + 1); + fgets(buffer, BUFSIZ, f); + g_strstrip(buffer); + if(strlen(buffer) == 0) + continue; + if(sscanf(buffer, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &x, &y) == 2) { + if((x < 0.0) || (x > 1.0)) + continue; + off = afl->vertex_count; + afl->vertex_count ++; + afl->vertex_data = g_realloc(afl->vertex_data, + afl->vertex_count * 2 * sizeof(G3DFloat)); + afl->vertex_data[off * 2 + 0] = x; + afl->vertex_data[off * 2 + 1] = y; + } else { +#if DEBUG > 2 + g_debug("ACF: airfoil: failed to parse line in %s: %s", + afl->filename, buffer); +#endif + } + } + + fclose(f); + + return afl; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_AIRFOIL_H +#define _IMP_ACF_AIRFOIL_H + +#include + +typedef struct { + gchar *filename; + gchar *description; + /* 2D vertexes */ + guint32 vertex_count; + G3DFloat *vertex_data; +} AcfAirfoil; + +typedef struct { + GHashTable *db; + GSList *airfoils; +} AcfAirfoilDb; + +AcfAirfoilDb *acf_airfoil_init(void); +void acf_airfoil_cleanup(AcfAirfoilDb *db); +AcfAirfoil *acf_airfoil_lookup(AcfAirfoilDb *db, const gchar *aflname); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include "imp_acf_def.h" + +#define ACF_DEBUG_TYPES 2 + +AcfFile *acf_def_read(G3DStream *stream, const AcfDef *def, + gboolean bigendian) +{ + AcfFile *acf; + AcfValue *value; + gint32 i, j; + + acf = g_new0(AcfFile, 1); + acf->db = g_hash_table_new(g_str_hash, g_str_equal); + + for(i = 0; def[i].type != XEOF; i ++) { + value = g_new0(AcfValue, 1); + value->name = g_strdup(def[i].description); + value->type = def[i].type; + value->num = def[i].num; + switch(value->type) { + case XCHR: + value->xchr = g_new0(gchar, value->num + 1); + g3d_stream_read(stream, value->xchr, value->num); +#if DEBUG > ACF_DEBUG_TYPES + g_debug("ACF: XCHR: %s = %s", value->name, value->xchr); +#endif + break; + case XINT: + value->xint = g_new0(gint32, value->num); + for(j = 0; j < value->num; j ++) + value->xint[j] = bigendian ? + g3d_stream_read_int32_be(stream) : + g3d_stream_read_int32_le(stream); +#if DEBUG > ACF_DEBUG_TYPES + g_debug("ACF: XINT: %s(1/%d) = %i", value->name, value->num, + value->xint[0]); +#endif + break; + case XFLT: + value->xflt = g_new0(G3DFloat, value->num); + for(j = 0; j < value->num; j ++) + value->xflt[j] = bigendian ? + g3d_stream_read_float_be(stream) : + g3d_stream_read_float_le(stream); +#if DEBUG > ACF_DEBUG_TYPES + g_debug("ACF: XFLT: %s(1/%d) = %f", value->name, value->num, + value->xflt[0]); +#endif + break; + case XEOF: + /* should never happen, just make compiler happy */ + break; + } + g_hash_table_insert(acf->db, def[i].description, value); + } + + return acf; +} + +static gboolean acf_def_remove_value_cb(gpointer key, gpointer hashvalue, + gpointer data) +{ + AcfValue *value = hashvalue; + + if(value->xchr) + g_free(value->xchr); + if(value->xint) + g_free(value->xint); + if(value->xflt) + g_free(value->xflt); + g_free(value->name); + g_free(value); + return TRUE; +} + +void acf_def_free(AcfFile *acf) +{ + g_hash_table_foreach_remove(acf->db, acf_def_remove_value_cb, NULL); + g_free(acf); +} + +AcfValue *acf_def_lookup(AcfFile *acf, const gchar *name) +{ + return g_hash_table_lookup(acf->db, name); +} + +void acf_def_dump(AcfValue *value) +{ + gint32 i; + + if(value->type == XCHR) { + g_debug("ACF: %s: %s", value->name, value->xchr); + return; + } + + g_debug("ACF: %s: dumping %d %s items", value->name, value->num, + (value->type == XINT) ? "XINT" : "XFLT"); + for(i = 0; i < value->num; i ++) { + if(value->type == XINT) + g_debug("\tXINT: %s[%i] = %i", value->name, i, value->xint[i]); + else if(value->type == XFLT) + g_debug("\tXFLT: %s[%i] = %f", value->name, i, value->xflt[i]); + } +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_DEF_H +#define _IMP_ACF_DEF_H + +#include + +#include "imp_acf_def_proto.h" + +typedef struct { + GHashTable *db; +} AcfFile; + +AcfFile *acf_def_read(G3DStream *stream, const AcfDef *def, + gboolean bigendian); +void acf_def_free(AcfFile *acf); +AcfValue *acf_def_lookup(AcfFile *acf, const gchar *name); +void acf_def_dump(AcfValue *value); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_DEF_ACF603 +#define _IMP_ACF_DEF_ACF603 + +#include "imp_acf_def_proto.h" + +static const AcfDef acf_def_acf603[] = { + { XCHR, "VIEW__PlatForm", 1 }, + { XCHR, "VIEW__Filler", 4 }, + { XCHR, "VIEW__tailnum", 40 }, + { XCHR, "VIEW__author", 500 }, + { XCHR, "VIEW__descrip", 500 }, + { XFLT, "VIEW__size_x", 1 }, + { XFLT, "VIEW__size_z", 1 }, + { XINT, "VIEW__is_APL", 1 }, + { XINT, "VIEW__actype", 1 }, + { XINT, "VIEW__HUDtype", 1 }, + { XINT, "VIEW__asi_kts", 1 }, + { XINT, "VIEW__cockpit_type", 1 }, + { XINT, "VIEW__has_fd", 1 }, + { XINT, "VIEW__has_stallwarn", 1 }, + { XINT, "VIEW__has_litemap_tex", 1 }, + { XFLT, "VIEW__peX", 1 }, + { XFLT, "VIEW__peY", 1 }, + { XFLT, "VIEW__peZ", 1 }, + { XFLT, "VIEW__Vso", 1 }, + { XFLT, "VIEW__Vs", 1 }, + { XFLT, "VIEW__Vfe", 1 }, + { XFLT, "VIEW__Vno", 1 }, + { XFLT, "VIEW__Vne", 1 }, + { XFLT, "VIEW__Mmo", 1 }, + { XFLT, "VIEW__Gneg", 1 }, + { XFLT, "VIEW__Gpos", 1 }, + { XFLT, "VIEW__est_Vs", 1 }, + { XFLT, "VIEW__yawstringx", 1 }, + { XFLT, "VIEW__yawstringy", 1 }, + { XFLT, "VIEW__HUD_cntr", 1 }, + { XFLT, "VIEW__HUD_cntry", 1 }, + { XFLT, "VIEW__HUD_del", 1 }, + { XFLT, "VIEW__HUD_dely", 1 }, + { XINT, "VIEW__has_lanlite1", 1 }, + { XFLT, "VIEW__lanlite1X", 1 }, + { XFLT, "VIEW__lanlite1Y", 1 }, + { XFLT, "VIEW__lanlite1Z", 1 }, + { XFLT, "VIEW__lanlite_the", 1 }, + { XINT, "VIEW__has_lanlite2", 1 }, + { XFLT, "VIEW__lanlite2X", 1 }, + { XFLT, "VIEW__lanlite2Y", 1 }, + { XFLT, "VIEW__lanlite2Z", 1 }, + { XINT, "VIEW__has_lanlite3", 1 }, + { XFLT, "VIEW__lanlite3X", 1 }, + { XFLT, "VIEW__lanlite3Y", 1 }, + { XFLT, "VIEW__lanlite3Z", 1 }, + { XINT, "VIEW__has_fuserb1", 1 }, + { XFLT, "VIEW__fuserb1", 1 }, + { XFLT, "VIEW__fuserb1", 1 }, + { XFLT, "VIEW__fuserb1Z", 1 }, + { XINT, "VIEW__has_fuserb2", 1 }, + { XFLT, "VIEW__fuserb2", 1 }, + { XFLT, "VIEW__fuserb2", 1 }, + { XFLT, "VIEW__fuserb2Z", 1 }, + { XINT, "VIEW__has_taillite", 1 }, + { XFLT, "VIEW__tailliteX", 1 }, + { XFLT, "VIEW__tailliteY", 1 }, + { XFLT, "VIEW__tailliteZ", 1 }, + { XINT, "VIEW__has_navlites", 1 }, + { XINT, "PANEL_ins_type", 200 }, + { XFLT, "PANEL_ins_size", 200 }, + { XFLT, "PANEL_ins_x", 200 }, + { XFLT, "PANEL_ins_y", 200 }, + { XFLT, "PANEL_ins_delx", 200 }, + { XFLT, "PANEL_ins_dely", 200 }, + { XINT, "FORCE_Hydraulic", 1 }, + { XINT, "FORCE_Stickshaker", 1 }, + { XINT, "ENG___number_engines", 1 }, + { XINT, "ENG___auto_feather_EQ", 1 }, + { XFLT, "ENG___throtmax_FW", 1 }, + { XFLT, "ENG___throtmax_REV", 1 }, + { XFLT, "ENG___omegaminRS", 1 }, + { XFLT, "ENG___omegamaxRSC", 1 }, + { XFLT, "ENG___omegamingreenRSC", 1 }, + { XFLT, "ENG___omegamaxgreenRSC", 1 }, + { XFLT, "ENG___pmax", 1 }, + { XFLT, "ENG___tmax", 1 }, + { XFLT, "ENG___burnerinc", 1 }, + { XFLT, "ENG___critalt", 1 }, + { XFLT, "ENG___mpmax", 1 }, + { XFLT, "ENG___gearrat", 1 }, + { XFLT, "ENG___face_jet", 1 }, + { XFLT, "ENG___face_rocket", 1 }, + { XFLT, "ENG___spooltime", 1 }, + { XFLT, "ENG___max_mach_eff", 1 }, + { XFLT, "ENG___fmax_sl", 1 }, + { XFLT, "ENG___fmax_opt", 1 }, + { XFLT, "ENG___fmax_vac", 1 }, + { XFLT, "ENG___h_opt", 1 }, + { XFLT, "ENG___tip_mach_des_50", 1 }, + { XFLT, "ENG___tip_mach_des_100", 1 }, + { XFLT, "ENG___rotor_mi_rat", 1 }, + { XFLT, "ENG___tip_weight", 1 }, + { XFLT, "ENG___trotor_rat", 1 }, + { XINT, "PROP__engine_type", 8 }, + { XINT, "PROP__revthrust_eq", 8 }, + { XINT, "PROP__prop_type", 8 }, + { XFLT, "PROP__prop_dir", 8 }, + { XFLT, "PROP__num_blades", 8 }, + { XFLT, "PROP__SFC", 8 }, + { XFLT, "PROP__minpitch", 8 }, + { XFLT, "PROP__maxpitch", 8 }, + { XFLT, "PROP__revpitch", 8 }, + { XFLT, "PROP__sidecant", 8 }, + { XFLT, "PROP__vertcant", 8 }, + { XFLT, "PROP__miprop_rpm", 8 }, + { XFLT, "PROP__miprop_pitch", 8 }, + { XFLT, "PROP__discarea", 8 }, + { XFLT, "PROP__ringarea", 80 }, + { XFLT, "PROP__bladesweep", 80 }, + { XFLT, "PROP__des_rpm_prp", 8 }, + { XFLT, "PROP__des_kts_prp", 8 }, + { XFLT, "PROP__des_kts_acf", 8 }, + { XINT, "PARTS_part_eq", 57 }, + { XCHR, "PARTS_Rafl0", 2280 }, + { XCHR, "PARTS_Rafl1", 2280 }, + { XCHR, "PARTS_Tafl0", 2280 }, + { XCHR, "PARTS_Tafl1", 2280 }, + { XINT, "PARTS_els", 57 }, + { XFLT, "PARTS_Xarm", 57 }, + { XFLT, "PARTS_Yarm", 57 }, + { XFLT, "PARTS_Zarm", 57 }, + { XFLT, "PARTS_X_body_aero", 57 }, + { XFLT, "PARTS_Y_body_aero", 57 }, + { XFLT, "PARTS_Z_body_aero", 57 }, + { XFLT, "PARTS_Croot", 57 }, + { XFLT, "PARTS_Ctip", 57 }, + { XFLT, "PARTS_dihed", 57 }, + { XFLT, "PARTS_sweep1", 57 }, + { XFLT, "PARTS_sweep2", 57 }, + { XFLT, "PARTS_sweepnow", 57 }, + { XINT, "PARTS_varsweepEQ", 57 }, + { XFLT, "PARTS_semilen_SEG", 57 }, + { XFLT, "PARTS_semilen_JND", 57 }, + { XFLT, "PARTS_e", 57 }, + { XFLT, "PARTS_AR", 57 }, + { XFLT, "PARTS_al_D_al0", 57 }, + { XFLT, "PARTS_cl_D_cl0", 57 }, + { XFLT, "PARTS_cm_D_cm0", 57 }, + { XFLT, "PARTS_delta_fac", 57 }, + { XFLT, "PARTS_spec_wash", 57 }, + { XFLT, "PARTS_alpha_max", 57 }, + { XFLT, "PARTS_slat_effect", 57 }, + { XFLT, "PARTS_s", 570 }, + { XFLT, "PARTS_mac", 570 }, + { XFLT, "PARTS_anginc", 570 }, + { XINT, "PARTS_ail1", 570 }, + { XINT, "PARTS_ail2", 570 }, + { XINT, "PARTS_splr", 570 }, + { XINT, "PARTS_flap", 570 }, + { XINT, "PARTS_flapEQ", 1 }, + { XINT, "PARTS_slat", 570 }, + { XINT, "PARTS_slatEQ", 1 }, + { XINT, "PARTS_sbrk", 570 }, + { XINT, "PARTS_sbrkEQ", 1 }, + { XINT, "PARTS_drud", 570 }, + { XINT, "PARTS_elev", 570 }, + { XINT, "PARTS_rudd", 570 }, + { XINT, "PARTS_in_downwash", 32490 }, + { XFLT, "PARTS_body_r", 57 }, + { XFLT, "PARTS_body_X", 20520 }, + { XFLT, "PARTS_body_Y", 20520 }, + { XFLT, "PARTS_body_Z", 20520 }, + { XINT, "PARTS_gear_type", 57 }, + { XFLT, "PARTS_gear_latE", 57 }, + { XFLT, "PARTS_gear_lonE", 57 }, + { XFLT, "PARTS_gear_axiE", 57 }, + { XFLT, "PARTS_gear_latR", 57 }, + { XFLT, "PARTS_gear_lonR", 57 }, + { XFLT, "PARTS_gear_axiR", 57 }, + { XFLT, "PARTS_gear_latN", 57 }, + { XFLT, "PARTS_gear_lonN", 57 }, + { XFLT, "PARTS_gear_axiN", 57 }, + { XFLT, "PARTS_gear_leglen", 57 }, + { XFLT, "PARTS_gear_tirrad", 57 }, + { XFLT, "PARTS_gearcon", 57 }, + { XFLT, "PARTS_geardmp", 57 }, + { XFLT, "PARTS_gearstatdef", 57 }, + { XFLT, "PARTS_gear_def", 57 }, + { XFLT, "PARTS_gear_deploy", 57 }, + { XFLT, "PARTS_gear_xnodef", 57 }, + { XFLT, "PARTS_gear_ynodef", 57 }, + { XFLT, "PARTS_gear_znodef", 57 }, + { XFLT, "BODY__fuse_cd", 1 }, + { XFLT, "CTRLS_ail1_crat", 1 }, + { XFLT, "CTRLS_ail1_up", 1 }, + { XFLT, "CTRLS_ail1_d", 1 }, + { XFLT, "CTRLS_lail1def", 1 }, + { XFLT, "CTRLS_rail1def", 1 }, + { XFLT, "CTRLS_ail2_crat", 1 }, + { XFLT, "CTRLS_ail2_up", 1 }, + { XFLT, "CTRLS_ail2_d", 1 }, + { XFLT, "CTRLS_lail2def", 1 }, + { XFLT, "CTRLS_rail2def", 1 }, + { XFLT, "CTRLS_elev_crat", 1 }, + { XFLT, "CTRLS_elev_up", 1 }, + { XFLT, "CTRLS_elev_d", 1 }, + { XFLT, "CTRLS_lhstbdef", 1 }, + { XFLT, "CTRLS_rhstbdef", 1 }, + { XFLT, "CTRLS_rudd_crat", 1 }, + { XFLT, "CTRLS_rudd_l", 1 }, + { XFLT, "CTRLS_rudd1def", 1 }, + { XFLT, "CTRLS_rudd2def", 1 }, + { XFLT, "CTRLS_splr_crat", 1 }, + { XFLT, "CTRLS_splr_u", 1 }, + { XFLT, "CTRLS_lsplrdef", 1 }, + { XFLT, "CTRLS_rsplrdef", 1 }, + { XFLT, "CTRLS_drud_crat", 1 }, + { XFLT, "CTRLS_drud_u", 1 }, + { XFLT, "CTRLS_ldruddef", 1 }, + { XFLT, "CTRLS_rdruddef", 1 }, + { XFLT, "CTRLS_sbrk_crat", 1 }, + { XFLT, "CTRLS_sbrk_up", 1 }, + { XFLT, "CTRLS_flap_crat", 1 }, + { XFLT, "CTRLS_flap_dn", 7 }, + { XFLT, "CTRLS_lflapdef", 1 }, + { XFLT, "CTRLS_rflapdef", 1 }, + { XFLT, "CTRLS_hstb_trim_up", 1 }, + { XFLT, "CTRLS_hstb_trim_d", 1 }, + { XFLT, "CTRLS_hstb_trim_def", 1 }, + { XINT, "CTRLS_hstabtype", 1 }, + { XINT, "CTRLS_vstabtype", 1 }, + { XINT, "CTRLS_flap_type", 1 }, + { XINT, "CTRLS_con_smooth", 1 }, + { XFLT, "CTRLS_flap_cl", 1 }, + { XFLT, "CTRLS_flap_cd", 1 }, + { XFLT, "CTRLS_flap_cm", 1 }, + { XINT, "CTRLS_flap_detents", 1 }, + { XFLT, "CTRLS_flap_deftime", 1 }, + { XFLT, "CTRLS_slat_inc", 1 }, + { XFLT, "CTRLS_blownflap_addspeed", 1 }, + { XFLT, "CTRLS_blownflap_throtred", 1 }, + { XFLT, "CTRLS_blownflap_minengag", 1 }, + { XINT, "GEAR__gear_retract", 1 }, + { XINT, "GEAR__is_taildragger", 1 }, + { XINT, "GEAR__gear_is_skid", 1 }, + { XFLT, "GEAR__gear_deptime", 1 }, + { XFLT, "GEAR__nwsteerdeg1", 1 }, + { XFLT, "GEAR__nwsteerdeg2", 1 }, + { XFLT, "GEAR__nwsteerspd", 1 }, + { XFLT, "GEAR__water_rud_longarm", 1 }, + { XFLT, "GEAR__water_rud_area", 1 }, + { XFLT, "GEAR__water_rud_maxdef", 1 }, + { XFLT, "GEAR__h_eqlbm", 1 }, + { XFLT, "GEAR__the_eqlbm", 1 }, + { XINT, "GEAR__gear_door_use", 10 }, + { XFLT, "GEAR__gear_door_loc", 30 }, + { XFLT, "GEAR__gear_door_geo", 120 }, + { XFLT, "GEAR__gear_door_axi_rot", 10 }, + { XFLT, "GEAR__gear_door_ext_ang", 10 }, + { XFLT, "GEAR__gear_door_ret_ang", 10 }, + { XFLT, "GEAR__gear_door_ang_now", 10 }, + { XFLT, "WEIGHTcgY", 1 }, + { XFLT, "WEIGHTcgZ", 1 }, + { XFLT, "WEIGHTJxx_unitmass", 1 }, + { XFLT, "WEIGHTJyy_unitmass", 1 }, + { XFLT, "WEIGHTJzz_unitmass", 1 }, + { XFLT, "WEIGHTm_empty", 1 }, + { XFLT, "WEIGHTm_displaced", 1 }, + { XFLT, "WEIGHTm_max", 1 }, + { XFLT, "WEIGHTm_fuel", 1 }, + { XFLT, "WEIGHTm_jettison", 1 }, + { XFLT, "WEIGHTm_displaced_y", 1 }, + { XFLT, "SPEC__jato_theta", 1 }, + { XFLT, "SPEC__jato_thrust", 1 }, + { XFLT, "SPEC__jato_dur", 1 }, + { XFLT, "SPEC__jato_sfc", 1 }, + { XFLT, "SPEC__jato_Y", 1 }, + { XFLT, "SPEC__jato_Z", 1 }, + { XFLT, "SPEC__brake_area", 1 }, + { XFLT, "SPEC__brake_Y", 1 }, + { XFLT, "SPEC__brake_Z", 1 }, + { XFLT, "SPEC__chute_area", 1 }, + { XFLT, "SPEC__chute_Y", 1 }, + { XFLT, "SPEC__chute_Z", 1 }, + { XFLT, "SPEC__ail1pitch", 1 }, + { XFLT, "SPEC__ail1flaps", 1 }, + { XFLT, "SPEC__ail2pitch", 1 }, + { XFLT, "SPEC__ail2flaps", 1 }, + { XFLT, "SPEC__stabroll", 1 }, + { XFLT, "SPEC__stabhdng", 1 }, + { XFLT, "SPEC__ail2vmax", 1 }, + { XFLT, "SPEC__tvec_ptch", 1 }, + { XFLT, "SPEC__tvec_roll", 1 }, + { XFLT, "SPEC__tvec_hdng", 1 }, + { XFLT, "SPEC__diff_thro_with_hdng", 1 }, + { XINT, "SPEC__arrestingEQ", 1 }, + { XINT, "SPEC__antiiceEQ", 1 }, + { XINT, "SPEC__bitchinbettyEQ", 1 }, + { XINT, "SPEC__gearhornEQ", 1 }, + { XINT, "SPEC__autosbrkEQ", 1 }, + { XINT, "SPEC__autofbrkEQ", 1 }, + { XINT, "SPEC__autosweepEQ", 1 }, + { XINT, "SPEC__autoslatEQ", 1 }, + { XINT, "VTOL__vectEQ", 1 }, + { XFLT, "VTOL__vectarm", 1 }, + { XFLT, "VTOL__cyclic_elev", 1 }, + { XFLT, "VTOL__cyclic_ailn", 1 }, + { XFLT, "VTOL__delta3", 1 }, + { XFLT, "VTOL__puffL", 1 }, + { XFLT, "VTOL__puffM", 1 }, + { XFLT, "VTOL__puffN", 1 }, + { XFLT, "VTOL__tail_with_coll", 1 }, + { XFLT, "VTOL__diff_coll_with_roll", 1 }, + { XFLT, "VTOL__diff_coll_with_hdng", 1 }, + { XFLT, "VTOL__diff_cycl_with_hdng", 1 }, + { XINT, "VTOL__auto_rpm_with_tvec", 1 }, + { XFLT, "VTOL__rotor_trim_max", 1 }, + { XFLT, "VTOL__rotor_trim_ptch_cyc_rat", 1 }, + { XFLT, "ASTAB_AShiV", 1 }, + { XFLT, "ASTAB_ASloV", 1 }, + { XFLT, "ASTAB_ASmaxp1", 1 }, + { XFLT, "ASTAB_ASp1", 1 }, + { XFLT, "ASTAB_ASmaxp2", 1 }, + { XFLT, "ASTAB_ASp2", 1 }, + { XFLT, "ASTAB_ASmaxh1", 1 }, + { XFLT, "ASTAB_ASh1", 1 }, + { XFLT, "ASTAB_ASmaxh2", 1 }, + { XFLT, "ASTAB_ASh2", 1 }, + { XFLT, "ASTAB_ASmaxr1", 1 }, + { XFLT, "ASTAB_ASr1", 1 }, + { XFLT, "ASTAB_ASmaxr2", 1 }, + { XFLT, "ASTAB_ASr2", 1 }, + { XFLT, "ASTAB_ASminG", 1 }, + { XFLT, "ASTAB_ASmaxG", 1 }, + { XFLT, "OVER__flt_overflow", 300 }, + { XINT, "OVER__drive_by_wire", 1 }, + + { XEOF, NULL, 0 } +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_DEF_ACF625 +#define _IMP_ACF_DEF_ACF625 + +static const AcfDef acf_def_acf625[] = { + { XCHR, "VIEW__PlatForm", 1 }, + { XCHR, "VIEW__Filler", 4 }, + { XCHR, "VIEW__tailnum", 40 }, + { XCHR, "VIEW__author", 500 }, + { XCHR, "VIEW__descrip", 500 }, + { XFLT, "VIEW__size_x", 1 }, + { XFLT, "VIEW__size_z", 1 }, + { XINT, "VIEW__is_APL", 1 }, + { XINT, "VIEW__actype", 1 }, + { XINT, "VIEW__HUDtype", 1 }, + { XINT, "VIEW__asi_kts", 1 }, + { XINT, "VIEW__cockpit_type", 1 }, + { XINT, "VIEW__has_fd", 1 }, + { XINT, "VIEW__has_stallwarn", 1 }, + { XINT, "VIEW__has_litemap_tex", 1 }, + { XFLT, "VIEW__peX", 1 }, + { XFLT, "VIEW__peY", 1 }, + { XFLT, "VIEW__peZ", 1 }, + { XFLT, "VIEW__Vso", 1 }, + { XFLT, "VIEW__Vs", 1 }, + { XFLT, "VIEW__Vfe", 1 }, + { XFLT, "VIEW__Vno", 1 }, + { XFLT, "VIEW__Vne", 1 }, + { XFLT, "VIEW__Mmo", 1 }, + { XFLT, "VIEW__Gneg", 1 }, + { XFLT, "VIEW__Gpos", 1 }, + { XFLT, "VIEW__est_Vs", 1 }, + { XFLT, "VIEW__yawstringx", 1 }, + { XFLT, "VIEW__yawstringy", 1 }, + { XFLT, "VIEW__HUD_cntr", 1 }, + { XFLT, "VIEW__HUD_cntry", 1 }, + { XFLT, "VIEW__HUD_del", 1 }, + { XFLT, "VIEW__HUD_dely", 1 }, + { XINT, "VIEW__has_lanlite1", 1 }, + { XFLT, "VIEW__lanlite1X", 1 }, + { XFLT, "VIEW__lanlite1Y", 1 }, + { XFLT, "VIEW__lanlite1Z", 1 }, + { XFLT, "VIEW__lanlite_the", 1 }, + { XINT, "VIEW__has_lanlite2", 1 }, + { XFLT, "VIEW__lanlite2X", 1 }, + { XFLT, "VIEW__lanlite2Y", 1 }, + { XFLT, "VIEW__lanlite2Z", 1 }, + { XINT, "VIEW__has_lanlite3", 1 }, + { XFLT, "VIEW__lanlite3X", 1 }, + { XFLT, "VIEW__lanlite3Y", 1 }, + { XFLT, "VIEW__lanlite3Z", 1 }, + { XINT, "VIEW__has_fuserb1", 1 }, + { XFLT, "VIEW__fuserb1", 1 }, + { XFLT, "VIEW__fuserb1", 1 }, + { XFLT, "VIEW__fuserb1Z", 1 }, + { XINT, "VIEW__has_fuserb2", 1 }, + { XFLT, "VIEW__fuserb2", 1 }, + { XFLT, "VIEW__fuserb2", 1 }, + { XFLT, "VIEW__fuserb2Z", 1 }, + { XINT, "VIEW__has_taillite", 1 }, + { XFLT, "VIEW__tailliteX", 1 }, + { XFLT, "VIEW__tailliteY", 1 }, + { XFLT, "VIEW__tailliteZ", 1 }, + { XINT, "VIEW__has_navlites", 1 }, + { XINT, "PANEL_ins_type", 200 }, + { XFLT, "PANEL_ins_size", 200 }, + { XFLT, "PANEL_ins_x", 200 }, + { XFLT, "PANEL_ins_y", 200 }, + { XFLT, "PANEL_ins_delx", 200 }, + { XFLT, "PANEL_ins_dely", 200 }, + { XINT, "FORCE_Hydraulic", 1 }, + { XINT, "FORCE_Stickshaker", 1 }, + { XINT, "ENG___number_engines", 1 }, + { XINT, "ENG___auto_feather_EQ", 1 }, + { XFLT, "ENG___throtmax_FW", 1 }, + { XFLT, "ENG___throtmax_REV", 1 }, + { XFLT, "ENG___omegaminRS", 1 }, + { XFLT, "ENG___omegamaxRSC", 1 }, + { XFLT, "ENG___omegamingreenRSC", 1 }, + { XFLT, "ENG___omegamaxgreenRSC", 1 }, + { XFLT, "ENG___pmax", 1 }, + { XFLT, "ENG___tmax", 1 }, + { XFLT, "ENG___burnerinc", 1 }, + { XFLT, "ENG___critalt", 1 }, + { XFLT, "ENG___mpmax", 1 }, + { XFLT, "ENG___gearrat", 1 }, + { XFLT, "ENG___face_jet", 1 }, + { XFLT, "ENG___face_rocket", 1 }, + { XFLT, "ENG___spooltime", 1 }, + { XFLT, "ENG___max_mach_eff", 1 }, + { XFLT, "ENG___fmax_sl", 1 }, + { XFLT, "ENG___fmax_opt", 1 }, + { XFLT, "ENG___fmax_vac", 1 }, + { XFLT, "ENG___h_opt", 1 }, + { XFLT, "ENG___tip_mach_des_50", 1 }, + { XFLT, "ENG___tip_mach_des_100", 1 }, + { XFLT, "ENG___rotor_mi_rat", 1 }, + { XFLT, "ENG___tip_weight", 1 }, + { XFLT, "ENG___trotor_rat", 1 }, + { XINT, "PROP__engine_type", 8 }, + { XINT, "PROP__revthrust_eq", 8 }, + { XINT, "PROP__prop_type", 8 }, + { XFLT, "PROP__prop_dir", 8 }, + { XFLT, "PROP__num_blades", 8 }, + { XFLT, "PROP__SFC", 8 }, + { XFLT, "PROP__minpitch", 8 }, + { XFLT, "PROP__maxpitch", 8 }, + { XFLT, "PROP__revpitch", 8 }, + { XFLT, "PROP__sidecant", 8 }, + { XFLT, "PROP__vertcant", 8 }, + { XFLT, "PROP__miprop_rpm", 8 }, + { XFLT, "PROP__miprop_pitch", 8 }, + { XFLT, "PROP__discarea", 8 }, + { XFLT, "PROP__ringarea", 80 }, + { XFLT, "PROP__bladesweep", 80 }, + { XFLT, "PROP__des_rpm_prp", 8 }, + { XFLT, "PROP__des_kts_prp", 8 }, + { XFLT, "PROP__des_kts_acf", 8 }, + { XINT, "PARTS_part_eq", 57 }, + { XCHR, "PARTS_Rafl0", 2280 }, + { XCHR, "PARTS_Rafl1", 2280 }, + { XCHR, "PARTS_Tafl0", 2280 }, + { XCHR, "PARTS_Tafl1", 2280 }, + { XINT, "PARTS_els", 57 }, + { XFLT, "PARTS_Xarm", 57 }, + { XFLT, "PARTS_Yarm", 57 }, + { XFLT, "PARTS_Zarm", 57 }, + { XFLT, "PARTS_X_body_aero", 57 }, + { XFLT, "PARTS_Y_body_aero", 57 }, + { XFLT, "PARTS_Z_body_aero", 57 }, + { XFLT, "PARTS_Croot", 57 }, + { XFLT, "PARTS_Ctip", 57 }, + { XFLT, "PARTS_dihed", 57 }, + { XFLT, "PARTS_sweep1", 57 }, + { XFLT, "PARTS_sweep2", 57 }, + { XFLT, "PARTS_sweepnow", 57 }, + { XINT, "PARTS_varsweepEQ", 57 }, + { XFLT, "PARTS_semilen_SEG", 57 }, + { XFLT, "PARTS_semilen_JND", 57 }, + { XFLT, "PARTS_e", 57 }, + { XFLT, "PARTS_AR", 57 }, + { XFLT, "PARTS_al_D_al0", 57 }, + { XFLT, "PARTS_cl_D_cl0", 57 }, + { XFLT, "PARTS_cm_D_cm0", 57 }, + { XFLT, "PARTS_delta_fac", 57 }, + { XFLT, "PARTS_spec_wash", 57 }, + { XFLT, "PARTS_alpha_max", 57 }, + { XFLT, "PARTS_slat_effect", 57 }, + { XFLT, "PARTS_s", 570 }, + { XFLT, "PARTS_mac", 570 }, + { XFLT, "PARTS_anginc", 570 }, + { XINT, "PARTS_ail1", 570 }, + { XINT, "PARTS_ail2", 570 }, + { XINT, "PARTS_splr", 570 }, + { XINT, "PARTS_flap", 570 }, + { XINT, "PARTS_flapEQ", 1 }, + { XINT, "PARTS_slat", 570 }, + { XINT, "PARTS_slatEQ", 1 }, + { XINT, "PARTS_sbrk", 570 }, + { XINT, "PARTS_sbrkEQ", 1 }, + { XINT, "PARTS_drud", 570 }, + { XINT, "PARTS_elev", 570 }, + { XINT, "PARTS_rudd", 570 }, + { XINT, "PARTS_in_downwash", 32490 }, + { XFLT, "PARTS_body_r", 57 }, + { XFLT, "PARTS_body_X", 20520 }, + { XFLT, "PARTS_body_Y", 20520 }, + { XFLT, "PARTS_body_Z", 20520 }, + { XINT, "PARTS_gear_type", 57 }, + { XFLT, "PARTS_gear_latE", 57 }, + { XFLT, "PARTS_gear_lonE", 57 }, + { XFLT, "PARTS_gear_axiE", 57 }, + { XFLT, "PARTS_gear_latR", 57 }, + { XFLT, "PARTS_gear_lonR", 57 }, + { XFLT, "PARTS_gear_axiR", 57 }, + { XFLT, "PARTS_gear_latN", 57 }, + { XFLT, "PARTS_gear_lonN", 57 }, + { XFLT, "PARTS_gear_axiN", 57 }, + { XFLT, "PARTS_gear_leglen", 57 }, + { XFLT, "PARTS_gear_tirrad", 57 }, + { XFLT, "PARTS_gearcon", 57 }, + { XFLT, "PARTS_geardmp", 57 }, + { XFLT, "PARTS_gearstatdef", 57 }, + { XFLT, "PARTS_gear_def", 57 }, + { XFLT, "PARTS_gear_deploy", 57 }, + { XFLT, "PARTS_gear_xnodef", 57 }, + { XFLT, "PARTS_gear_ynodef", 57 }, + { XFLT, "PARTS_gear_znodef", 57 }, + { XFLT, "BODY__fuse_cd", 1 }, + { XFLT, "CTRLS_ail1_crat", 1 }, + { XFLT, "CTRLS_ail1_up", 1 }, + { XFLT, "CTRLS_ail1_d", 1 }, + { XFLT, "CTRLS_lail1def", 1 }, + { XFLT, "CTRLS_rail1def", 1 }, + { XFLT, "CTRLS_ail2_crat", 1 }, + { XFLT, "CTRLS_ail2_up", 1 }, + { XFLT, "CTRLS_ail2_d", 1 }, + { XFLT, "CTRLS_lail2def", 1 }, + { XFLT, "CTRLS_rail2def", 1 }, + { XFLT, "CTRLS_elev_crat", 1 }, + { XFLT, "CTRLS_elev_up", 1 }, + { XFLT, "CTRLS_elev_d", 1 }, + { XFLT, "CTRLS_lhstbdef", 1 }, + { XFLT, "CTRLS_rhstbdef", 1 }, + { XFLT, "CTRLS_rudd_crat", 1 }, + { XFLT, "CTRLS_rudd_l", 1 }, + { XFLT, "CTRLS_rudd1def", 1 }, + { XFLT, "CTRLS_rudd2def", 1 }, + { XFLT, "CTRLS_splr_crat", 1 }, + { XFLT, "CTRLS_splr_u", 1 }, + { XFLT, "CTRLS_lsplrdef", 1 }, + { XFLT, "CTRLS_rsplrdef", 1 }, + { XFLT, "CTRLS_drud_crat", 1 }, + { XFLT, "CTRLS_drud_u", 1 }, + { XFLT, "CTRLS_ldruddef", 1 }, + { XFLT, "CTRLS_rdruddef", 1 }, + { XFLT, "CTRLS_sbrk_crat", 1 }, + { XFLT, "CTRLS_sbrk_up", 1 }, + { XFLT, "CTRLS_flap_crat", 1 }, + { XFLT, "CTRLS_flap_dn", 7 }, + { XFLT, "CTRLS_lflapdef", 1 }, + { XFLT, "CTRLS_rflapdef", 1 }, + { XFLT, "CTRLS_hstb_trim_up", 1 }, + { XFLT, "CTRLS_hstb_trim_d", 1 }, + { XFLT, "CTRLS_hstb_trim_def", 1 }, + { XINT, "CTRLS_hstabtype", 1 }, + { XINT, "CTRLS_vstabtype", 1 }, + { XINT, "CTRLS_flap_type", 1 }, + { XINT, "CTRLS_con_smooth", 1 }, + { XFLT, "CTRLS_flap_cl", 1 }, + { XFLT, "CTRLS_flap_cd", 1 }, + { XFLT, "CTRLS_flap_cm", 1 }, + { XINT, "CTRLS_flap_detents", 1 }, + { XFLT, "CTRLS_flap_deftime", 1 }, + { XFLT, "CTRLS_slat_inc", 1 }, + { XFLT, "CTRLS_blownflap_addspeed", 1 }, + { XFLT, "CTRLS_blownflap_throtred", 1 }, + { XFLT, "CTRLS_blownflap_minengag", 1 }, + { XINT, "GEAR__gear_retract", 1 }, + { XINT, "GEAR__is_taildragger", 1 }, + { XINT, "GEAR__gear_is_skid", 1 }, + { XFLT, "GEAR__gear_deptime", 1 }, + { XFLT, "GEAR__nwsteerdeg1", 1 }, + { XFLT, "GEAR__nwsteerdeg2", 1 }, + { XFLT, "GEAR__nwsteerspd", 1 }, + { XFLT, "GEAR__water_rud_longarm", 1 }, + { XFLT, "GEAR__water_rud_area", 1 }, + { XFLT, "GEAR__water_rud_maxdef", 1 }, + { XFLT, "GEAR__h_eqlbm", 1 }, + { XFLT, "GEAR__the_eqlbm", 1 }, + { XINT, "GEAR__gear_door_use", 10 }, + { XFLT, "GEAR__gear_door_loc", 30 }, + { XFLT, "GEAR__gear_door_geo", 120 }, + { XFLT, "GEAR__gear_door_axi_rot", 10 }, + { XFLT, "GEAR__gear_door_ext_ang", 10 }, + { XFLT, "GEAR__gear_door_ret_ang", 10 }, + { XFLT, "GEAR__gear_door_ang_now", 10 }, + { XFLT, "WEIGHTcgY", 1 }, + { XFLT, "WEIGHTcgZ", 1 }, + { XFLT, "WEIGHTJxx_unitmass", 1 }, + { XFLT, "WEIGHTJyy_unitmass", 1 }, + { XFLT, "WEIGHTJzz_unitmass", 1 }, + { XFLT, "WEIGHTm_empty", 1 }, + { XFLT, "WEIGHTm_displaced", 1 }, + { XFLT, "WEIGHTm_max", 1 }, + { XFLT, "WEIGHTm_fuel", 1 }, + { XFLT, "WEIGHTm_jettison", 1 }, + { XFLT, "WEIGHTm_displaced_y", 1 }, + { XFLT, "SPEC__jato_theta", 1 }, + { XFLT, "SPEC__jato_thrust", 1 }, + { XFLT, "SPEC__jato_dur", 1 }, + { XFLT, "SPEC__jato_sfc", 1 }, + { XFLT, "SPEC__jato_Y", 1 }, + { XFLT, "SPEC__jato_Z", 1 }, + { XFLT, "SPEC__brake_area", 1 }, + { XFLT, "SPEC__brake_Y", 1 }, + { XFLT, "SPEC__brake_Z", 1 }, + { XFLT, "SPEC__chute_area", 1 }, + { XFLT, "SPEC__chute_Y", 1 }, + { XFLT, "SPEC__chute_Z", 1 }, + { XFLT, "SPEC__ail1pitch", 1 }, + { XFLT, "SPEC__ail1flaps", 1 }, + { XFLT, "SPEC__ail2pitch", 1 }, + { XFLT, "SPEC__ail2flaps", 1 }, + { XFLT, "SPEC__stabroll", 1 }, + { XFLT, "SPEC__stabhdng", 1 }, + { XFLT, "SPEC__ail2vmax", 1 }, + { XFLT, "SPEC__tvec_ptch", 1 }, + { XFLT, "SPEC__tvec_roll", 1 }, + { XFLT, "SPEC__tvec_hdng", 1 }, + { XFLT, "SPEC__diff_thro_with_hdng", 1 }, + { XINT, "SPEC__arrestingEQ", 1 }, + { XINT, "SPEC__antiiceEQ", 1 }, + { XINT, "SPEC__bitchinbettyEQ", 1 }, + { XINT, "SPEC__gearhornEQ", 1 }, + { XINT, "SPEC__autosbrkEQ", 1 }, + { XINT, "SPEC__autofbrkEQ", 1 }, + { XINT, "SPEC__autosweepEQ", 1 }, + { XINT, "SPEC__autoslatEQ", 1 }, + { XINT, "VTOL__vectEQ", 1 }, + { XFLT, "VTOL__vectarm", 1 }, + { XFLT, "VTOL__cyclic_elev", 1 }, + { XFLT, "VTOL__cyclic_ailn", 1 }, + { XFLT, "VTOL__delta3", 1 }, + { XFLT, "VTOL__puffL", 1 }, + { XFLT, "VTOL__puffM", 1 }, + { XFLT, "VTOL__puffN", 1 }, + { XFLT, "VTOL__tail_with_coll", 1 }, + { XFLT, "VTOL__diff_coll_with_roll", 1 }, + { XFLT, "VTOL__diff_coll_with_hdng", 1 }, + { XFLT, "VTOL__diff_cycl_with_hdng", 1 }, + { XINT, "VTOL__auto_rpm_with_tvec", 1 }, + { XFLT, "VTOL__rotor_trim_max_fwd", 1 }, + { XFLT, "VTOL__rotor_trim_max_aft", 1 }, + { XFLT, "ASTAB_AShiV", 1 }, + { XFLT, "ASTAB_ASloV", 1 }, + { XFLT, "ASTAB_Asmaxp_lo", 1 }, + { XFLT, "ASTAB_Asp_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxp_hi", 1 }, + { XFLT, "ASTAB_Asp_hi_pos", 1 }, + { XFLT, "ASTAB_Asmaxh_lo", 1 }, + { XFLT, "ASTAB_Ash_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxh_hi", 1 }, + { XFLT, "ASTAB_Ash_hi_pos", 1 }, + { XFLT, "ASTAB_Asmaxr_lo", 1 }, + { XFLT, "ASTAB_Asr_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxr_hi", 1 }, + { XFLT, "ASTAB_Asr_hi_rate", 1 }, + { XFLT, "fdummy1", 1 }, + { XFLT, "fdummy2", 1 }, + { XFLT, "element_len", 57 }, + { XFLT, "gear_door_size", 1 }, + { XFLT, "stab_change_to_redline", 1 }, + { XFLT, "Vmca", 1 }, + { XFLT, "Vyse", 1 }, + { XFLT, "flap_arm", 1 }, + { XFLT, "tank_xyz12", 6 }, + { XFLT, "cgZ_fwd", 1 }, + { XFLT, "cgZ_aft", 1 }, + { XFLT, "gear_cyc_time", 5 }, + { XFLT, "refuel_X", 1 }, + { XFLT, "refuel_Y", 1 }, + { XFLT, "refuel_Z", 1 }, + { XCHR, "gear_steers", 57 }, + { XCHR, "hybrid_gear", 1 }, + { XCHR, "chr_overflow", 2 }, + { XINT, "vardihedEQ", 57 }, + { XFLT, "dihed2", 57 }, + { XFLT, "dihednow", 57 }, + { XFLT, "jett_xyz", 3 }, + { XFLT, "puffX", 1 }, + { XFLT, "puffY", 1 }, + { XFLT, "puffZ", 1 }, + { XFLT, "Vle", 1 }, + { XFLT, "ASp_hi_rate", 1 }, + { XFLT, "ASh_hi_rate", 1 }, + { XFLT, "spooltime_prop", 1 }, + { XFLT, "elevflaps", 1 }, + { XFLT, "tank_xyz3", 3 }, + { XFLT, "tank_rat", 3 }, + { XFLT, "stall_warn_alpha", 1 }, + { XFLT, "mass_shift", 1 }, + { XFLT, "mass_shift_dx", 1 }, + { XFLT, "mass_shift_dz", 1 }, + { XFLT, "feathered_pitch", 1 }, + { XFLT, "ASmaxg_hi", 1 }, + { XFLT, "ASg_hi_pos", 1 }, + { XFLT, "ASg_hi_rate", 1 }, + { XFLT, "flt_overflow", 11 }, + { XINT, "OVER__drive_by_wire", 1 }, + { XINT, "is_glossy", 1 }, + { XINT, "num_tanks", 1 }, + { XINT, "has_refuel", 1 }, + { XINT, "draw_geo_frnt_views", 1 }, + { XINT, "draw_geo_side_views", 1 }, + { XINT, "jett_is_slung", 1 }, + { XFLT, "eng_mass", 57 }, + { XINT, "phase_tvect", 1 }, + { XINT, "auto_trim", 1 }, + { XINT, "has_DC_fd", 1 }, + { XINT, "int_overflow", 23 }, + + { XEOF, NULL, 0 } +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_DEF_ACF630 +#define _IMP_ACF_DEF_ACF630 + +#include "imp_acf_def_proto.h" + +static const AcfDef acf_def_acf630[] = { + { XCHR, "VIEW__PlatForm", 1 }, + { XCHR, "VIEW__Filler", 4 }, + { XCHR, "VIEW__tailnum", 40 }, + { XCHR, "VIEW__author", 500 }, + { XCHR, "VIEW__descrip", 500 }, + { XFLT, "VIEW__size_x", 1 }, + { XFLT, "VIEW__size_z", 1 }, + { XINT, "VIEW__is_APL", 1 }, + { XINT, "VIEW__actype", 1 }, + { XINT, "VIEW__HUDtype", 1 }, + { XINT, "VIEW__asi_kts", 1 }, + { XINT, "VIEW__cockpit_type", 1 }, + { XINT, "VIEW__has_fd", 1 }, + { XINT, "VIEW__has_stallwarn", 1 }, + { XINT, "VIEW__has_litemap_tex", 1 }, + { XFLT, "VIEW__peX", 1 }, + { XFLT, "VIEW__peY", 1 }, + { XFLT, "VIEW__peZ", 1 }, + { XFLT, "VIEW__Vso", 1 }, + { XFLT, "VIEW__Vs", 1 }, + { XFLT, "VIEW__Vfe", 1 }, + { XFLT, "VIEW__Vno", 1 }, + { XFLT, "VIEW__Vne", 1 }, + { XFLT, "VIEW__Mmo", 1 }, + { XFLT, "VIEW__Gneg", 1 }, + { XFLT, "VIEW__Gpos", 1 }, + { XFLT, "VIEW__est_Vs", 1 }, + { XFLT, "VIEW__yawstringx", 1 }, + { XFLT, "VIEW__yawstringy", 1 }, + { XFLT, "VIEW__HUD_cntr", 1 }, + { XFLT, "VIEW__HUD_cntry", 1 }, + { XFLT, "VIEW__HUD_del", 1 }, + { XFLT, "VIEW__HUD_dely", 1 }, + { XINT, "VIEW__has_lanlite1", 1 }, + { XFLT, "VIEW__lanlite1X", 1 }, + { XFLT, "VIEW__lanlite1Y", 1 }, + { XFLT, "VIEW__lanlite1Z", 1 }, + { XFLT, "VIEW__lanlite_the", 1 }, + { XINT, "VIEW__has_lanlite2", 1 }, + { XFLT, "VIEW__lanlite2X", 1 }, + { XFLT, "VIEW__lanlite2Y", 1 }, + { XFLT, "VIEW__lanlite2Z", 1 }, + { XINT, "VIEW__has_lanlite3", 1 }, + { XFLT, "VIEW__lanlite3X", 1 }, + { XFLT, "VIEW__lanlite3Y", 1 }, + { XFLT, "VIEW__lanlite3Z", 1 }, + { XINT, "VIEW__has_fuserb1", 1 }, + { XFLT, "VIEW__fuserb1", 1 }, + { XFLT, "VIEW__fuserb1", 1 }, + { XFLT, "VIEW__fuserb1Z", 1 }, + { XINT, "VIEW__has_fuserb2", 1 }, + { XFLT, "VIEW__fuserb2", 1 }, + { XFLT, "VIEW__fuserb2", 1 }, + { XFLT, "VIEW__fuserb2Z", 1 }, + { XINT, "VIEW__has_taillite", 1 }, + { XFLT, "VIEW__tailliteX", 1 }, + { XFLT, "VIEW__tailliteY", 1 }, + { XFLT, "VIEW__tailliteZ", 1 }, + { XINT, "VIEW__has_navlites", 1 }, + { XINT, "PANEL_ins_type", 200 }, + { XFLT, "PANEL_ins_size", 200 }, + { XFLT, "PANEL_ins_x", 200 }, + { XFLT, "PANEL_ins_y", 200 }, + { XFLT, "PANEL_ins_delx", 200 }, + { XFLT, "PANEL_ins_dely", 200 }, + { XINT, "FORCE_Hydraulic", 1 }, + { XINT, "FORCE_Stickshaker", 1 }, + { XINT, "ENG___number_engines", 1 }, + { XINT, "ENG___auto_feather_EQ", 1 }, + { XFLT, "ENG___throtmax_FW", 1 }, + { XFLT, "ENG___throtmax_REV", 1 }, + { XFLT, "ENG___omegaminRS", 1 }, + { XFLT, "ENG___omegamaxRSC", 1 }, + { XFLT, "ENG___omegamingreenRSC", 1 }, + { XFLT, "ENG___omegamaxgreenRSC", 1 }, + { XFLT, "ENG___pmax", 1 }, + { XFLT, "ENG___tmax", 1 }, + { XFLT, "ENG___burnerinc", 1 }, + { XFLT, "ENG___critalt", 1 }, + { XFLT, "ENG___mpmax", 1 }, + { XFLT, "ENG___gearrat", 1 }, + { XFLT, "ENG___face_jet", 1 }, + { XFLT, "ENG___face_rocket", 1 }, + { XFLT, "ENG___spooltime", 1 }, + { XFLT, "ENG___max_mach_eff", 1 }, + { XFLT, "ENG___fmax_sl", 1 }, + { XFLT, "ENG___fmax_opt", 1 }, + { XFLT, "ENG___fmax_vac", 1 }, + { XFLT, "ENG___h_opt", 1 }, + { XFLT, "ENG___tip_mach_des_50", 1 }, + { XFLT, "ENG___tip_mach_des_100", 1 }, + { XFLT, "ENG___rotor_mi_rat", 1 }, + { XFLT, "ENG___tip_weight", 1 }, + { XFLT, "ENG___trotor_rat", 1 }, + { XINT, "PROP__engine_type", 8 }, + { XINT, "PROP__revthrust_eq", 8 }, + { XINT, "PROP__prop_type", 8 }, + { XFLT, "PROP__prop_dir", 8 }, + { XFLT, "PROP__num_blades", 8 }, + { XFLT, "PROP__SFC", 8 }, + { XFLT, "PROP__minpitch", 8 }, + { XFLT, "PROP__maxpitch", 8 }, + { XFLT, "PROP__revpitch", 8 }, + { XFLT, "PROP__sidecant", 8 }, + { XFLT, "PROP__vertcant", 8 }, + { XFLT, "PROP__miprop_rpm", 8 }, + { XFLT, "PROP__miprop_pitch", 8 }, + { XFLT, "PROP__discarea", 8 }, + { XFLT, "PROP__ringarea", 80 }, + { XFLT, "PROP__bladesweep", 80 }, + { XFLT, "PROP__des_rpm_prp", 8 }, + { XFLT, "PROP__des_kts_prp", 8 }, + { XFLT, "PROP__des_kts_acf", 8 }, + { XINT, "PARTS_part_eq", 57 }, + { XCHR, "PARTS_Rafl0", 2280 }, + { XCHR, "PARTS_Rafl1", 2280 }, + { XCHR, "PARTS_Tafl0", 2280 }, + { XCHR, "PARTS_Tafl1", 2280 }, + { XINT, "PARTS_els", 57 }, + { XFLT, "PARTS_Xarm", 57 }, + { XFLT, "PARTS_Yarm", 57 }, + { XFLT, "PARTS_Zarm", 57 }, + { XFLT, "PARTS_X_body_aero", 57 }, + { XFLT, "PARTS_Y_body_aero", 57 }, + { XFLT, "PARTS_Z_body_aero", 57 }, + { XFLT, "PARTS_Croot", 57 }, + { XFLT, "PARTS_Ctip", 57 }, + { XFLT, "PARTS_dihed", 57 }, + { XFLT, "PARTS_sweep1", 57 }, + { XFLT, "PARTS_sweep2", 57 }, + { XFLT, "PARTS_sweepnow", 57 }, + { XINT, "PARTS_varsweepEQ", 57 }, + { XFLT, "PARTS_semilen_SEG", 57 }, + { XFLT, "PARTS_semilen_JND", 57 }, + { XFLT, "PARTS_e", 57 }, + { XFLT, "PARTS_AR", 57 }, + { XFLT, "PARTS_al_D_al0", 57 }, + { XFLT, "PARTS_cl_D_cl0", 57 }, + { XFLT, "PARTS_cm_D_cm0", 57 }, + { XFLT, "PARTS_delta_fac", 57 }, + { XFLT, "PARTS_spec_wash", 57 }, + { XFLT, "PARTS_alpha_max", 57 }, + { XFLT, "PARTS_slat_effect", 57 }, + { XFLT, "PARTS_s", 570 }, + { XFLT, "PARTS_mac", 570 }, + { XFLT, "PARTS_anginc", 570 }, + { XINT, "PARTS_ail1", 570 }, + { XINT, "PARTS_ail2", 570 }, + { XINT, "PARTS_splr", 570 }, + { XINT, "PARTS_flap", 570 }, + { XINT, "PARTS_flapEQ", 1 }, + { XINT, "PARTS_slat", 570 }, + { XINT, "PARTS_slatEQ", 1 }, + { XINT, "PARTS_sbrk", 570 }, + { XINT, "PARTS_sbrkEQ", 1 }, + { XINT, "PARTS_drud", 570 }, + { XINT, "PARTS_elev", 570 }, + { XINT, "PARTS_rudd", 570 }, + { XINT, "PARTS_in_downwash", 32490 }, + { XFLT, "PARTS_body_r", 57 }, + { XFLT, "PARTS_body_X", 20520 }, + { XFLT, "PARTS_body_Y", 20520 }, + { XFLT, "PARTS_body_Z", 20520 }, + { XINT, "PARTS_gear_type", 57 }, + { XFLT, "PARTS_gear_latE", 57 }, + { XFLT, "PARTS_gear_lonE", 57 }, + { XFLT, "PARTS_gear_axiE", 57 }, + { XFLT, "PARTS_gear_latR", 57 }, + { XFLT, "PARTS_gear_lonR", 57 }, + { XFLT, "PARTS_gear_axiR", 57 }, + { XFLT, "PARTS_gear_latN", 57 }, + { XFLT, "PARTS_gear_lonN", 57 }, + { XFLT, "PARTS_gear_axiN", 57 }, + { XFLT, "PARTS_gear_leglen", 57 }, + { XFLT, "PARTS_gear_tirrad", 57 }, + { XFLT, "PARTS_gearcon", 57 }, + { XFLT, "PARTS_geardmp", 57 }, + { XFLT, "PARTS_gearstatdef", 57 }, + { XFLT, "PARTS_gear_def", 57 }, + { XFLT, "PARTS_gear_deploy", 57 }, + { XFLT, "PARTS_gear_xnodef", 57 }, + { XFLT, "PARTS_gear_ynodef", 57 }, + { XFLT, "PARTS_gear_znodef", 57 }, + { XFLT, "BODY__fuse_cd", 1 }, + { XFLT, "CTRLS_ail1_crat", 1 }, + { XFLT, "CTRLS_ail1_up", 1 }, + { XFLT, "CTRLS_ail1_d", 1 }, + { XFLT, "CTRLS_lail1def", 1 }, + { XFLT, "CTRLS_rail1def", 1 }, + { XFLT, "CTRLS_ail2_crat", 1 }, + { XFLT, "CTRLS_ail2_up", 1 }, + { XFLT, "CTRLS_ail2_d", 1 }, + { XFLT, "CTRLS_lail2def", 1 }, + { XFLT, "CTRLS_rail2def", 1 }, + { XFLT, "CTRLS_elev_crat", 1 }, + { XFLT, "CTRLS_elev_up", 1 }, + { XFLT, "CTRLS_elev_d", 1 }, + { XFLT, "CTRLS_lhstbdef", 1 }, + { XFLT, "CTRLS_rhstbdef", 1 }, + { XFLT, "CTRLS_rudd_crat", 1 }, + { XFLT, "CTRLS_rudd_l", 1 }, + { XFLT, "CTRLS_rudd1def", 1 }, + { XFLT, "CTRLS_rudd2def", 1 }, + { XFLT, "CTRLS_splr_crat", 1 }, + { XFLT, "CTRLS_splr_u", 1 }, + { XFLT, "CTRLS_lsplrdef", 1 }, + { XFLT, "CTRLS_rsplrdef", 1 }, + { XFLT, "CTRLS_drud_crat", 1 }, + { XFLT, "CTRLS_drud_u", 1 }, + { XFLT, "CTRLS_ldruddef", 1 }, + { XFLT, "CTRLS_rdruddef", 1 }, + { XFLT, "CTRLS_sbrk_crat", 1 }, + { XFLT, "CTRLS_sbrk_up", 1 }, + { XFLT, "CTRLS_flap_crat", 1 }, + { XFLT, "CTRLS_flap_dn", 7 }, + { XFLT, "CTRLS_lflapdef", 1 }, + { XFLT, "CTRLS_rflapdef", 1 }, + { XFLT, "CTRLS_hstb_trim_up", 1 }, + { XFLT, "CTRLS_hstb_trim_d", 1 }, + { XFLT, "CTRLS_hstb_trim_def", 1 }, + { XINT, "CTRLS_hstabtype", 1 }, + { XINT, "CTRLS_vstabtype", 1 }, + { XINT, "CTRLS_flap_type", 1 }, + { XINT, "CTRLS_con_smooth", 1 }, + { XFLT, "CTRLS_flap_cl", 1 }, + { XFLT, "CTRLS_flap_cd", 1 }, + { XFLT, "CTRLS_flap_cm", 1 }, + { XINT, "CTRLS_flap_detents", 1 }, + { XFLT, "CTRLS_flap_deftime", 1 }, + { XFLT, "CTRLS_slat_inc", 1 }, + { XFLT, "CTRLS_blownflap_addspeed", 1 }, + { XFLT, "CTRLS_blownflap_throtred", 1 }, + { XFLT, "CTRLS_blownflap_minengag", 1 }, + { XINT, "GEAR__gear_retract", 1 }, + { XINT, "GEAR__is_taildragger", 1 }, + { XINT, "GEAR__gear_is_skid", 1 }, + { XFLT, "GEAR__gear_deptime", 1 }, + { XFLT, "GEAR__nwsteerdeg1", 1 }, + { XFLT, "GEAR__nwsteerdeg2", 1 }, + { XFLT, "GEAR__nwsteerspd", 1 }, + { XFLT, "GEAR__water_rud_longarm", 1 }, + { XFLT, "GEAR__water_rud_area", 1 }, + { XFLT, "GEAR__water_rud_maxdef", 1 }, + { XFLT, "GEAR__h_eqlbm", 1 }, + { XFLT, "GEAR__the_eqlbm", 1 }, + { XINT, "GEAR__gear_door_use", 10 }, + { XFLT, "GEAR__gear_door_loc", 30 }, + { XFLT, "GEAR__gear_door_geo", 120 }, + { XFLT, "GEAR__gear_door_axi_rot", 10 }, + { XFLT, "GEAR__gear_door_ext_ang", 10 }, + { XFLT, "GEAR__gear_door_ret_ang", 10 }, + { XFLT, "GEAR__gear_door_ang_now", 10 }, + { XFLT, "WEIGHTcgY", 1 }, + { XFLT, "WEIGHTcgZ", 1 }, + { XFLT, "WEIGHTJxx_unitmass", 1 }, + { XFLT, "WEIGHTJyy_unitmass", 1 }, + { XFLT, "WEIGHTJzz_unitmass", 1 }, + { XFLT, "WEIGHTm_empty", 1 }, + { XFLT, "WEIGHTm_displaced", 1 }, + { XFLT, "WEIGHTm_max", 1 }, + { XFLT, "WEIGHTm_fuel", 1 }, + { XFLT, "WEIGHTm_jettison", 1 }, + { XFLT, "WEIGHTm_displaced_y", 1 }, + { XFLT, "SPEC__jato_theta", 1 }, + { XFLT, "SPEC__jato_thrust", 1 }, + { XFLT, "SPEC__jato_dur", 1 }, + { XFLT, "SPEC__jato_sfc", 1 }, + { XFLT, "SPEC__jato_Y", 1 }, + { XFLT, "SPEC__jato_Z", 1 }, + { XFLT, "SPEC__brake_area", 1 }, + { XFLT, "SPEC__brake_Y", 1 }, + { XFLT, "SPEC__brake_Z", 1 }, + { XFLT, "SPEC__chute_area", 1 }, + { XFLT, "SPEC__chute_Y", 1 }, + { XFLT, "SPEC__chute_Z", 1 }, + { XFLT, "SPEC__ail1pitch", 1 }, + { XFLT, "SPEC__ail1flaps", 1 }, + { XFLT, "SPEC__ail2pitch", 1 }, + { XFLT, "SPEC__ail2flaps", 1 }, + { XFLT, "SPEC__stabroll", 1 }, + { XFLT, "SPEC__stabhdng", 1 }, + { XFLT, "SPEC__ail2vmax", 1 }, + { XFLT, "SPEC__tvec_ptch", 1 }, + { XFLT, "SPEC__tvec_roll", 1 }, + { XFLT, "SPEC__tvec_hdng", 1 }, + { XFLT, "SPEC__diff_thro_with_hdng", 1 }, + { XINT, "SPEC__arrestingEQ", 1 }, + { XINT, "SPEC__antiiceEQ", 1 }, + { XINT, "SPEC__bitchinbettyEQ", 1 }, + { XINT, "SPEC__gearhornEQ", 1 }, + { XINT, "SPEC__autosbrkEQ", 1 }, + { XINT, "SPEC__autofbrkEQ", 1 }, + { XINT, "SPEC__autosweepEQ", 1 }, + { XINT, "SPEC__autoslatEQ", 1 }, + { XINT, "VTOL__vectEQ", 1 }, + { XFLT, "VTOL__vectarm", 1 }, + { XFLT, "VTOL__cyclic_elev", 1 }, + { XFLT, "VTOL__cyclic_ailn", 1 }, + { XFLT, "VTOL__delta3", 1 }, + { XFLT, "VTOL__puffL", 1 }, + { XFLT, "VTOL__puffM", 1 }, + { XFLT, "VTOL__puffN", 1 }, + { XFLT, "VTOL__tail_with_coll", 1 }, + { XFLT, "VTOL__diff_coll_with_roll", 1 }, + { XFLT, "VTOL__diff_coll_with_hdng", 1 }, + { XFLT, "VTOL__diff_cycl_with_hdng", 1 }, + { XINT, "VTOL__auto_rpm_with_tvec", 1 }, + { XFLT, "VTOL__rotor_trim_max_fwd", 1 }, + { XFLT, "VTOL__rotor_trim_max_aft", 1 }, + { XFLT, "ASTAB_AShiV", 1 }, + { XFLT, "ASTAB_ASloV", 1 }, + { XFLT, "ASTAB_Asmaxp_lo", 1 }, + { XFLT, "ASTAB_Asp_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxp_hi", 1 }, + { XFLT, "ASTAB_Asp_hi_pos", 1 }, + { XFLT, "ASTAB_Asmaxh_lo", 1 }, + { XFLT, "ASTAB_Ash_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxh_hi", 1 }, + { XFLT, "ASTAB_Ash_hi_pos", 1 }, + { XFLT, "ASTAB_Asmaxr_lo", 1 }, + { XFLT, "ASTAB_Asr_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxr_hi", 1 }, + { XFLT, "ASTAB_Asr_hi_rate", 1 }, + { XFLT, "fdummy1", 1 }, + { XFLT, "fdummy2", 1 }, + { XFLT, "element_len", 57 }, + { XFLT, "gear_door_size", 1 }, + { XFLT, "stab_change_to_redline", 1 }, + { XFLT, "Vmca", 1 }, + { XFLT, "Vyse", 1 }, + { XFLT, "flap_arm", 1 }, + { XFLT, "tank_xyz12", 6 }, + { XFLT, "cgZ_fwd", 1 }, + { XFLT, "cgZ_aft", 1 }, + { XFLT, "gear_cyc_time", 5 }, + { XFLT, "refuel_X", 1 }, + { XFLT, "refuel_Y", 1 }, + { XFLT, "refuel_Z", 1 }, + { XCHR, "gear_steers", 57 }, + { XCHR, "hybrid_gear", 1 }, + { XCHR, "chr_overflow", 2 }, + { XINT, "vardihedEQ", 57 }, + { XFLT, "dihed2", 57 }, + { XFLT, "dihednow", 57 }, + { XFLT, "jett_xyz", 3 }, + { XFLT, "puffX", 1 }, + { XFLT, "puffY", 1 }, + { XFLT, "puffZ", 1 }, + { XFLT, "Vle", 1 }, + { XFLT, "ASp_hi_rate", 1 }, + { XFLT, "ASh_hi_rate", 1 }, + { XFLT, "spooltime_prop", 1 }, + { XFLT, "elevflaps", 1 }, + { XFLT, "tank_xyz3", 3 }, + { XFLT, "tank_rat", 3 }, + { XFLT, "stall_warn_alpha", 1 }, + { XFLT, "mass_shift", 1 }, + { XFLT, "mass_shift_dx", 1 }, + { XFLT, "mass_shift_dz", 1 }, + { XFLT, "feathered_pitch", 1 }, + { XFLT, "ASmaxg_hi", 1 }, + { XFLT, "ASg_hi_pos", 1 }, + { XFLT, "ASg_hi_rate", 1 }, + { XFLT, "flt_overflow", 11 }, + { XINT, "OVER__drive_by_wire", 1 }, + { XINT, "is_glossy", 1 }, + { XINT, "num_tanks", 1 }, + { XINT, "has_refuel", 1 }, + { XINT, "draw_geo_frnt_views", 1 }, + { XINT, "draw_geo_side_views", 1 }, + { XINT, "jett_is_slung", 1 }, + { XFLT, "eng_mass", 57 }, + { XINT, "phase_tvect", 1 }, + { XINT, "auto_trim", 1 }, + { XINT, "has_DC_fd", 1 }, + { XINT, "flaps_with_gearEQ", 1 }, + { XINT, "rev_on_touchdown", 1 }, + { XINT, "int_overflow", 20 }, + { XINT, "old_struct_last_dat", 1 }, + { XCHR, "wpn_name", 12000 }, + { XFLT, "Xwpn_att", 24 }, + { XFLT, "Ywpn_att", 24 }, + { XFLT, "Zwpn_att", 24 }, + { XFLT, "xflt_overflow", 1000 }, + { XINT, "xint_overflow", 1000 }, + + { XEOF, NULL, 0 } +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_DEF_ACF640 +#define _IMP_ACF_DEF_ACF640 + +#include "imp_acf_def_proto.h" + +static const AcfDef acf_def_acf640[] = { + { XCHR, "VIEW__PlatForm", 1 }, + { XCHR, "VIEW__Filler", 4 }, + { XCHR, "VIEW__tailnum", 40 }, + { XCHR, "VIEW__author", 500 }, + { XCHR, "VIEW__descrip", 500 }, + { XFLT, "VIEW__size_x", 1 }, + { XFLT, "VIEW__size_z", 1 }, + { XINT, "VIEW__is_APL", 1 }, + { XINT, "VIEW__actype", 1 }, + { XINT, "VIEW__HUDtype", 1 }, + { XINT, "VIEW__asi_kts", 1 }, + { XINT, "VIEW__cockpit_type", 1 }, + { XINT, "VIEW__has_SC_fd", 1 }, + { XINT, "VIEW__has_stallwarn", 1 }, + { XINT, "VIEW__has_litemap_tex", 1 }, + { XFLT, "VIEW__peX", 1 }, + { XFLT, "VIEW__peY", 1 }, + { XFLT, "VIEW__peZ", 1 }, + { XFLT, "VIEW__Vso", 1 }, + { XFLT, "VIEW__Vs", 1 }, + { XFLT, "VIEW__Vfe", 1 }, + { XFLT, "VIEW__Vno", 1 }, + { XFLT, "VIEW__Vne", 1 }, + { XFLT, "VIEW__Mmo", 1 }, + { XFLT, "VIEW__Gneg", 1 }, + { XFLT, "VIEW__Gpos", 1 }, + { XFLT, "VIEW__est_Vs", 1 }, + { XFLT, "VIEW__yawstringx", 1 }, + { XFLT, "VIEW__yawstringy", 1 }, + { XFLT, "VIEW__HUD_cntrx", 1 }, + { XFLT, "VIEW__HUD_cntry", 1 }, + { XFLT, "VIEW__HUD_delx", 1 }, + { XFLT, "VIEW__HUD_dely", 1 }, + { XINT, "VIEW__has_lanlite1", 1 }, + { XFLT, "VIEW__lanlite1X", 1 }, + { XFLT, "VIEW__lanlite1Y", 1 }, + { XFLT, "VIEW__lanlite1Z", 1 }, + { XFLT, "VIEW__lanlite_the", 1 }, + { XINT, "VIEW__has_lanlite2", 1 }, + { XFLT, "VIEW__lanlite2X", 1 }, + { XFLT, "VIEW__lanlite2Y", 1 }, + { XFLT, "VIEW__lanlite2Z", 1 }, + { XINT, "VIEW__has_lanlite3", 1 }, + { XFLT, "VIEW__lanlite3X", 1 }, + { XFLT, "VIEW__lanlite3Y", 1 }, + { XFLT, "VIEW__lanlite3Z", 1 }, + { XINT, "VIEW__has_fuserb1", 1 }, + { XFLT, "VIEW__fuserb1X", 1 }, + { XFLT, "VIEW__fuserb1Y", 1 }, + { XFLT, "VIEW__fuserb1Z", 1 }, + { XINT, "VIEW__has_fuserb2", 1 }, + { XFLT, "VIEW__fuserb2X", 1 }, + { XFLT, "VIEW__fuserb2Y", 1 }, + { XFLT, "VIEW__fuserb2Z", 1 }, + { XINT, "VIEW__has_taillite", 1 }, + { XFLT, "VIEW__tailliteX", 1 }, + { XFLT, "VIEW__tailliteY", 1 }, + { XFLT, "VIEW__tailliteZ", 1 }, + { XINT, "VIEW__has_navlites", 1 }, + { XINT, "PANEL_ins_type", 200 }, + { XFLT, "PANEL_ins_size", 200 }, + { XFLT, "PANEL_ins_x", 200 }, + { XFLT, "PANEL_ins_y", 200 }, + { XFLT, "PANEL_ins_delx", 200 }, + { XFLT, "PANEL_ins_dely", 200 }, + { XINT, "FORCE_Hydraulic", 1 }, + { XINT, "FORCE_Stickshaker", 1 }, + { XINT, "ENG___number_engines", 1 }, + { XINT, "ENG___auto_feather_EQ", 1 }, + { XFLT, "ENG___throtmax_FWD", 1 }, + { XFLT, "ENG___throtmax_REV", 1 }, + { XFLT, "ENG___omegaminRSC", 1 }, + { XFLT, "ENG___omegamaxRSC", 1 }, + { XFLT, "ENG___omegamingreenRSC", 1 }, + { XFLT, "ENG___omegamaxgreenRSC", 1 }, + { XFLT, "ENG___pmax", 1 }, + { XFLT, "ENG___tmax", 1 }, + { XFLT, "ENG___burnerinc", 1 }, + { XFLT, "ENG___critalt", 1 }, + { XFLT, "ENG___mpmax", 1 }, + { XFLT, "ENG___gearrat", 1 }, + { XFLT, "ENG___face_jet", 1 }, + { XFLT, "ENG___face_rocket", 1 }, + { XFLT, "ENG___spooltime", 1 }, + { XFLT, "ENG___max_mach_eff", 1 }, + { XFLT, "ENG___fmax_sl", 1 }, + { XFLT, "ENG___fmax_opt", 1 }, + { XFLT, "ENG___fmax_vac", 1 }, + { XFLT, "ENG___h_opt", 1 }, + { XFLT, "ENG___tip_mach_des_50", 1 }, + { XFLT, "ENG___tip_mach_des_100", 1 }, + { XFLT, "ENG___rotor_mi_rat", 1 }, + { XFLT, "ENG___tip_weight", 1 }, + { XFLT, "ENG___tail_or_main_omegarat", 1 }, + { XINT, "PROP__engine_type", 8 }, + { XINT, "PROP__revthrust_eq", 8 }, + { XINT, "PROP__prop_type", 8 }, + { XFLT, "PROP__prop_dir", 8 }, + { XFLT, "PROP__num_blades", 8 }, + { XFLT, "PROP__SFC", 8 }, + { XFLT, "PROP__minpitch", 8 }, + { XFLT, "PROP__maxpitch", 8 }, + { XFLT, "PROP__revpitch", 8 }, + { XFLT, "PROP__sidecant", 8 }, + { XFLT, "PROP__vertcant", 8 }, + { XFLT, "PROP__prop_mass", 8 }, + { XFLT, "PROP__miprop_pitch", 8 }, + { XFLT, "PROP__discarea", 8 }, + { XFLT, "PROP__ringarea", 80 }, + { XFLT, "PROP__bladesweep", 80 }, + { XFLT, "PROP__des_rpm_prp", 8 }, + { XFLT, "PROP__des_kts_prp", 8 }, + { XFLT, "PROP__des_kts_acf", 8 }, + { XINT, "PARTS_part_eq", 57 }, + { XCHR, "PARTS_Rafl0", 2280 }, + { XCHR, "PARTS_Rafl1", 2280 }, + { XCHR, "PARTS_Tafl0", 2280 }, + { XCHR, "PARTS_Tafl1", 2280 }, + { XINT, "PARTS_els", 57 }, + { XFLT, "PARTS_Xarm", 57 }, + { XFLT, "PARTS_Yarm", 57 }, + { XFLT, "PARTS_Zarm", 57 }, + { XFLT, "PARTS_X_body_aero", 57 }, + { XFLT, "PARTS_Y_body_aero", 57 }, + { XFLT, "PARTS_Z_body_aero", 57 }, + { XFLT, "PARTS_Croot", 57 }, + { XFLT, "PARTS_Ctip", 57 }, + { XFLT, "PARTS_dihed", 57 }, + { XFLT, "PARTS_sweep1", 57 }, + { XFLT, "PARTS_sweep2", 57 }, + { XFLT, "PARTS_sweepnow", 57 }, + { XINT, "PARTS_varsweepEQ", 57 }, + { XFLT, "PARTS_semilen_SEG", 57 }, + { XFLT, "PARTS_semilen_JND", 57 }, + { XFLT, "PARTS_e", 57 }, + { XFLT, "PARTS_AR", 57 }, + { XFLT, "PARTS_al_D_al0", 57 }, + { XFLT, "PARTS_cl_D_cl0", 57 }, + { XFLT, "PARTS_cm_D_cm0", 57 }, + { XFLT, "PARTS_delta_fac", 57 }, + { XFLT, "PARTS_spec_wash", 57 }, + { XFLT, "PARTS_alpha_max", 57 }, + { XFLT, "PARTS_slat_effect", 57 }, + { XFLT, "PARTS_s", 570 }, + { XFLT, "PARTS_mac", 570 }, + { XFLT, "PARTS_anginc", 570 }, + { XINT, "PARTS_ail1", 570 }, + { XINT, "PARTS_ail2", 570 }, + { XINT, "PARTS_splr", 570 }, + { XINT, "PARTS_flap", 570 }, + { XINT, "PARTS_flapEQ", 1 }, + { XINT, "PARTS_slat", 570 }, + { XINT, "PARTS_slatEQ", 1 }, + { XINT, "PARTS_sbrk", 570 }, + { XINT, "PARTS_sbrkEQ", 1 }, + { XINT, "PARTS_drud", 570 }, + { XINT, "PARTS_elev", 570 }, + { XINT, "PARTS_rudd", 570 }, + { XINT, "PARTS_in_downwash", 32490 }, + { XFLT, "PARTS_body_r", 57 }, + { XFLT, "PARTS_body_X", 20520 }, + { XFLT, "PARTS_body_Y", 20520 }, + { XFLT, "PARTS_body_Z", 20520 }, + { XINT, "PARTS_gear_type", 57 }, + { XFLT, "PARTS_gear_latE", 57 }, + { XFLT, "PARTS_gear_lonE", 57 }, + { XFLT, "PARTS_gear_axiE", 57 }, + { XFLT, "PARTS_gear_latR", 57 }, + { XFLT, "PARTS_gear_lonR", 57 }, + { XFLT, "PARTS_gear_axiR", 57 }, + { XFLT, "PARTS_gear_latN", 57 }, + { XFLT, "PARTS_gear_lonN", 57 }, + { XFLT, "PARTS_gear_axiN", 57 }, + { XFLT, "PARTS_gear_leglen", 57 }, + { XFLT, "PARTS_gear_tirrad", 57 }, + { XFLT, "PARTS_gearcon", 57 }, + { XFLT, "PARTS_geardmp", 57 }, + { XFLT, "PARTS_gearstatdef", 57 }, + { XFLT, "PARTS_gear_def", 57 }, + { XFLT, "PARTS_gear_deploy", 57 }, + { XFLT, "PARTS_gear_xnodef", 57 }, + { XFLT, "PARTS_gear_ynodef", 57 }, + { XFLT, "PARTS_gear_znodef", 57 }, + { XFLT, "BODY__fuse_cd", 1 }, + { XFLT, "CTRLS_ail1_crat", 1 }, + { XFLT, "CTRLS_ail1_up", 1 }, + { XFLT, "CTRLS_ail1_dn", 1 }, + { XFLT, "CTRLS_d01", 1 }, + { XFLT, "CTRLS_d02", 1 }, + { XFLT, "CTRLS_ail2_crat", 1 }, + { XFLT, "CTRLS_ail2_up", 1 }, + { XFLT, "CTRLS_ail2_dn", 1 }, + { XFLT, "CTRLS_d03", 1 }, + { XFLT, "CTRLS_d04", 1 }, + { XFLT, "CTRLS_elev_crat", 1 }, + { XFLT, "CTRLS_elev_up", 1 }, + { XFLT, "CTRLS_elev_dn", 1 }, + { XFLT, "CTRLS_d05", 1 }, + { XFLT, "CTRLS_d06", 1 }, + { XFLT, "CTRLS_rudd_crat", 1 }, + { XFLT, "CTRLS_rudd_lr", 1 }, + { XFLT, "CTRLS_d07", 1 }, + { XFLT, "CTRLS_d08", 1 }, + { XFLT, "CTRLS_splr_crat", 1 }, + { XFLT, "CTRLS_splr_up", 1 }, + { XFLT, "CTRLS_d09", 1 }, + { XFLT, "CTRLS_d10", 1 }, + { XFLT, "CTRLS_drud_crat", 1 }, + { XFLT, "CTRLS_drud_ud", 1 }, + { XFLT, "CTRLS_d11", 1 }, + { XFLT, "CTRLS_d12", 1 }, + { XFLT, "CTRLS_sbrk_crat", 1 }, + { XFLT, "CTRLS_sbrk_up", 1 }, + { XFLT, "CTRLS_flap_crat", 1 }, + { XFLT, "CTRLS_flap_dn", 7 }, + { XFLT, "CTRLS_d13", 1 }, + { XFLT, "CTRLS_d14", 1 }, + { XFLT, "CTRLS_hstb_trim_up", 1 }, + { XFLT, "CTRLS_hstb_trim_dn", 1 }, + { XFLT, "CTRLS_d15", 1 }, + { XINT, "CTRLS_hstabtype", 1 }, + { XINT, "CTRLS_vstabtype", 1 }, + { XINT, "CTRLS_flap_type", 1 }, + { XINT, "CTRLS_con_smooth", 1 }, + { XFLT, "CTRLS_flap_cl", 1 }, + { XFLT, "CTRLS_flap_cd", 1 }, + { XFLT, "CTRLS_flap_cm", 1 }, + { XINT, "CTRLS_flap_detents", 1 }, + { XFLT, "CTRLS_flap_deftime", 1 }, + { XFLT, "CTRLS_slat_inc", 1 }, + { XFLT, "CTRLS_blownflap_addspeed", 1 }, + { XFLT, "CTRLS_blownflap_throtred", 1 }, + { XFLT, "CTRLS_blownflap_minengag", 1 }, + { XINT, "GEAR__gear_retract", 1 }, + { XINT, "GEAR__is_taildragger", 1 }, + { XINT, "GEAR__gear_is_skid", 1 }, + { XFLT, "GEAR__OLD_OVERALL_RETRACT_TIME", 1 }, + { XFLT, "GEAR__nwsteerdeg1", 1 }, + { XFLT, "GEAR__nwsteerdeg2", 1 }, + { XFLT, "GEAR__nwsteerspd", 1 }, + { XFLT, "GEAR__water_rud_longarm", 1 }, + { XFLT, "GEAR__water_rud_area", 1 }, + { XFLT, "GEAR__water_rud_maxdef", 1 }, + { XFLT, "GEAR__h_eqlbm", 1 }, + { XFLT, "GEAR__the_eqlbm", 1 }, + { XINT, "GEAR__gear_door_typ", 10 }, + { XFLT, "GEAR__gear_door_loc", 30 }, + { XFLT, "GEAR__gear_door_geo", 120 }, + { XFLT, "GEAR__gear_door_axi_rot", 10 }, + { XFLT, "GEAR__gear_door_ext_ang", 10 }, + { XFLT, "GEAR__gear_door_ret_ang", 10 }, + { XFLT, "GEAR__gear_door_ang_now", 10 }, + { XFLT, "WEIGHTcgY", 1 }, + { XFLT, "WEIGHTcgZ", 1 }, + { XFLT, "WEIGHTJxx_unitmass", 1 }, + { XFLT, "WEIGHTJyy_unitmass", 1 }, + { XFLT, "WEIGHTJzz_unitmass", 1 }, + { XFLT, "WEIGHTm_empty", 1 }, + { XFLT, "WEIGHTm_displaced", 1 }, + { XFLT, "WEIGHTm_max", 1 }, + { XFLT, "WEIGHTm_fuel", 1 }, + { XFLT, "WEIGHTm_jettison", 1 }, + { XFLT, "WEIGHTm_displaced_y", 1 }, + { XFLT, "SPEC__jato_theta", 1 }, + { XFLT, "SPEC__jato_thrust", 1 }, + { XFLT, "SPEC__jato_dur", 1 }, + { XFLT, "SPEC__jato_sfc", 1 }, + { XFLT, "SPEC__jato_Y", 1 }, + { XFLT, "SPEC__jato_Z", 1 }, + { XFLT, "SPEC__brake_area", 1 }, + { XFLT, "SPEC__brake_Y", 1 }, + { XFLT, "SPEC__brake_Z", 1 }, + { XFLT, "SPEC__chute_area", 1 }, + { XFLT, "SPEC__chute_Y", 1 }, + { XFLT, "SPEC__chute_Z", 1 }, + { XFLT, "SPEC__ail1pitch", 1 }, + { XFLT, "SPEC__ail1flaps", 1 }, + { XFLT, "SPEC__ail2pitch", 1 }, + { XFLT, "SPEC__ail2flaps", 1 }, + { XFLT, "SPEC__stabroll", 1 }, + { XFLT, "SPEC__stabhdng", 1 }, + { XFLT, "SPEC__ail2vmax", 1 }, + { XFLT, "SPEC__tvec_ptch", 1 }, + { XFLT, "SPEC__tvec_roll", 1 }, + { XFLT, "SPEC__tvec_hdng", 1 }, + { XFLT, "SPEC__diff_thro_with_hdng", 1 }, + { XINT, "SPEC__arrestingEQ", 1 }, + { XINT, "SPEC__antiiceEQ", 1 }, + { XINT, "SPEC__warn1EQ", 1 }, + { XINT, "SPEC__gearhornEQ", 1 }, + { XINT, "SPEC__autosbrkEQ", 1 }, + { XINT, "SPEC__autofbrkEQ", 1 }, + { XINT, "SPEC__autosweepEQ", 1 }, + { XINT, "SPEC__autoslatEQ", 1 }, + { XINT, "VTOL__vectEQ", 1 }, + { XFLT, "VTOL__vectarm", 1 }, + { XFLT, "VTOL__cyclic_elev", 1 }, + { XFLT, "VTOL__cyclic_ailn", 1 }, + { XFLT, "VTOL__delta3", 1 }, + { XFLT, "VTOL__puffL", 1 }, + { XFLT, "VTOL__puffM", 1 }, + { XFLT, "VTOL__puffN", 1 }, + { XFLT, "VTOL__tail_with_coll", 1 }, + { XFLT, "VTOL__diff_coll_with_roll", 1 }, + { XFLT, "VTOL__diff_coll_with_hdng", 1 }, + { XFLT, "VTOL__diff_cycl_with_hdng", 1 }, + { XINT, "VTOL__auto_rpm_with_tvec", 1 }, + { XFLT, "VTOL__rotor_trim_max_fwd", 1 }, + { XFLT, "VTOL__rotor_trim_max_aft", 1 }, + { XFLT, "ASTAB_AShiV", 1 }, + { XFLT, "ASTAB_ASloV", 1 }, + { XFLT, "ASTAB_Asmaxp_lo", 1 }, + { XFLT, "ASTAB_Asp_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxp_hi", 1 }, + { XFLT, "ASTAB_Asp_hi_pos", 1 }, + { XFLT, "ASTAB_Asmaxh_lo", 1 }, + { XFLT, "ASTAB_Ash_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxh_hi", 1 }, + { XFLT, "ASTAB_Ash_hi_pos", 1 }, + { XFLT, "ASTAB_Asmaxr_lo", 1 }, + { XFLT, "ASTAB_Asr_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxr_hi", 1 }, + { XFLT, "ASTAB_Asr_hi_rate", 1 }, + { XFLT, "EXTRA_fdummy1", 1 }, + { XFLT, "EXTRA_fdummy2", 1 }, + { XFLT, "EXTRA_element_len", 57 }, + { XFLT, "EXTRA_gear_door_size", 1 }, + { XFLT, "EXTRA_stab_delinc_to_Vne", 1 }, + { XFLT, "EXTRA_Vmca", 1 }, + { XFLT, "EXTRA_Vyse", 1 }, + { XFLT, "EXTRA_flap_arm", 1 }, + { XFLT, "EXTRA_tank_xyz12", 6 }, + { XFLT, "EXTRA_cgZ_fwd", 1 }, + { XFLT, "EXTRA_cgZ_aft", 1 }, + { XFLT, "EXTRA_gear_cyc_time", 5 }, + { XFLT, "EXTRA_refuel_X", 1 }, + { XFLT, "EXTRA_refuel_Y", 1 }, + { XFLT, "EXTRA_refuel_Z", 1 }, + { XCHR, "EXTRA_gear_steers", 57 }, + { XCHR, "EXTRA_hybrid_gear", 1 }, + { XCHR, "EXTRA_chr_overflow", 2 }, + { XINT, "EXTRA_vardihedEQ", 57 }, + { XFLT, "EXTRA_dihed2", 57 }, + { XFLT, "EXTRA_dihednow", 57 }, + { XFLT, "EXTRA_jett_xyz", 3 }, + { XFLT, "EXTRA_puffX", 1 }, + { XFLT, "EXTRA_puffY", 1 }, + { XFLT, "EXTRA_puffZ", 1 }, + { XFLT, "EXTRA_Vle", 1 }, + { XFLT, "EXTRA_ASp_hi_rate", 1 }, + { XFLT, "EXTRA_ASh_hi_rate", 1 }, + { XFLT, "EXTRA_spooltime_prop", 1 }, + { XFLT, "EXTRA_elevflaps", 1 }, + { XFLT, "EXTRA_tank_xyz3", 3 }, + { XFLT, "EXTRA_tank_rat", 3 }, + { XFLT, "EXTRA_stall_warn_alpha", 1 }, + { XFLT, "EXTRA_mass_shift", 1 }, + { XFLT, "EXTRA_mass_shift_dx", 1 }, + { XFLT, "EXTRA_mass_shift_dz", 1 }, + { XFLT, "EXTRA_feathered_pitch", 1 }, + { XFLT, "EXTRA_ASmaxg_hi", 1 }, + { XFLT, "EXTRA_ASg_hi_pos", 1 }, + { XFLT, "EXTRA_ASg_hi_rate", 1 }, + { XFLT, "EXTRA_wing_tilt_ptch", 1 }, + { XFLT, "EXTRA_wing_tilt_roll", 1 }, + { XFLT, "EXTRA_max_press_diff", 1 }, + { XFLT, "EXTRA_diff_coll_with_ptch", 1 }, + { XFLT, "EXTRA_flap_roll,flap_ptch", 1 }, + { XFLT, "EXTRA_lift_fan_rat", 1 }, + { XFLT, "EXTRA_diff_cycl_with_hdng_lat", 1 }, + { XINT, "EXTRA_phase_tvect_out_at_90", 1 }, + { XFLT, "EXTRA_flt_overflow", 2 }, + { XINT, "EXTRA_drive_by_wire", 1 }, + { XINT, "EXTRA_is_glossy", 1 }, + { XINT, "EXTRA_num_tanks", 1 }, + { XINT, "EXTRA_has_refuel", 1 }, + { XINT, "EXTRA_draw_geo_frnt_views", 1 }, + { XINT, "EXTRA_draw_geo_side_views", 1 }, + { XINT, "EXTRA_jett_is_slung", 1 }, + { XFLT, "EXTRA_eng_mass", 57 }, + { XINT, "EXTRA_phase_tvect_out_at_00", 1 }, + { XINT, "EXTRA_auto_trimEQ", 1 }, + { XINT, "EXTRA_has_DC_fd", 1 }, + { XINT, "EXTRA_flaps_with_gearEQ", 1 }, + { XINT, "EXTRA_rev_on_touchdown", 1 }, + { XINT, "EXTRA_flaps_with_vecEQ", 1 }, + { XINT, "EXTRA_blow_all_controls", 1 }, + { XINT, "EXTRA_warn2EQ", 1 }, + { XINT, "EXTRA_num_thrustpoints", 1 }, + { XINT, "EXTRA_props_linked", 1 }, + { XINT, "EXTRA_int_overflow", 15 }, + { XINT, "EXTRA_old_struct_last_data", 1 }, + { XCHR, "EXTRA_wpn_name", 12000 }, + { XFLT, "EXTRA_Xwpn_att", 24 }, + { XFLT, "EXTRA_Ywpn_att", 24 }, + { XFLT, "EXTRA_Zwpn_att", 24 }, + { XINT, "EXTRA_cus_rnd_use", 50 }, + { XFLT, "EXTRA_cus_rnd_lo_val", 50 }, + { XFLT, "EXTRA_cus_rnd_hi_val", 50 }, + { XFLT, "EXTRA_cus_rnd_lo_ang", 50 }, + { XFLT, "EXTRA_cus_rnd_hi_ang", 50 }, + { XINT, "EXTRA_dummy_int", 50 }, + { XINT, "EXTRA_cus_rnd_mirror", 50 }, + { XINT, "EXTRA_cus_rnd_label", 50 }, + { XINT, "EXTRA_cus_dig_use", 50 }, + { XFLT, "EXTRA_cus_dig_offset", 50 }, + { XFLT, "EXTRA_cus_dig_scale", 50 }, + { XINT, "EXTRA_cus_dig_dig", 50 }, + { XINT, "EXTRA_cus_dig_dec", 50 }, + { XINT, "EXTRA_inc_ail", 570 }, + { XINT, "EXTRA_inc_vec", 570 }, + { XFLT, "EXTRA_tow_hook_Y", 1 }, + { XFLT, "EXTRA_tow_hook_Z", 1 }, + { XFLT, "EXTRA_win_hook_Y", 1 }, + { XFLT, "EXTRA_win_hook_Z", 1 }, + { XINT, "EXTRA_int_overflow", 206 }, + { XCHR, "EXTRA_chr_overflow", 1000 }, + + { XEOF, NULL, 0 } +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_DEF_ACF651_H +#define _IMP_ACF_DEF_ACF651_H + +#include "imp_acf_def_proto.h" + +static const AcfDef acf_def_acf651[] = { + { XCHR, "VIEW__PlatForm", 1 }, + { XCHR, "VIEW__Filler", 4 }, + { XCHR, "VIEW__tailnum", 40 }, + { XCHR, "VIEW__author", 500 }, + { XCHR, "VIEW__descrip", 500 }, + { XFLT, "VIEW__size_x", 1 }, + { XFLT, "VIEW__size_z", 1 }, + { XINT, "VIEW__is_APL", 1 }, + { XINT, "VIEW__actype", 1 }, + { XINT, "VIEW__HUDtype", 1 }, + { XINT, "VIEW__asi_kts", 1 }, + { XINT, "VIEW__cockpit_type", 1 }, + { XINT, "VIEW__has_SC_fd", 1 }, + { XINT, "VIEW__has_stallwarn", 1 }, + { XINT, "VIEW__has_litemap_tex", 1 }, + { XFLT, "VIEW__peX", 1 }, + { XFLT, "VIEW__peY", 1 }, + { XFLT, "VIEW__peZ", 1 }, + { XFLT, "VIEW__Vso", 1 }, + { XFLT, "VIEW__Vs", 1 }, + { XFLT, "VIEW__Vfe", 1 }, + { XFLT, "VIEW__Vno", 1 }, + { XFLT, "VIEW__Vne", 1 }, + { XFLT, "VIEW__Mmo", 1 }, + { XFLT, "VIEW__Gneg", 1 }, + { XFLT, "VIEW__Gpos", 1 }, + { XFLT, "VIEW__est_Vs", 1 }, + { XFLT, "VIEW__yawstringx", 1 }, + { XFLT, "VIEW__yawstringy", 1 }, + { XFLT, "VIEW__HUD_cntr", 1 }, + { XFLT, "VIEW__HUD_cntry", 1 }, + { XFLT, "VIEW__HUD_del", 1 }, + { XFLT, "VIEW__HUD_dely", 1 }, + { XINT, "VIEW__has_lanlite1", 1 }, + { XFLT, "VIEW__lanlite1X", 1 }, + { XFLT, "VIEW__lanlite1Y", 1 }, + { XFLT, "VIEW__lanlite1Z", 1 }, + { XFLT, "VIEW__lanlite_the", 1 }, + { XINT, "VIEW__has_lanlite2", 1 }, + { XFLT, "VIEW__lanlite2X", 1 }, + { XFLT, "VIEW__lanlite2Y", 1 }, + { XFLT, "VIEW__lanlite2Z", 1 }, + { XINT, "VIEW__has_lanlite3", 1 }, + { XFLT, "VIEW__lanlite3X", 1 }, + { XFLT, "VIEW__lanlite3Y", 1 }, + { XFLT, "VIEW__lanlite3Z", 1 }, + { XINT, "VIEW__has_fuserb1", 1 }, + { XFLT, "VIEW__fuserb1", 1 }, + { XFLT, "VIEW__fuserb1", 1 }, + { XFLT, "VIEW__fuserb1Z", 1 }, + { XINT, "VIEW__has_fuserb2", 1 }, + { XFLT, "VIEW__fuserb2", 1 }, + { XFLT, "VIEW__fuserb2", 1 }, + { XFLT, "VIEW__fuserb2Z", 1 }, + { XINT, "VIEW__has_taillite", 1 }, + { XFLT, "VIEW__tailliteX", 1 }, + { XFLT, "VIEW__tailliteY", 1 }, + { XFLT, "VIEW__tailliteZ", 1 }, + { XINT, "VIEW__has_navlites", 1 }, + { XINT, "PANEL_ins_type", 200 }, + { XFLT, "PANEL_ins_size", 200 }, + { XFLT, "PANEL_ins_x", 200 }, + { XFLT, "PANEL_ins_y", 200 }, + { XFLT, "PANEL_ins_delx", 200 }, + { XFLT, "PANEL_ins_dely", 200 }, + { XINT, "FORCE_Hydraulic", 1 }, + { XINT, "FORCE_Stickshaker", 1 }, + { XINT, "ENG___num_engines", 1 }, + { XINT, "ENG___auto_feather_EQ", 1 }, + { XFLT, "ENG___throtmax_FW", 1 }, + { XFLT, "ENG___throtmax_REV", 1 }, + { XFLT, "ENG___RSC_idlespeed_en", 1 }, + { XFLT, "ENG___RSC_redline_eng", 1 }, + { XFLT, "ENG___RSC_mingreen_eng", 1 }, + { XFLT, "ENG___RSC_maxgreen_eng", 1 }, + { XFLT, "ENG___pmax", 1 }, + { XFLT, "ENG___tmax", 1 }, + { XFLT, "ENG___burnerinc", 1 }, + { XFLT, "ENG___critalt", 1 }, + { XFLT, "ENG___mpmax", 1 }, + { XFLT, "ENG___gearrat", 1 }, + { XFLT, "ENG___face_jet", 1 }, + { XFLT, "ENG___face_rocket", 1 }, + { XFLT, "ENG___spooltime_jet", 1 }, + { XFLT, "ENG___max_mach_eff", 1 }, + { XFLT, "ENG___fmax_sl", 1 }, + { XFLT, "ENG___fmax_opt", 1 }, + { XFLT, "ENG___fmax_vac", 1 }, + { XFLT, "ENG___h_opt", 1 }, + { XFLT, "ENG___tip_mach_des_50", 1 }, + { XFLT, "ENG___tip_mach_des_100", 1 }, + { XFLT, "ENG___rotor_mi_rat", 1 }, + { XFLT, "ENG___tip_weight", 1 }, + { XFLT, "ENG___tail_or_main_omegarat", 1 }, + { XINT, "PROP__engine_type", 8 }, + { XINT, "PROP__revthrust_eq", 8 }, + { XINT, "PROP__prop_type", 8 }, + { XFLT, "PROP__prop_dir", 8 }, + { XFLT, "PROP__num_blades", 8 }, + { XFLT, "PROP__SFC", 8 }, + { XFLT, "PROP__minpitch", 8 }, + { XFLT, "PROP__maxpitch", 8 }, + { XFLT, "PROP__revpitch", 8 }, + { XFLT, "PROP__sidecant", 8 }, + { XFLT, "PROP__vertcant", 8 }, + { XFLT, "PROP__propmass", 8 }, + { XFLT, "PROP__miprop_RPM", 8 }, + { XFLT, "PROP__discarea", 8 }, + { XFLT, "PROP__ringarea", 80 }, + { XFLT, "PROP__bladesweep", 80 }, + { XFLT, "PROP__des_rpm_prp", 8 }, + { XFLT, "PROP__des_kts_prp", 8 }, + { XFLT, "PROP__des_kts_acf", 8 }, + { XINT, "PARTS_part_eq", 57 }, + { XCHR, "PARTS_Rafl0", 2280 }, + { XCHR, "PARTS_Rafl1", 2280 }, + { XCHR, "PARTS_Tafl0", 2280 }, + { XCHR, "PARTS_Tafl1", 2280 }, + { XINT, "PARTS_els", 57 }, + { XFLT, "PARTS_Xarm", 57 }, + { XFLT, "PARTS_Yarm", 57 }, + { XFLT, "PARTS_Zarm", 57 }, + { XFLT, "PARTS_X_body_aero", 57 }, + { XFLT, "PARTS_Y_body_aero", 57 }, + { XFLT, "PARTS_Z_body_aero", 57 }, + { XFLT, "PARTS_Croot", 57 }, + { XFLT, "PARTS_Ctip", 57 }, + { XFLT, "PARTS_dihed", 57 }, + { XFLT, "PARTS_sweep1", 57 }, + { XFLT, "PARTS_sweep2", 57 }, + { XFLT, "PARTS_sweepnow", 57 }, + { XINT, "PARTS_varsweepEQ", 57 }, + { XFLT, "PARTS_semilen_SEG", 57 }, + { XFLT, "PARTS_semilen_JND", 57 }, + { XFLT, "PARTS_e", 57 }, + { XFLT, "PARTS_AR", 57 }, + { XFLT, "PARTS_al_D_al0", 57 }, + { XFLT, "PARTS_cl_D_cl0", 57 }, + { XFLT, "PARTS_cm_D_cm0", 57 }, + { XFLT, "PARTS_delta_fac", 57 }, + { XFLT, "PARTS_spec_wash", 57 }, + { XFLT, "PARTS_alpha_max", 57 }, + { XFLT, "PARTS_slat_effect", 57 }, + { XFLT, "PARTS_s", 570 }, + { XFLT, "PARTS_mac", 570 }, + { XFLT, "PARTS_anginc", 570 }, + { XINT, "PARTS_ail1", 570 }, + { XINT, "PARTS_ail2", 570 }, + { XINT, "PARTS_splr", 570 }, + { XINT, "PARTS_flap", 570 }, + { XINT, "PARTS_flapEQ", 1 }, + { XINT, "PARTS_slat", 570 }, + { XINT, "PARTS_slatEQ", 1 }, + { XINT, "PARTS_sbrk", 570 }, + { XINT, "PARTS_sbrkEQ", 1 }, + { XINT, "PARTS_drud", 570 }, + { XINT, "PARTS_elev", 570 }, + { XINT, "PARTS_rudd", 570 }, + { XINT, "PARTS_in_downwash", 32490 }, + { XFLT, "PARTS_body_r", 57 }, + { XFLT, "PARTS_body_X", 20520 }, + { XFLT, "PARTS_body_Y", 20520 }, + { XFLT, "PARTS_body_Z", 20520 }, + { XINT, "PARTS_gear_type", 57 }, + { XFLT, "PARTS_gear_latE", 57 }, + { XFLT, "PARTS_gear_lonE", 57 }, + { XFLT, "PARTS_gear_axiE", 57 }, + { XFLT, "PARTS_gear_latR", 57 }, + { XFLT, "PARTS_gear_lonR", 57 }, + { XFLT, "PARTS_gear_axiR", 57 }, + { XFLT, "PARTS_gear_latN", 57 }, + { XFLT, "PARTS_gear_lonN", 57 }, + { XFLT, "PARTS_gear_axiN", 57 }, + { XFLT, "PARTS_gear_leglen", 57 }, + { XFLT, "PARTS_gear_tirrad", 57 }, + { XFLT, "PARTS_gearcon", 57 }, + { XFLT, "PARTS_geardmp", 57 }, + { XFLT, "PARTS_gearstatdef", 57 }, + { XFLT, "PARTS_gear_def", 57 }, + { XFLT, "PARTS_gear_deploy", 57 }, + { XFLT, "PARTS_gear_xnodef", 57 }, + { XFLT, "PARTS_gear_ynodef", 57 }, + { XFLT, "PARTS_gear_znodef", 57 }, + { XFLT, "BODY__fuse_cd", 1 }, + { XFLT, "CTRLS_ail1_crat", 1 }, + { XFLT, "CTRLS_ail1_up", 1 }, + { XFLT, "CTRLS_ail1_d", 1 }, + { XFLT, "CTRLS_RSC_idlespeed_prp", 1 }, + { XFLT, "CTRLS_RSC_redline_prp", 1 }, + { XFLT, "CTRLS_ail2_crat", 1 }, + { XFLT, "CTRLS_ail2_up", 1 }, + { XFLT, "CTRLS_ail2_d", 1 }, + { XFLT, "CTRLS_RSC_mingreen_prp", 1 }, + { XFLT, "CTRLS_RSC_maxgreen_prp", 1 }, + { XFLT, "CTRLS_elev_crat", 1 }, + { XFLT, "CTRLS_elev_up", 1 }, + { XFLT, "CTRLS_elev_d", 1 }, + { XFLT, "CTRLS_trq_max_eng", 1 }, + { XFLT, "CTRLS_trq_max_prp", 1 }, + { XFLT, "CTRLS_rudd_crat", 1 }, + { XFLT, "CTRLS_rudd_l", 1 }, + { XFLT, "CTRLS_d07", 1 }, + { XFLT, "CTRLS_d08", 1 }, + { XFLT, "CTRLS_splr_crat", 1 }, + { XFLT, "CTRLS_splr_u", 1 }, + { XFLT, "CTRLS_d09", 1 }, + { XFLT, "CTRLS_d10", 1 }, + { XFLT, "CTRLS_drud_crat", 1 }, + { XFLT, "CTRLS_drud_u", 1 }, + { XFLT, "CTRLS_d11", 1 }, + { XFLT, "CTRLS_d12", 1 }, + { XFLT, "CTRLS_sbrk_crat", 1 }, + { XFLT, "CTRLS_sbrk_up", 1 }, + { XFLT, "CTRLS_flap_crat", 1 }, + { XFLT, "CTRLS_flap_dn", 7 }, + { XFLT, "CTRLS_d13", 1 }, + { XFLT, "CTRLS_d14", 1 }, + { XFLT, "CTRLS_hstb_trim_up", 1 }, + { XFLT, "CTRLS_hstb_trim_d", 1 }, + { XFLT, "CTRLS_d15", 1 }, + { XINT, "CTRLS_hstabtype", 1 }, + { XINT, "CTRLS_vstabtype", 1 }, + { XINT, "CTRLS_flap_type", 1 }, + { XINT, "CTRLS_con_smooth", 1 }, + { XFLT, "CTRLS_flap_cl", 1 }, + { XFLT, "CTRLS_flap_cd", 1 }, + { XFLT, "CTRLS_flap_cm", 1 }, + { XINT, "CTRLS_flap_detents", 1 }, + { XFLT, "CTRLS_flap_deftime", 1 }, + { XFLT, "CTRLS_slat_inc", 1 }, + { XFLT, "CTXXX_blownflap_addspeed", 1 }, + { XFLT, "CTRLS_blownflap_throtred", 1 }, + { XFLT, "CTRLS_blownflap_min_engag", 1 }, + { XINT, "GEAR__gear_retract", 1 }, + { XINT, "GEAR__is_taildragger", 1 }, + { XINT, "GEAR__gear_is_skid", 1 }, + { XFLT, "GEAR__OLD_OVERALL_RETRACT_TIME", 1 }, + { XFLT, "GEAR__nwsteerdeg1", 1 }, + { XFLT, "GEAR__nwsteerdeg2", 1 }, + { XFLT, "GEAR__nw_cutoff_speed", 1 }, + { XFLT, "GEAR__water_rud_longarm", 1 }, + { XFLT, "GEAR__water_rud_area", 1 }, + { XFLT, "GEAR__water_rud_maxdef", 1 }, + { XFLT, "GEAR__h_eqlbm", 1 }, + { XFLT, "GEAR__the_eqlbm", 1 }, + { XINT, "GEAR__gear_door_typ", 10 }, + { XFLT, "GEAR__gear_door_loc", 30 }, + { XFLT, "GEAR__gear_door_geo", 120 }, + { XFLT, "GEAR__gear_door_axi_rot", 10 }, + { XFLT, "GEAR__gear_door_ext_ang", 10 }, + { XFLT, "GEAR__gear_door_ret_ang", 10 }, + { XFLT, "GEAR__gear_door_ang_now", 10 }, + { XFLT, "WEIGHTcgY", 1 }, + { XFLT, "WEIGHTcgZ", 1 }, + { XFLT, "WEIGHTJxx_unitmass", 1 }, + { XFLT, "WEIGHTJyy_unitmass", 1 }, + { XFLT, "WEIGHTJzz_unitmass", 1 }, + { XFLT, "WEIGHTm_empty", 1 }, + { XFLT, "WEIGHTm_displaced", 1 }, + { XFLT, "WEIGHTm_max", 1 }, + { XFLT, "WEIGHTm_fuel", 1 }, + { XFLT, "WEIGHTm_jettison", 1 }, + { XFLT, "WEIGHTm_displaced_y", 1 }, + { XFLT, "SPEC__jato_theta", 1 }, + { XFLT, "SPEC__jato_thrust", 1 }, + { XFLT, "SPEC__jato_dur", 1 }, + { XFLT, "SPEC__jato_sfc", 1 }, + { XFLT, "SPEC__jato_Y", 1 }, + { XFLT, "SPEC__jato_Z", 1 }, + { XFLT, "SPEC__brake_area", 1 }, + { XFLT, "SPEC__brake_Y", 1 }, + { XFLT, "SPEC__brake_Z", 1 }, + { XFLT, "SPEC__chute_area", 1 }, + { XFLT, "SPEC__chute_Y", 1 }, + { XFLT, "SPEC__chute_Z", 1 }, + { XFLT, "SPEC__ail1pitch", 1 }, + { XFLT, "SPEC__ail1flaps", 1 }, + { XFLT, "SPEC__ail2pitch", 1 }, + { XFLT, "SPEC__ail2flaps", 1 }, + { XFLT, "SPEC__stabroll", 1 }, + { XFLT, "SPEC__stabhdng", 1 }, + { XFLT, "SPEC__ail2vmax", 1 }, + { XFLT, "SPEC__tvec_ptch", 1 }, + { XFLT, "SPEC__tvec_roll", 1 }, + { XFLT, "SPEC__tvec_hdng", 1 }, + { XFLT, "SPEC__diff_thro_with_hdng", 1 }, + { XINT, "SPEC__arrestingEQ", 1 }, + { XINT, "SPEC__antiiceEQ", 1 }, + { XINT, "SPEC__warn1EQ", 1 }, + { XINT, "SPEC__gearhornEQ", 1 }, + { XINT, "SPEC__autosbrkEQ", 1 }, + { XINT, "SPEC__autofbrkEQ", 1 }, + { XINT, "SPEC__autosweepEQ", 1 }, + { XINT, "SPEC__autoslatEQ", 1 }, + { XINT, "VTOL__vectEQ", 1 }, + { XFLT, "VTOL__vectarmZ", 1 }, + { XFLT, "VTOL__cyclic_elev", 1 }, + { XFLT, "VTOL__cyclic_ailn", 1 }, + { XFLT, "VTOL__delta3", 1 }, + { XFLT, "VTOL__puffL", 1 }, + { XFLT, "VTOL__puffM", 1 }, + { XFLT, "VTOL__puffN", 1 }, + { XFLT, "VTOL__tail_with_coll", 1 }, + { XFLT, "VTOL__diff_coll_with_roll", 1 }, + { XFLT, "VTOL__diff_coll_with_hdng", 1 }, + { XFLT, "VTOL__diff_cycl_with_hdng", 1 }, + { XINT, "VTOL__auto_rpm_with_tvec", 1 }, + { XFLT, "VTOL__rotor_trim_max_fwd", 1 }, + { XFLT, "VTOL__rotor_trim_max_aft", 1 }, + { XFLT, "ASTAB_AShiV", 1 }, + { XFLT, "ASTAB_ASloV", 1 }, + { XFLT, "ASTAB_Asmaxp_lo", 1 }, + { XFLT, "ASTAB_Asp_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxp_hi", 1 }, + { XFLT, "ASTAB_Asp_hi_pos", 1 }, + { XFLT, "ASTAB_Asmaxh_lo", 1 }, + { XFLT, "ASTAB_Ash_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxh_hi", 1 }, + { XFLT, "ASTAB_Ash_hi_pos", 1 }, + { XFLT, "ASTAB_Asmaxr_lo", 1 }, + { XFLT, "ASTAB_Asr_lo_rate", 1 }, + { XFLT, "ASTAB_Asmaxr_hi", 1 }, + { XFLT, "ASTAB_Asr_hi_rate", 1 }, + { XINT, "has_clutch", 1 }, + { XINT, "has_idlespeed", 1 }, + { XFLT, "element_len", 57 }, + { XFLT, "gear_door_size", 1 }, + { XFLT, "stab_delinc_to_Vne", 1 }, + { XFLT, "Vmca", 1 }, + { XFLT, "Vyse", 1 }, + { XFLT, "flap_arm", 1 }, + { XFLT, "tank_xyz12", 6 }, + { XFLT, "cgZ_fwd", 1 }, + { XFLT, "cgZ_aft", 1 }, + { XFLT, "gear_cyc_time", 5 }, + { XFLT, "refuel_X", 1 }, + { XFLT, "refuel_Y", 1 }, + { XFLT, "refuel_Z", 1 }, + { XCHR, "gear_steers", 57 }, + { XCHR, "hybrid_gear", 1 }, + { XCHR, "chr_overflow", 2 }, + { XINT, "vardihedEQ", 57 }, + { XFLT, "dihed2", 57 }, + { XFLT, "dihednow", 57 }, + { XFLT, "jett_xyz", 3 }, + { XFLT, "puffX", 1 }, + { XFLT, "puffY", 1 }, + { XFLT, "puffZ", 1 }, + { XFLT, "Vle", 1 }, + { XFLT, "ASp_hi_rate", 1 }, + { XFLT, "ASh_hi_rate", 1 }, + { XFLT, "spooltime_prop", 1 }, + { XFLT, "elevflaps", 1 }, + { XFLT, "tank_xyz3", 3 }, + { XFLT, "tank_rat", 3 }, + { XFLT, "stall_warn_alpha", 1 }, + { XFLT, "mass_shift", 1 }, + { XFLT, "mass_shift_dx", 1 }, + { XFLT, "mass_shift_dz", 1 }, + { XFLT, "feathered_pitch", 1 }, + { XFLT, "ASmaxg_hi", 1 }, + { XFLT, "ASg_hi_pos", 1 }, + { XFLT, "ASg_hi_rate", 1 }, + { XFLT, "wing_tilt_ptch", 1 }, + { XFLT, "wing_tilt_roll", 1 }, + { XFLT, "max_press_diff", 1 }, + { XFLT, "diff_coll_with_ptch", 1 }, + { XFLT, "flap_roll", 1 }, + { XFLT, "flap_ptch", 1 }, + { XFLT, "lift_fan_rat", 1 }, + { XFLT, "diff_cycl_with_hdng_lat", 1 }, + { XINT, "phase_tvect_out_at_90", 1 }, + { XFLT, "roll_co", 1 }, + { XFLT, "brake_co", 1 }, + { XINT, "OVER__drive_by_wire", 1 }, + { XINT, "is_glossy", 1 }, + { XINT, "num_tanks", 1 }, + { XINT, "has_refuel", 1 }, + { XINT, "draw_geo_frnt_views", 1 }, + { XINT, "draw_geo_side_views", 1 }, + { XINT, "jett_is_slung", 1 }, + { XFLT, "eng_mass", 57 }, + { XINT, "phase_tvect_out_at_00", 1 }, + { XINT, "auto_trimEQ", 1 }, + { XINT, "has_DC_fd", 1 }, + { XINT, "flaps_with_gearEQ", 1 }, + { XINT, "rev_on_touchdown", 1 }, + { XINT, "flaps_with_vecEQ", 1 }, + { XINT, "blow_all_controls", 1 }, + { XINT, "warn2EQ", 1 }, + { XINT, "num_thrustpoints", 1 }, + { XINT, "props_linked", 1 }, + { XINT, "int_overflow", 15 }, + { XINT, "old_struct_last_data", 1 }, + { XCHR, "wpn_name", 12000 }, + { XFLT, "Xwpn_att", 24 }, + { XFLT, "Ywpn_att", 24 }, + { XFLT, "Zwpn_att", 24 }, + { XINT, "cus_rnd_use", 50 }, + { XFLT, "cus_rnd_lo_val", 50 }, + { XFLT, "cus_rnd_hi_val", 50 }, + { XFLT, "cus_rnd_lo_ang", 50 }, + { XFLT, "cus_rnd_hi_ang", 50 }, + { XINT, "has_nav", 6 }, + { XINT, "has_radar", 1 }, + { XINT, "dummy_int", 43 }, + { XINT, "cus_rnd_mirror", 50 }, + { XINT, "cus_rnd_label", 50 }, + { XINT, "cus_dig_use", 50 }, + { XFLT, "cus_dig_offset", 50 }, + { XFLT, "cus_dig_scale", 50 }, + { XINT, "cus_dig_dig", 50 }, + { XINT, "cus_dig_dec", 50 }, + { XINT, "inc_ail", 570 }, + { XINT, "inc_vec", 570 }, + { XFLT, "tow_hook_Y", 1 }, + { XFLT, "tow_hook_Z", 1 }, + { XFLT, "win_hook_Y", 1 }, + { XFLT, "win_hook_Z", 1 }, + { XFLT, "nosewheel_k", 1 }, + { XFLT, "vectarmY", 1 }, + { XINT, "hide_prop_at_90_vect", 1 }, + { XINT, "xint_overflow", 204 }, + { XCHR, "xchr_overflow", 1000 }, + + { XEOF, NULL, 0 } +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_DEF_ACF700 +#define _IMP_ACF_DEF_ACF700 + +#include "imp_acf_def_proto.h" + +static const AcfDef acf_def_acf700[] = { + { XCHR, "VIEW__PlatForm", 1 }, + { XINT, "VIEW__Filler", 1 }, + { XFLT, "VIEW__Filler", 1 }, + { XCHR, "VIEW_name", 500 }, + { XCHR, "VIEW_path", 500 }, + { XCHR, "VIEW_tailnum", 40 }, + { XCHR, "VIEW_author", 500 }, + { XCHR, "VIEW_descrip", 500 }, + { XFLT, "VIEW_Vmca_kts", 1 }, + { XFLT, "VIEW_Vso_kts", 1 }, + { XFLT, "VIEW_Vs_kts", 1 }, + { XFLT, "VIEW_Vyse_kts", 1 }, + { XFLT, "VIEW_Vfe_kts", 1 }, + { XFLT, "VIEW_Vle_kts", 1 }, + { XFLT, "VIEW_Vno_kts", 1 }, + { XFLT, "VIEW_Vne_kts", 1 }, + { XFLT, "VIEW_Mmo", 1 }, + { XFLT, "VIEW_Gneg", 1 }, + { XFLT, "VIEW_Gpos", 1 }, + { XINT, "VIEW_has_navlites", 1 }, + { XFLT, "VIEW_peX", 1 }, + { XFLT, "VIEW_peY", 1 }, + { XFLT, "VIEW_peZ", 1 }, + { XINT, "VIEW_has_lanlite1", 1 }, + { XFLT, "VIEW_lanlite1X", 1 }, + { XFLT, "VIEW_lanlite1Y", 1 }, + { XFLT, "VIEW_lanlite1Z", 1 }, + { XINT, "VIEW_has_lanlite2", 1 }, + { XFLT, "VIEW_lanlite2X", 1 }, + { XFLT, "VIEW_lanlite2Y", 1 }, + { XFLT, "VIEW_lanlite2Z", 1 }, + { XINT, "VIEW_has_lanlite3", 1 }, + { XFLT, "VIEW_lanlite3X", 1 }, + { XFLT, "VIEW_lanlite3Y", 1 }, + { XFLT, "VIEW_lanlite3Z", 1 }, + { XINT, "VIEW_has_fuserb1", 1 }, + { XFLT, "VIEW_fuserb1X", 1 }, + { XFLT, "VIEW_fuserb1Y", 1 }, + { XFLT, "VIEW_fuserb1Z", 1 }, + { XINT, "VIEW_has_fuserb2", 1 }, + { XFLT, "VIEW_fuserb2X", 1 }, + { XFLT, "VIEW_fuserb2Y", 1 }, + { XFLT, "VIEW_fuserb2Z", 1 }, + { XINT, "VIEW_has_taillite", 1 }, + { XFLT, "VIEW_tailliteX", 1 }, + { XFLT, "VIEW_tailliteY", 1 }, + { XFLT, "VIEW_tailliteZ", 1 }, + { XINT, "VIEW_has_refuel", 1 }, + { XFLT, "VIEW_refuel_X", 1 }, + { XFLT, "VIEW_refuel_Y", 1 }, + { XFLT, "VIEW_refuel_Z", 1 }, + { XFLT, "VIEW_yawstringx", 1 }, + { XFLT, "VIEW_yawstringy", 1 }, + { XFLT, "VIEW_HUD_cntrx", 1 }, + { XFLT, "VIEW_HUD_cntry", 1 }, + { XFLT, "VIEW_HUD_delx", 1 }, + { XFLT, "VIEW_HUD_dely", 1 }, + { XINT, "VIEW_lanlite_steers", 1 }, + { XFLT, "VIEW_lanlite_power", 1 }, + { XFLT, "VIEW_lanlite_width", 1 }, + { XFLT, "VIEW_lanlite_the", 1 }, + { XFLT, "VIEW_stall_warn_aoa", 1 }, + { XFLT, "VIEW_tow_hook_Y", 1 }, + { XFLT, "VIEW_tow_hook_Z", 1 }, + { XFLT, "VIEW_win_hook_Y", 1 }, + { XFLT, "VIEW_win_hook_Z", 1 }, + { XINT, "VIEW_HUD_type", 1 }, + { XFLT, "VIEW_cockpit_type", 1 }, + { XFLT, "VIEW_asi_kts", 1 }, + { XINT, "VIEW_warn1EQ", 1 }, + { XINT, "VIEW_warn2EQ", 1 }, + { XINT, "VIEW_is_glossy", 1 }, + { XINT, "VIEW_draw_geo_frnt_views", 1 }, + { XINT, "VIEW_draw_geo_side_views", 1 }, + { XINT, "VIEW_ins_type", 200 }, + { XFLT, "VIEW_ins_size", 200 }, + { XFLT, "VIEW_ins_x", 200 }, + { XFLT, "VIEW_ins_y", 200 }, + { XFLT, "VIEW_ins_delx", 200 }, + { XFLT, "VIEW_ins_dely", 200 }, + { XINT, "VIEW_cus_rnd_use", 50 }, + { XFLT, "VIEW_cus_rnd_lo_val", 50 }, + { XFLT, "VIEW_cus_rnd_hi_val", 50 }, + { XFLT, "VIEW_cus_rnd_lo_ang", 50 }, + { XFLT, "VIEW_cus_rnd_hi_ang", 50 }, + { XINT, "VIEW_cus_rnd_mirror", 50 }, + { XINT, "VIEW_cus_rnd_label", 50 }, + { XINT, "VIEW_cus_dig_use", 50 }, + { XFLT, "VIEW_cus_dig_offset", 50 }, + { XFLT, "VIEW_cus_dig_scale", 50 }, + { XINT, "VIEW_cus_dig_dig", 50 }, + { XINT, "VIEW_cus_dig_dec", 50 }, + { XINT, "ENGINE_num_engines", 1 }, + { XINT, "ENGINE_num_thrustpoints", 1 }, + { XFLT, "ENGINE_throt_max_FWD", 1 }, + { XFLT, "ENGINE_throt_max_REV", 1 }, + { XFLT, "ENGINE_idle_rat", 2 }, + { XINT, "ENGINE_props_linked", 1 }, + { XINT, "ENGINE_beta_prop_EQ", 1 }, + { XINT, "ENGINE_auto_feather_EQ", 1 }, + { XINT, "ENGINE_rev_thrust_EQ", 1 }, + { XINT, "ENGINE_drive_by_wire_EQ", 1 }, + { XFLT, "ENGINE_feathered_pitch", 1 }, + { XFLT, "ENGINE_reversed_pitch", 1 }, + { XFLT, "ENGINE_rotor_mi_rat", 1 }, + { XFLT, "ENGINE_tip_weight", 1 }, + { XFLT, "ENGINE_tip_mach_des_100", 1 }, + { XFLT, "ENGINE_tip_mach_des_50", 1 }, + { XFLT, "ENGINE_power_max", 1 }, + { XFLT, "ENGINE_crit_alt", 1 }, + { XFLT, "ENGINE_mp_max", 1 }, + { XFLT, "ENGINE_trq_max_eng", 1 }, + { XFLT, "ENGINE_RSC_idlespeed_ENGN", 1 }, + { XFLT, "ENGINE_RSC_redline_ENGN", 1 }, + { XFLT, "ENGINE_RSC_idlespeed_PROP", 1 }, + { XFLT, "ENGINE_RSC_redline_PROP", 1 }, + { XFLT, "ENGINE_RSC_mingreen_ENGN", 1 }, + { XFLT, "ENGINE_RSC_maxgreen_ENGN", 1 }, + { XFLT, "ENGINE_RSC_mingreen_PROP", 1 }, + { XFLT, "ENGINE_RSC_maxgreen_PROP", 1 }, + { XFLT, "ENGINE_turbo_tight", 1 }, + { XFLT, "ENGINE_spooltime_prop", 1 }, + { XFLT, "ENGINE_trans_loss", 1 }, + { XFLT, "ENGINE_thrust_max", 1 }, + { XFLT, "ENGINE_burner_inc", 1 }, + { XFLT, "ENGINE_max_mach_eff", 1 }, + { XFLT, "ENGINE_face_jet", 1 }, + { XFLT, "ENGINE_spooltime_jet", 1 }, + { XFLT, "ENGINE_lift_fan_rat", 1 }, + { XFLT, "ENGINE_rock_max_sl", 1 }, + { XFLT, "ENGINE_rock_max_opt", 1 }, + { XFLT, "ENGINE_rock_max_vac", 1 }, + { XFLT, "ENGINE_rock_h_opt", 1 }, + { XFLT, "ENGINE_face_rocket", 1 }, + { XINT, "PROP_engn_type", 8 }, + { XINT, "PROP_prop_type", 8 }, + { XFLT, "PROP_engn_mass", 8 }, + { XINT, "PROP_prop_clutch_EQ", 8 }, + { XFLT, "PROP_prop_gear_rat", 8 }, + { XFLT, "PROP_prop_dir", 8 }, + { XFLT, "PROP_num_blades", 8 }, + { XFLT, "PROP_SFC", 8 }, + { XFLT, "PROP_vertcant", 8 }, + { XFLT, "PROP_sidecant", 8 }, + { XFLT, "PROP_min_pitch", 8 }, + { XFLT, "PROP_max_pitch", 8 }, + { XFLT, "PROP_des_rpm_prp", 8 }, + { XFLT, "PROP_des_kts_prp", 8 }, + { XFLT, "PROP_des_kts_acf", 8 }, + { XFLT, "PROP_prop_mass", 8 }, + { XFLT, "PROP_mi_prop_rpm", 8 }, + { XFLT, "PROP_mi_engn_rpm", 8 }, + { XFLT, "PROP_discarea", 8 }, + { XFLT, "PROP_ringarea", 80 }, + { XFLT, "PROP_bladesweep", 80 }, + { XFLT, "HYDRO_STICK_starter_rat", 1 }, + { XFLT, "HYDRO_STICK_battery_rat", 1 }, + { XINT, "HYDRO_STICK_ff_hydraulic", 1 }, + { XINT, "HYDRO_STICK_ff_stickshaker", 1 }, + { XFLT, "HYDRO_STICK_manual_reversion_rat", 1 }, + { XFLT, "HYDRO_STICK_max_press_diff", 1 }, + { XINT, "PARTS_WingBodyGear_part_eq", 73 }, + { XCHR, "PARTS_WingBodyGear_Rafl0", 2920 }, + { XCHR, "PARTS_WingBodyGear_Rafl1", 2920 }, + { XCHR, "PARTS_WingBodyGear_Tafl0", 2920 }, + { XCHR, "PARTS_WingBodyGear_Tafl1", 2920 }, + { XINT, "PARTS_WingBodyGear_els", 73 }, + { XFLT, "PARTS_WingBodyGear_Xarm", 73 }, + { XFLT, "PARTS_WingBodyGear_Yarm", 73 }, + { XFLT, "PARTS_WingBodyGear_Zarm", 73 }, + { XFLT, "PARTS_WingBodyGear_Croot", 73 }, + { XFLT, "PARTS_WingBodyGear_Ctip", 73 }, + { XFLT, "PARTS_WingBodyGear_semilen_SEG", 73 }, + { XFLT, "PARTS_WingBodyGear_semilen_JND", 73 }, + { XFLT, "PARTS_WingBodyGear_element_len", 73 }, + { XFLT, "PARTS_WingBodyGear_X_body_aero", 73 }, + { XFLT, "PARTS_WingBodyGear_Y_body_aero", 73 }, + { XFLT, "PARTS_WingBodyGear_Z_body_aero", 73 }, + { XFLT, "PARTS_WingBodyGear_dihed1", 73 }, + { XFLT, "PARTS_WingBodyGear_dihed2", 73 }, + { XFLT, "PARTS_WingBodyGear_dihednow", 73 }, + { XINT, "PARTS_WingBodyGear_vardihed", 73 }, + { XINT, "PARTS_WingBodyGear_vardihedEQ", 1 }, + { XFLT, "PARTS_WingBodyGear_sweep1", 73 }, + { XFLT, "PARTS_WingBodyGear_sweep2", 73 }, + { XFLT, "PARTS_WingBodyGear_sweepnow", 73 }, + { XINT, "PARTS_WingBodyGear_varsweep", 73 }, + { XINT, "PARTS_WingBodyGear_varsweepEQ", 1 }, + { XFLT, "PARTS_WingBodyGear_e", 73 }, + { XFLT, "PARTS_WingBodyGear_AR", 73 }, + { XFLT, "PARTS_WingBodyGear_al_D_al0", 73 }, + { XFLT, "PARTS_WingBodyGear_cl_D_cl0", 73 }, + { XFLT, "PARTS_WingBodyGear_cm_D_cm0", 73 }, + { XFLT, "PARTS_WingBodyGear_delta_fac", 73 }, + { XFLT, "PARTS_WingBodyGear_spec_wash", 73 }, + { XFLT, "PARTS_WingBodyGear_alpha_max", 73 }, + { XFLT, "PARTS_WingBodyGear_slat_effect", 73 }, + { XFLT, "PARTS_WingBodyGear_s", 730 }, + { XFLT, "PARTS_WingBodyGear_mac", 730 }, + { XFLT, "PARTS_WingBodyGear_incidence", 730 }, + { XINT, "PARTS_WingBodyGear_ail1", 730 }, + { XFLT, "PARTS_WingBodyGear_ail1_elR", 73 }, + { XFLT, "PARTS_WingBodyGear_ail1_elT", 73 }, + { XFLT, "PARTS_WingBodyGear_ail1_cratR", 1 }, + { XFLT, "PARTS_WingBodyGear_ail1_cratT", 1 }, + { XFLT, "PARTS_WingBodyGear_ail1_up", 1 }, + { XFLT, "PARTS_WingBodyGear_ail1_dn", 1 }, + { XINT, "PARTS_WingBodyGear_ail2", 730 }, + { XFLT, "PARTS_WingBodyGear_ail2_elR", 73 }, + { XFLT, "PARTS_WingBodyGear_ail2_elT", 73 }, + { XFLT, "PARTS_WingBodyGear_ail2_cratR", 1 }, + { XFLT, "PARTS_WingBodyGear_ail2_cratT", 1 }, + { XFLT, "PARTS_WingBodyGear_ail2_up", 1 }, + { XFLT, "PARTS_WingBodyGear_ail2_dn", 1 }, + { XINT, "PARTS_WingBodyGear_elev", 730 }, + { XFLT, "PARTS_WingBodyGear_elev_elR", 73 }, + { XFLT, "PARTS_WingBodyGear_elev_elT", 73 }, + { XFLT, "PARTS_WingBodyGear_elev_cratR", 1 }, + { XFLT, "PARTS_WingBodyGear_elev_cratT", 1 }, + { XFLT, "PARTS_WingBodyGear_elev_up", 1 }, + { XFLT, "PARTS_WingBodyGear_elev_dn", 1 }, + { XINT, "PARTS_WingBodyGear_rudd", 730 }, + { XFLT, "PARTS_WingBodyGear_rudd_elR", 73 }, + { XFLT, "PARTS_WingBodyGear_rudd_elT", 73 }, + { XFLT, "PARTS_WingBodyGear_rudd_cratR", 1 }, + { XFLT, "PARTS_WingBodyGear_rudd_cratT", 1 }, + { XFLT, "PARTS_WingBodyGear_rudd_lr", 1 }, + { XINT, "PARTS_WingBodyGear_splr", 730 }, + { XFLT, "PARTS_WingBodyGear_splr_elR", 73 }, + { XFLT, "PARTS_WingBodyGear_splr_elT", 73 }, + { XFLT, "PARTS_WingBodyGear_splr_cratR", 1 }, + { XFLT, "PARTS_WingBodyGear_splr_cratT", 1 }, + { XFLT, "PARTS_WingBodyGear_splr_up", 1 }, + { XINT, "PARTS_WingBodyGear_yawb", 730 }, + { XFLT, "PARTS_WingBodyGear_yawb_elR", 73 }, + { XFLT, "PARTS_WingBodyGear_yawb_elT", 73 }, + { XFLT, "PARTS_WingBodyGear_yawb_cratR", 1 }, + { XFLT, "PARTS_WingBodyGear_yawb_cratT", 1 }, + { XFLT, "PARTS_WingBodyGear_yawb_ud", 1 }, + { XINT, "PARTS_WingBodyGear_sbrk", 730 }, + { XFLT, "PARTS_WingBodyGear_sbrk_elR", 73 }, + { XFLT, "PARTS_WingBodyGear_sbrk_elT", 73 }, + { XFLT, "PARTS_WingBodyGear_sbrk_cratR", 1 }, + { XFLT, "PARTS_WingBodyGear_sbrk_cratT", 1 }, + { XFLT, "PARTS_WingBodyGear_sbrk_up", 1 }, + { XINT, "PARTS_WingBodyGear_sbrkEQ", 1 }, + { XINT, "PARTS_WingBodyGear_flap", 730 }, + { XFLT, "PARTS_WingBodyGear_flap_elR", 73 }, + { XFLT, "PARTS_WingBodyGear_flap_elT", 73 }, + { XFLT, "PARTS_WingBodyGear_flap_cratR", 1 }, + { XFLT, "PARTS_WingBodyGear_flap_cratT", 1 }, + { XFLT, "PARTS_WingBodyGear_flap_dn", 8 }, + { XINT, "PARTS_WingBodyGear_flapEQ", 1 }, + { XINT, "PARTS_WingBodyGear_slat", 730 }, + { XFLT, "PARTS_WingBodyGear_slat_inc", 1 }, + { XINT, "PARTS_WingBodyGear_slatEQ", 1 }, + { XINT, "PARTS_WingBodyGear_inc_ail1", 730 }, + { XINT, "PARTS_WingBodyGear_inc_ail2", 730 }, + { XINT, "PARTS_WingBodyGear_inc_elev", 730 }, + { XINT, "PARTS_WingBodyGear_inc_rudd", 730 }, + { XINT, "PARTS_WingBodyGear_inc_vect", 730 }, + { XINT, "PARTS_WingBodyGear_inc_trim", 730 }, + { XINT, "PARTS_WingBodyGear_in_downwash", 53290 }, + { XFLT, "PARTS_WingBodyGear_body_r", 73 }, + { XFLT, "PARTS_WingBodyGear_body_X", 26280 }, + { XFLT, "PARTS_WingBodyGear_body_Y", 26280 }, + { XFLT, "PARTS_WingBodyGear_body_Z", 26280 }, + { XINT, "PARTS_WingBodyGear_gear_type", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_latE", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_lonE", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_axiE", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_latR", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_lonR", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_axiR", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_latN", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_lonN", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_axiN", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_xnodef", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_ynodef", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_znodef", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_leglen", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_radius", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_width", 73 }, + { XFLT, "PARTS_WingBodyGear_gearcon", 73 }, + { XFLT, "PARTS_WingBodyGear_geardmp", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_deploy", 73 }, + { XFLT, "PARTS_WingBodyGear_gearstatdef", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_def", 73 }, + { XINT, "PARTS_WingBodyGear_gear_steers", 73 }, + { XFLT, "PARTS_WingBodyGear_gear_cyctim", 73 }, + { XFLT, "BODIES_fuse_cd", 1 }, + { XFLT, "CONTROL_hstb_trim_up", 1 }, + { XFLT, "CONTROL_hstb_trim_dn", 1 }, + { XINT, "CONTROL_flap_type", 1 }, + { XINT, "CONTROL_con_smooth", 1 }, + { XINT, "CONTROL_flap_detents", 1 }, + { XFLT, "CONTROL_flap_deftime", 1 }, + { XFLT, "CONTROL_flap_cl", 1 }, + { XFLT, "CONTROL_flap_cd", 1 }, + { XFLT, "CONTROL_flap_cm", 1 }, + { XFLT, "CONTROL_blown_flap_add_speed", 1 }, + { XFLT, "CONTROL_blown_flap_throt_red", 1 }, + { XFLT, "CONTROL_blown_flap_min_engag", 1 }, + { XINT, "CONTROL_blow_all_controls", 1 }, + { XINT, "LANDING_GEAR_gear_retract", 1 }, + { XFLT, "LANDING_GEAR_nw_steerdeg1", 1 }, + { XFLT, "LANDING_GEAR_nw_steerdeg2", 1 }, + { XFLT, "LANDING_GEAR_nw_cutoff_speed", 1 }, + { XFLT, "LANDING_GEAR_nosewheel_k", 1 }, + { XFLT, "LANDING_GEAR_gear_door_size", 1 }, + { XFLT, "LANDING_GEAR_water_rud_longarm", 1 }, + { XFLT, "LANDING_GEAR_water_rud_area", 1 }, + { XFLT, "LANDING_GEAR_water_rud_maxdef", 1 }, + { XFLT, "LANDING_GEAR_roll_co", 1 }, + { XFLT, "LANDING_GEAR_brake_co", 1 }, + { XINT, "LANDING_GEAR_gear_door_typ", 10 }, + { XFLT, "LANDING_GEAR_gear_door_loc", 30 }, + { XFLT, "LANDING_GEAR_", 1 }, + { XFLT, "LANDING_GEAR_gear_door_axi_rot", 10 }, + { XFLT, "LANDING_GEAR_gear_door_ext_ang", 10 }, + { XFLT, "LANDING_GEAR_gear_door_ret_ang", 10 }, + { XFLT, "LANDING_GEAR_gear_door_ang_now", 10 }, + { XFLT, "WEIGHT_BALANCE_cgY", 1 }, + { XFLT, "WEIGHT_BALANCE_cgZ", 1 }, + { XFLT, "WEIGHT_BALANCE_cgZ_fwd", 1 }, + { XFLT, "WEIGHT_BALANCE_cgZ_aft", 1 }, + { XFLT, "WEIGHT_BALANCE_m_empty", 1 }, + { XFLT, "WEIGHT_BALANCE_m_fuel_tot", 1 }, + { XFLT, "WEIGHT_BALANCE_m_jettison", 1 }, + { XFLT, "WEIGHT_BALANCE_m_max", 1 }, + { XFLT, "WEIGHT_BALANCE_m_displaced", 1 }, + { XFLT, "WEIGHT_BALANCE_Jxx_unitmass", 1 }, + { XFLT, "WEIGHT_BALANCE_Jyy_unitmass", 1 }, + { XFLT, "WEIGHT_BALANCE_Jzz_unitmass", 1 }, + { XINT, "WEIGHT_BALANCE_num_tanks", 1 }, + { XFLT, "WEIGHT_BALANCE_tank_rat", 3 }, + { XFLT, "WEIGHT_BALANCE_tank_X", 3 }, + { XFLT, "WEIGHT_BALANCE_tank_Y", 3 }, + { XFLT, "WEIGHT_BALANCE_tank_Z", 3 }, + { XINT, "WEIGHT_BALANCE_jett_is_slung", 1 }, + { XINT, "WEIGHT_BALANCE_jett_is_water", 1 }, + { XFLT, "WEIGHT_BALANCE_jett_len", 1 }, + { XFLT, "WEIGHT_BALANCE_jett_X", 1 }, + { XFLT, "WEIGHT_BALANCE_jett_Y", 1 }, + { XFLT, "WEIGHT_BALANCE_jett_Z", 1 }, + { XFLT, "SPECIAL_CONTROLS_flap_roll", 1 }, + { XFLT, "SPECIAL_CONTROLS_flap_ptch", 1 }, + { XFLT, "SPECIAL_CONTROLS_mass_shift", 1 }, + { XFLT, "SPECIAL_CONTROLS_mass_shift_dx", 1 }, + { XFLT, "SPECIAL_CONTROLS_mass_shift_dz", 1 }, + { XFLT, "SPECIAL_CONTROLS_wing_tilt_ptch", 1 }, + { XFLT, "SPECIAL_CONTROLS_wing_tilt_roll", 1 }, + { XFLT, "SPECIAL_CONTROLS_tvec_ptch", 1 }, + { XFLT, "SPECIAL_CONTROLS_tvec_roll", 1 }, + { XFLT, "SPECIAL_CONTROLS_tvec_hdng", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_Y", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_Z", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_theta", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_thrust", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_dur", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_sfc", 1 }, + { XFLT, "SPECIAL_CONTROLS_stab_roll", 1 }, + { XFLT, "SPECIAL_CONTROLS_stab_hdng", 1 }, + { XFLT, "SPECIAL_CONTROLS_elev_flaps", 1 }, + { XFLT, "SPECIAL_CONTROLS_ail1_pitch", 1 }, + { XFLT, "SPECIAL_CONTROLS_ail1_flaps", 1 }, + { XFLT, "SPECIAL_CONTROLS_ail2_pitch", 1 }, + { XFLT, "SPECIAL_CONTROLS_ail2_flaps", 1 }, + { XFLT, "SPECIAL_CONTROLS_ail2_vmax", 1 }, + { XFLT, "SPECIAL_CONTROLS_diff_thro_with_hdng", 1 }, + { XINT, "SPECIAL_CONTROLS_phase_tvect_out_at_90", 1 }, + { XINT, "SPECIAL_CONTROLS_phase_tvect_out_at_00", 1 }, + { XINT, "SPECIAL_CONTROLS_autosbrkEQ", 1 }, + { XINT, "SPECIAL_CONTROLS_autofbrkEQ", 1 }, + { XINT, "SPECIAL_CONTROLS_autosweepEQ", 1 }, + { XINT, "SPECIAL_CONTROLS_flaps_with_gearEQ", 1 }, + { XINT, "SPECIAL_CONTROLS_autoslatEQ", 1 }, + { XINT, "SPECIAL_CONTROLS_antiiceEQ", 1 }, + { XINT, "SPECIAL_CONTROLS_arrestingEQ", 1 }, + { XINT, "SPECIAL_CONTROLS_rev_on_touchdown", 1 }, + { XINT, "SPECIAL_CONTROLS_gearhornEQ", 1 }, + { XINT, "SPECIAL_CONTROLS_lorotorwarnEQ", 1 }, + { XINT, "SPECIAL_CONTROLS_auto_trimEQ", 1 }, + { XINT, "SPECIAL_CONTROLS_flaps_with_vecEQ", 1 }, + { XFLT, "SPECIAL_CONTROLS_brake_area", 1 }, + { XFLT, "SPECIAL_CONTROLS_brake_Y", 1 }, + { XFLT, "SPECIAL_CONTROLS_brake_Z", 1 }, + { XFLT, "SPECIAL_CONTROLS_chute_area", 1 }, + { XFLT, "SPECIAL_CONTROLS_chute_Y", 1 }, + { XFLT, "SPECIAL_CONTROLS_chute_Z", 1 }, + { XINT, "VTOL_CONTROL_vectEQ", 1 }, + { XINT, "VTOL_CONTROL_auto_rpm_with_tvec", 1 }, + { XINT, "VTOL_CONTROL_hide_prop_at_90_vect", 1 }, + { XFLT, "VTOL_CONTROL_vect_rate", 1 }, + { XFLT, "VTOL_CONTROL_vect_min", 1 }, + { XFLT, "VTOL_CONTROL_vect_max", 1 }, + { XFLT, "VTOL_CONTROL_vectarmY", 1 }, + { XFLT, "VTOL_CONTROL_vectarmZ", 1 }, + { XFLT, "VTOL_CONTROL_cyclic_elev", 1 }, + { XFLT, "VTOL_CONTROL_cyclic_ailn", 1 }, + { XFLT, "VTOL_CONTROL_flap_arm", 1 }, + { XFLT, "VTOL_CONTROL_delta3", 1 }, + { XFLT, "VTOL_CONTROL_puffL", 1 }, + { XFLT, "VTOL_CONTROL_puffM", 1 }, + { XFLT, "VTOL_CONTROL_puffN", 1 }, + { XFLT, "VTOL_CONTROL_puffX", 1 }, + { XFLT, "VTOL_CONTROL_puffY", 1 }, + { XFLT, "VTOL_CONTROL_puffZ", 1 }, + { XFLT, "VTOL_CONTROL_stab_delinc_to_Vne", 1 }, + { XFLT, "VTOL_CONTROL_tail_with_coll", 1 }, + { XFLT, "VTOL_CONTROL_diff_coll_with_roll", 1 }, + { XFLT, "VTOL_CONTROL_diff_coll_with_hdng", 1 }, + { XFLT, "VTOL_CONTROL_diff_coll_with_ptch", 1 }, + { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lon", 1 }, + { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lat", 1 }, + { XFLT, "VTOL_CONTROL_rotor_trim_max_fwd", 1 }, + { XFLT, "VTOL_CONTROL_rotor_trim_max_aft", 1 }, + { XFLT, "ART_STAB_AShiV", 1 }, + { XFLT, "ART_STAB_ASloV", 1 }, + { XFLT, "ART_STAB_ASmaxp_lo", 1 }, + { XFLT, "ART_STAB_ASp_lo_rate", 1 }, + { XFLT, "ART_STAB_ASmaxh_lo", 1 }, + { XFLT, "ART_STAB_ASh_lo_rate", 1 }, + { XFLT, "ART_STAB_ASmaxr_lo", 1 }, + { XFLT, "ART_STAB_ASr_lo_rate", 1 }, + { XFLT, "ART_STAB_ASmaxg_hi", 1 }, + { XFLT, "ART_STAB_ASg_hi_pos", 1 }, + { XFLT, "ART_STAB_ASg_hi_rate", 1 }, + { XFLT, "ART_STAB_ASmaxp_hi", 1 }, + { XFLT, "ART_STAB_ASp_hi_pos", 1 }, + { XFLT, "ART_STAB_ASp_hi_rate", 1 }, + { XFLT, "ART_STAB_ASmaxh_hi", 1 }, + { XFLT, "ART_STAB_ASh_hi_pos", 1 }, + { XFLT, "ART_STAB_ASh_hi_rate", 1 }, + { XFLT, "ART_STAB_ASmaxr_hi", 1 }, + { XFLT, "ART_STAB_ASr_hi_rate", 1 }, + { XCHR, "WEARONS_wpn_name", 12000 }, + { XFLT, "WEARONS_Xwpn_att", 24 }, + { XFLT, "WEARONS_Ywpn_att", 24 }, + { XFLT, "WEARONS_Zwpn_att", 24 }, + { XFLT, "AUTO_SETS_est_Vs_msc", 1 }, + { XFLT, "AUTO_SETS_size_x", 1 }, + { XFLT, "AUTO_SETS_size_z", 1 }, + { XFLT, "AUTO_SETS_tire_s_contact", 1 }, + { XFLT, "AUTO_SETS_m_displaced_y", 1 }, + { XFLT, "AUTO_SETS_h_eqlbm", 1 }, + { XFLT, "AUTO_SETS_the_eqlbm", 1 }, + { XINT, "AUTO_SETS_is_taildragger", 1 }, + { XINT, "AUTO_SETS_is_skid_gear", 1 }, + { XINT, "AUTO_SETS_is_hybrid_gear", 1 }, + { XINT, "AUTO_SETS_has_nav", 6 }, + { XINT, "AUTO_SETS_has_radar", 1 }, + { XINT, "AUTO_SETS_has_SC_fd", 1 }, + { XINT, "AUTO_SETS_has_DC_fd", 1 }, + { XINT, "AUTO_SETS_has_stallwarn", 1 }, + { XINT, "AUTO_SETS_has_clutchswitch", 1 }, + { XINT, "AUTO_SETS_has_prerotate", 1 }, + { XINT, "AUTO_SETS_has_idlespeed", 1 }, + { XINT, "AUTO_SETS_has_litemap_tex", 1 }, + { XINT, "AUTO_SETS_has_tailrotor", 1 }, + { XINT, "AUTO_SETS_has_collective", 1 }, + { XINT, "AUTO_SETS_collective_en", 1 }, + { XFLT, "SOUND_REF_snd_kias", 1 }, + { XFLT, "SOUND_REF_snd_rpm_prp", 1 }, + { XFLT, "SOUND_REF_snd_rpm_eng", 1 }, + { XFLT, "SOUND_REF_snd_n1", 1 }, + { XFLT, "VAR_INCIDENCE_inc2", 73 }, + { XFLT, "VAR_INCIDENCE_incnow", 73 }, + { XINT, "VAR_INCIDENCE_varinc", 73 }, + { XINT, "VAR_INCIDENCE_varincEQ", 1 }, + { XFLT, "owerflow_xflt_overflow", 776 }, + { XINT, "owerflow_xint_overflow", 1000 }, + { XCHR, "owerflow_xchr_overflow", 1000 }, + { XCHR, "end_of_data", 1 }, + + { XEOF, NULL, 0 } +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_DEF_ACF740_H +#define _IMP_ACF_DEF_ACF740_H + +#include "imp_acf_def_proto.h" + +static const AcfDef acf_def_acf740[] = { + { XCHR, "HEADER_platform", 1 }, + { XINT, "HEADER_version", 1 }, + { XFLT, "HEADER_filler", 1 }, + { XCHR, "VIEW_name", 500 }, + { XCHR, "VIEW_path", 500 }, + { XCHR, "VIEW_tailnum", 40 }, + { XCHR, "VIEW_author", 500 }, + { XCHR, "VIEW_descrip", 500 }, + { XFLT, "VIEW_Vmca_kts", 1 }, + { XFLT, "VIEW_Vso_kts", 1 }, + { XFLT, "VIEW_Vs_kts", 1 }, + { XFLT, "VIEW_Vyse_kts", 1 }, + { XFLT, "VIEW_Vfe_kts", 1 }, + { XFLT, "VIEW_Vle_kts", 1 }, + { XFLT, "VIEW_Vno_kts", 1 }, + { XFLT, "VIEW_Vne_kts", 1 }, + { XFLT, "VIEW_Mmo", 1 }, + { XFLT, "VIEW_Gneg", 1 }, + { XFLT, "VIEW_Gpos", 1 }, + { XINT, "VIEW_has_navlites", 1 }, + { XFLT, "VIEW_pe_xyz", 3 }, + { XINT, "VIEW_has_lanlite1", 1 }, + { XFLT, "VIEW_lanlite1_xyz", 3 }, + { XINT, "VIEW_has_lanlite2", 1 }, + { XFLT, "VIEW_lanlite2_xyz", 3 }, + { XINT, "VIEW_has_taxilite", 1 }, + { XFLT, "VIEW_lanlite3_xyz", 3 }, + { XINT, "VIEW_has_fuserb1", 1 }, + { XFLT, "VIEW_fuserb1_xyz", 3 }, + { XINT, "VIEW_has_fuserb2", 1 }, + { XFLT, "VIEW_fuserb2_xyz", 3 }, + { XINT, "VIEW_has_taillite", 1 }, + { XFLT, "VIEW_taillite_xyz", 3 }, + { XINT, "VIEW_has_refuel", 1 }, + { XFLT, "VIEW_refuel_xyz", 3 }, + { XFLT, "VIEW_yawstring_x", 1 }, + { XFLT, "VIEW_yawstring_y", 1 }, + { XFLT, "VIEW_HUD_ctr_x", 1 }, + { XFLT, "VIEW_HUD_ctr_y_OLD", 1 }, + { XFLT, "VIEW_HUD_del_x", 1 }, + { XFLT, "VIEW_HUD_del_y", 1 }, + { XINT, "VIEW_lan_lite_steers", 1 }, + { XFLT, "VIEW_lan_lite_power", 1 }, + { XFLT, "VIEW_lan_lite_width", 1 }, + { XFLT, "VIEW_lan_lite_the_ref", 1 }, + { XFLT, "VIEW_stall_warn_aoa", 1 }, + { XFLT, "VIEW_tow_hook_Y", 1 }, + { XFLT, "VIEW_tow_hook_Z", 1 }, + { XFLT, "VIEW_win_hook_Y", 1 }, + { XFLT, "VIEW_win_hook_Z", 1 }, + { XINT, "VIEW_has_HOOPS_HUD", 1 }, + { XINT, "VIEW_cockpit_type", 1 }, + { XINT, "VIEW_asi_is_kts", 1 }, + { XINT, "VIEW_warn1_EQ", 1 }, + { XINT, "VIEW_warn2_EQ", 1 }, + { XINT, "VIEW_is_glossy", 1 }, + { XINT, "VIEW_draw_geo_frnt_views", 1 }, + { XINT, "VIEW_draw_geo_side_views", 1 }, + { XINT, "VIEW_ins_type", 300 }, + { XFLT, "VIEW_ins_size", 300 }, + { XFLT, "VIEW_ins_x", 300 }, + { XFLT, "VIEW_ins_y", 300 }, + { XINT, "VIEW_cus_rnd_use", 50 }, + { XFLT, "VIEW_cus_rnd_lo_val", 50 }, + { XFLT, "VIEW_cus_rnd_hi_val", 50 }, + { XFLT, "VIEW_cus_rnd_lo_ang", 50 }, + { XFLT, "VIEW_cus_rnd_hi_ang", 50 }, + { XINT, "VIEW_cus_rnd_mirror", 50 }, + { XINT, "VIEW_cus_rnd_label", 50 }, + { XINT, "VIEW_cus_dig_use", 50 }, + { XFLT, "VIEW_cus_dig_offset", 50 }, + { XFLT, "VIEW_cus_dig_scale", 50 }, + { XINT, "VIEW_cus_dig_dig", 50 }, + { XINT, "VIEW_cus_dig_dec", 50 }, + { XINT, "ENGINE_num_engines", 1 }, + { XINT, "ENGINE_num_thrustpoints", 1 }, + { XFLT, "ENGINE_throt_max_FWD", 1 }, + { XFLT, "ENGINE_throt_max_REV", 1 }, + { XFLT, "ENGINE_idle_rat", 2 }, + { XINT, "ENGINE_props_linked", 1 }, + { XINT, "ENGINE_beta_prop_EQ", 1 }, + { XINT, "ENGINE_auto_feather_EQ", 1 }, + { XINT, "ENGINE_rev_thrust_EQ", 1 }, + { XINT, "ENGINE_drive_by_wire_EQ", 1 }, + { XFLT, "ENGINE_feathered_pitch", 1 }, + { XFLT, "ENGINE_reversed_pitch", 1 }, + { XFLT, "ENGINE_rotor_mi_rat", 1 }, + { XFLT, "ENGINE_tip_weight", 1 }, + { XFLT, "ENGINE_tip_mach_des_100", 1 }, + { XFLT, "ENGINE_tip_mach_des_50", 1 }, + { XFLT, "ENGINE_power_max", 1 }, + { XFLT, "ENGINE_crit_alt", 1 }, + { XFLT, "ENGINE_MP_max", 1 }, + { XFLT, "ENGINE_trq_max_eng", 1 }, + { XFLT, "ENGINE_RSC_idlespeed_ENGN", 1 }, + { XFLT, "ENGINE_RSC_redline_ENGN", 1 }, + { XFLT, "ENGINE_RSC_idlespeed_PROP", 1 }, + { XFLT, "ENGINE_RSC_redline_PROP", 1 }, + { XFLT, "ENGINE_RSC_mingreen_ENGN", 1 }, + { XFLT, "ENGINE_RSC_maxgreen_ENGN", 1 }, + { XFLT, "ENGINE_RSC_mingreen_PROP", 1 }, + { XFLT, "ENGINE_RSC_maxgreen_PROP", 1 }, + { XINT, "ENGINE_has_press_controls", 1 }, + { XFLT, "ENGINE_throt_time_prop", 1 }, + { XFLT, "ENGINE_trans_loss", 1 }, + { XFLT, "ENGINE_thrust_max", 1 }, + { XFLT, "ENGINE_burner_inc", 1 }, + { XFLT, "ENGINE_max_mach_eff", 1 }, + { XFLT, "ENGINE_face_jet", 1 }, + { XFLT, "ENGINE_throt_time_jet", 1 }, + { XFLT, "ENGINE_lift_fan_rat", 1 }, + { XFLT, "ENGINE_rock_max_sl", 1 }, + { XFLT, "ENGINE_rock_max_opt", 1 }, + { XFLT, "ENGINE_rock_max_vac", 1 }, + { XFLT, "ENGINE_rock_h_opt", 1 }, + { XFLT, "ENGINE_face_rocket", 1 }, + { XINT, "PROP_engn_type", 8 }, + { XINT, "PROP_prop_type", 8 }, + { XFLT, "PROP_engn_mass", 8 }, + { XINT, "PROP_prop_clutch_EQ", 8 }, + { XFLT, "PROP_prop_gear_rat", 8 }, + { XFLT, "PROP_prop_dir", 8 }, + { XFLT, "PROP_num_blades", 8 }, + { XFLT, "PROP_SFC", 8 }, + { XFLT, "PROP_vert_cant_init", 8 }, + { XFLT, "PROP_side_cant_init", 8 }, + { XFLT, "PROP_min_pitch", 8 }, + { XFLT, "PROP_max_pitch", 8 }, + { XFLT, "PROP_des_rpm_prp", 8 }, + { XFLT, "PROP_des_kts_prp", 8 }, + { XFLT, "PROP_des_kts_acf", 8 }, + { XFLT, "PROP_prop_mass", 8 }, + { XFLT, "PROP_mi_prop_rpm", 8 }, + { XFLT, "PROP_mi_engn_rpm", 8 }, + { XFLT, "PROP_discarea", 8 }, + { XFLT, "PROP_ringarea", 80 }, + { XFLT, "PROP_bladesweep", 80 }, + { XFLT, "HYDRO_STICK_starter_rat", 1 }, + { XFLT, "HYDRO_STICK_battery_rat", 1 }, + { XINT, "HYDRO_STICK_ff_hydraulic", 1 }, + { XINT, "HYDRO_STICK_ff_stickshaker", 1 }, + { XFLT, "HYDRO_STICK_manual_reversion_rat", 1 }, + { XFLT, "HYDRO_STICK_max_press_diff", 1 }, + { XINT, "PARTS_part_eq", 73 }, + { XCHR, "PARTS_Rafl0", 2920 }, + { XCHR, "PARTS_Rafl1", 2920 }, + { XCHR, "PARTS_Tafl0", 2920 }, + { XCHR, "PARTS_Tafl1", 2920 }, + { XINT, "PARTS_els", 73 }, + { XFLT, "PARTS_Xarm", 73 }, + { XFLT, "PARTS_Yarm", 73 }, + { XFLT, "PARTS_Zarm", 73 }, + { XFLT, "PARTS_Croot", 73 }, + { XFLT, "PARTS_Ctip", 73 }, + { XFLT, "PARTS_semilen_SEG", 73 }, + { XFLT, "PARTS_semilen_JND", 73 }, + { XFLT, "PARTS_element_len", 73 }, + { XFLT, "PARTS_X_body_aero", 73 }, + { XFLT, "PARTS_Y_body_aero", 73 }, + { XFLT, "PARTS_Z_body_aero", 73 }, + { XFLT, "PARTS_dihed1", 73 }, + { XFLT, "PARTS_dihed2", 73 }, + { XFLT, "PARTS_dihednow", 73 }, + { XINT, "PARTS_vardihed", 73 }, + { XINT, "PARTS_vardihedEQ", 1 }, + { XFLT, "PARTS_sweep1", 73 }, + { XFLT, "PARTS_sweep2", 73 }, + { XFLT, "PARTS_sweepnow", 73 }, + { XINT, "PARTS_varsweep", 73 }, + { XINT, "PARTS_varsweepEQ", 1 }, + { XFLT, "PARTS_e", 73 }, + { XFLT, "PARTS_AR", 73 }, + { XFLT, "PARTS_al_D_al0", 73 }, + { XFLT, "PARTS_cl_D_cl0", 73 }, + { XFLT, "PARTS_cm_D_cm0", 73 }, + { XFLT, "PARTS_delta_fac", 73 }, + { XFLT, "PARTS_spec_wash", 73 }, + { XFLT, "PARTS_alpha_max", 73 }, + { XFLT, "PARTS_slat_effect", 73 }, + { XFLT, "PARTS_s", 730 }, + { XFLT, "PARTS_mac", 730 }, + { XFLT, "PARTS_incidence", 730 }, + { XINT, "PARTS_ail1", 730 }, + { XFLT, "PARTS_ail1_elR", 73 }, + { XFLT, "PARTS_ail1_elT", 73 }, + { XFLT, "PARTS_ail1_cratR", 1 }, + { XFLT, "PARTS_ail1_cratT", 1 }, + { XFLT, "PARTS_ail1_up", 1 }, + { XFLT, "PARTS_ail1_dn", 1 }, + { XINT, "PARTS_ail2", 730 }, + { XFLT, "PARTS_ail2_elR", 73 }, + { XFLT, "PARTS_ail2_elT", 73 }, + { XFLT, "PARTS_ail2_cratR", 1 }, + { XFLT, "PARTS_ail2_cratT", 1 }, + { XFLT, "PARTS_ail2_up", 1 }, + { XFLT, "PARTS_ail2_dn", 1 }, + { XINT, "PARTS_elev", 730 }, + { XFLT, "PARTS_elev_elR", 73 }, + { XFLT, "PARTS_elev_elT", 73 }, + { XFLT, "PARTS_elev_cratR", 1 }, + { XFLT, "PARTS_elev_cratT", 1 }, + { XFLT, "PARTS_elev_up", 1 }, + { XFLT, "PARTS_elev_dn", 1 }, + { XINT, "PARTS_rudd", 730 }, + { XFLT, "PARTS_rudd_elR", 73 }, + { XFLT, "PARTS_rudd_elT", 73 }, + { XFLT, "PARTS_rudd_cratR", 1 }, + { XFLT, "PARTS_rudd_cratT", 1 }, + { XFLT, "PARTS_rudd_lr", 1 }, + { XINT, "PARTS_spo1", 730 }, + { XFLT, "PARTS_spo1_elR", 73 }, + { XFLT, "PARTS_spo1_elT", 73 }, + { XFLT, "PARTS_spo1_cratR", 1 }, + { XFLT, "PARTS_spo1_cratT", 1 }, + { XFLT, "PARTS_spo1_up", 1 }, + { XINT, "PARTS_yawb", 730 }, + { XFLT, "PARTS_yawb_elR", 73 }, + { XFLT, "PARTS_yawb_elT", 73 }, + { XFLT, "PARTS_yawb_cratR", 1 }, + { XFLT, "PARTS_yawb_cratT", 1 }, + { XFLT, "PARTS_yawb_ud", 1 }, + { XINT, "PARTS_sbrk", 730 }, + { XFLT, "PARTS_sbrk_elR", 73 }, + { XFLT, "PARTS_sbrk_elT", 73 }, + { XFLT, "PARTS_sbrk_cratR", 1 }, + { XFLT, "PARTS_sbrk_cratT", 1 }, + { XFLT, "PARTS_sbrk_up", 1 }, + { XINT, "PARTS_sbrkEQ", 1 }, + { XINT, "PARTS_flap", 730 }, + { XFLT, "PARTS_flap_elR", 73 }, + { XFLT, "PARTS_flap_elT", 73 }, + { XFLT, "PARTS_flap_cratR", 1 }, + { XFLT, "PARTS_flap_cratT", 1 }, + { XFLT, "PARTS_flap_dn", 8 }, + { XINT, "PARTS_flapEQ", 1 }, + { XINT, "PARTS_slat", 730 }, + { XFLT, "PARTS_slat_inc", 1 }, + { XINT, "PARTS_slatEQ", 1 }, + { XINT, "PARTS_inc_ail1", 730 }, + { XINT, "PARTS_inc_ail2", 730 }, + { XINT, "PARTS_inc_elev", 730 }, + { XINT, "PARTS_inc_rudd", 730 }, + { XINT, "PARTS_inc_vect", 730 }, + { XINT, "PARTS_inc_trim", 730 }, + { XINT, "PARTS_in_downwash", 53290 }, + { XFLT, "PARTS_body_r", 73 }, + { XFLT, "PARTS_body_X", 26280 }, + { XFLT, "PARTS_body_Y", 26280 }, + { XFLT, "PARTS_body_Z", 26280 }, + { XINT, "PARTS_gear_type", 73 }, + { XFLT, "PARTS_gear_latE", 73 }, + { XFLT, "PARTS_gear_lonE", 73 }, + { XFLT, "PARTS_gear_axiE", 73 }, + { XFLT, "PARTS_gear_latR", 73 }, + { XFLT, "PARTS_gear_lonR", 73 }, + { XFLT, "PARTS_gear_axiR", 73 }, + { XFLT, "PARTS_gear_latN", 73 }, + { XFLT, "PARTS_gear_lonN", 73 }, + { XFLT, "PARTS_gear_axiN", 73 }, + { XFLT, "PARTS_gear_xnodef", 73 }, + { XFLT, "PARTS_gear_ynodef", 73 }, + { XFLT, "PARTS_gear_znodef", 73 }, + { XFLT, "PARTS_gear_leglen", 73 }, + { XFLT, "PARTS_tire_radius", 73 }, + { XFLT, "PARTS_tire_swidth", 73 }, + { XFLT, "PARTS_gearcon", 73 }, + { XFLT, "PARTS_geardmp", 73 }, + { XFLT, "PARTS_gear_deploy", 73 }, + { XFLT, "PARTS_gearstatdef", 73 }, + { XFLT, "PARTS_dummy", 73 }, + { XINT, "PARTS_gear_steers", 73 }, + { XFLT, "PARTS_gear_cyctim", 73 }, + { XFLT, "BODIES_fuse_cd", 1 }, + { XFLT, "CONTROL_hstb_trim_up", 1 }, + { XFLT, "CONTROL_hstb_trim_dn", 1 }, + { XINT, "CONTROL_flap_type", 1 }, + { XINT, "CONTROL_con_smooth", 1 }, + { XINT, "CONTROL_flap_detents", 1 }, + { XFLT, "CONTROL_flap_deftime", 1 }, + { XFLT, "CONTROL_flap_cl", 1 }, + { XFLT, "CONTROL_flap_cd", 1 }, + { XFLT, "CONTROL_flap_cm", 1 }, + { XFLT, "CONTROL_blown_flap_add_speed", 1 }, + { XFLT, "CONTROL_blown_flap_throt_red", 1 }, + { XFLT, "CONTROL_blown_flap_min_engag", 1 }, + { XINT, "CONTROL_blow_all_controls", 1 }, + { XINT, "LANDING_GEAR_gear_retract", 1 }, + { XFLT, "LANDING_GEAR_nw_steerdeg1", 1 }, + { XFLT, "LANDING_GEAR_nw_steerdeg2", 1 }, + { XFLT, "LANDING_GEAR_nw_cutoff_omega", 1 }, + { XFLT, "LANDING_GEAR_nw_side_k", 1 }, + { XFLT, "LANDING_GEAR_gear_door_size", 1 }, + { XFLT, "LANDING_GEAR_water_rud_longarm", 1 }, + { XFLT, "LANDING_GEAR_water_rud_area", 1 }, + { XFLT, "LANDING_GEAR_water_rud_maxdef", 1 }, + { XFLT, "LANDING_GEAR_roll_co", 1 }, + { XFLT, "LANDING_GEAR_brake_co", 1 }, + { XINT, "LANDING_GEAR_gear_door_typ", 10 }, + { XFLT, "LANDING_GEAR_gear_door_loc", 30 }, + { XFLT, "LANDING_GEAR_gear_door_geo", 120 }, + { XFLT, "LANDING_GEAR_gear_door_axi_rot", 10 }, + { XFLT, "LANDING_GEAR_gear_door_ext_ang", 10 }, + { XFLT, "LANDING_GEAR_gear_door_ret_ang", 10 }, + { XFLT, "LANDING_GEAR_gear_door_ang_now", 10 }, + { XFLT, "WEIGHT_BALANCE_cgY", 1 }, + { XFLT, "WEIGHT_BALANCE_cgZ", 1 }, + { XFLT, "WEIGHT_BALANCE_cgZ_fwd", 1 }, + { XFLT, "WEIGHT_BALANCE_cgZ_aft", 1 }, + { XFLT, "WEIGHT_BALANCE_m_empty", 1 }, + { XFLT, "WEIGHT_BALANCE_m_fuel_tot", 1 }, + { XFLT, "WEIGHT_BALANCE_m_jettison", 1 }, + { XFLT, "WEIGHT_BALANCE_m_max", 1 }, + { XFLT, "WEIGHT_BALANCE_m_displaced", 1 }, + { XFLT, "WEIGHT_BALANCE_Jxx_unitmass", 1 }, + { XFLT, "WEIGHT_BALANCE_Jyy_unitmass", 1 }, + { XFLT, "WEIGHT_BALANCE_Jzz_unitmass", 1 }, + { XINT, "WEIGHT_BALANCE_num_tanks", 1 }, + { XFLT, "WEIGHT_BALANCE_tank_rat", 3 }, + { XFLT, "WEIGHT_BALANCE_tank_X", 3 }, + { XFLT, "WEIGHT_BALANCE_tank_Y", 3 }, + { XFLT, "WEIGHT_BALANCE_tank_Z", 3 }, + { XINT, "WEIGHT_BALANCE_jett_is_slung", 1 }, + { XINT, "WEIGHT_BALANCE_jett_is_water", 1 }, + { XFLT, "WEIGHT_BALANCE_jett_len", 1 }, + { XFLT, "WEIGHT_BALANCE_jett_xyz", 3 }, + { XFLT, "SPECIAL_CONTROLS_flap_roll", 1 }, + { XFLT, "SPECIAL_CONTROLS_flap_ptch", 1 }, + { XFLT, "SPECIAL_CONTROLS_mass_shift", 1 }, + { XFLT, "SPECIAL_CONTROLS_mass_shift_dx", 1 }, + { XFLT, "SPECIAL_CONTROLS_mass_shift_dz", 1 }, + { XFLT, "SPECIAL_CONTROLS_wing_tilt_ptch", 1 }, + { XFLT, "SPECIAL_CONTROLS_wing_tilt_roll", 1 }, + { XFLT, "SPECIAL_CONTROLS_tvec_ptch", 1 }, + { XFLT, "SPECIAL_CONTROLS_tvec_roll", 1 }, + { XFLT, "SPECIAL_CONTROLS_tvec_hdng", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_Y", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_Z", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_theta", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_thrust", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_dur", 1 }, + { XFLT, "SPECIAL_CONTROLS_jato_sfc", 1 }, + { XFLT, "SPECIAL_CONTROLS_stab_roll", 1 }, + { XFLT, "SPECIAL_CONTROLS_stab_hdng", 1 }, + { XFLT, "SPECIAL_CONTROLS_elev_with_flap", 1 }, + { XFLT, "SPECIAL_CONTROLS_ail1_pitch", 1 }, + { XFLT, "SPECIAL_CONTROLS_ail1_flaps", 1 }, + { XFLT, "SPECIAL_CONTROLS_ail2_pitch", 1 }, + { XFLT, "SPECIAL_CONTROLS_ail2_flaps", 1 }, + { XFLT, "SPECIAL_CONTROLS_ail2_vmax", 1 }, + { XFLT, "SPECIAL_CONTROLS_diff_thro_hdng", 1 }, + { XINT, "SPECIAL_CONTROLS_phase_ptch_tvect_in_at_90", 1 }, + { XINT, "SPECIAL_CONTROLS_phase_ptch_tvect_in_at_00", 1 }, + { XINT, "SPECIAL_CONTROLS_sbrk_on_td_EQ", 1 }, + { XINT, "SPECIAL_CONTROLS_fbrk_on_td_EQ", 1 }, + { XINT, "SPECIAL_CONTROLS_sweep_with_flaps_EQ", 1 }, + { XINT, "SPECIAL_CONTROLS_flaps_with_gear_EQ", 1 }, + { XINT, "SPECIAL_CONTROLS_slat_with_stall_EQ", 1 }, + { XINT, "SPECIAL_CONTROLS_anti_ice_EQ", 1 }, + { XINT, "SPECIAL_CONTROLS_arresting_EQ", 1 }, + { XINT, "SPECIAL_CONTROLS_revt_on_td_EQ", 1 }, + { XINT, "SPECIAL_CONTROLS_warn_gear_EQ", 1 }, + { XINT, "SPECIAL_CONTROLS_warn_lorot_EQ", 1 }, + { XINT, "SPECIAL_CONTROLS_auto_trim_EQ", 1 }, + { XINT, "SPECIAL_CONTROLS_flaps_with_vec_EQ", 1 }, + { XFLT, "SPECIAL_CONTROLS_brake_area", 1 }, + { XFLT, "SPECIAL_CONTROLS_brake_Y", 1 }, + { XFLT, "SPECIAL_CONTROLS_brake_Z", 1 }, + { XFLT, "SPECIAL_CONTROLS_chute_area", 1 }, + { XFLT, "SPECIAL_CONTROLS_chute_Y", 1 }, + { XFLT, "SPECIAL_CONTROLS_chute_Z", 1 }, + { XINT, "VTOL_CONTROL_vect_EQ", 1 }, + { XINT, "VTOL_CONTROL_auto_rpm_with_tvec", 1 }, + { XINT, "VTOL_CONTROL_hide_prop_at_90_vect", 1 }, + { XFLT, "VTOL_CONTROL_vect_rate", 1 }, + { XFLT, "VTOL_CONTROL_vect_min_disc", 1 }, + { XFLT, "VTOL_CONTROL_vect_max_disc", 1 }, + { XFLT, "VTOL_CONTROL_vectarmY", 1 }, + { XFLT, "VTOL_CONTROL_vectarmZ", 1 }, + { XFLT, "VTOL_CONTROL_cyclic_def_elev", 1 }, + { XFLT, "VTOL_CONTROL_cyclic_def_ailn", 1 }, + { XFLT, "VTOL_CONTROL_flap_arm", 1 }, + { XFLT, "VTOL_CONTROL_delta3", 1 }, + { XFLT, "VTOL_CONTROL_puff_LMN", 3 }, + { XFLT, "VTOL_CONTROL_puff_xyz", 3 }, + { XFLT, "VTOL_CONTROL_stab_delinc_to_Vne", 1 }, + { XFLT, "VTOL_CONTROL_tail_with_coll", 1 }, + { XFLT, "VTOL_CONTROL_diff_coll_with_roll", 1 }, + { XFLT, "VTOL_CONTROL_diff_coll_with_hdng", 1 }, + { XFLT, "VTOL_CONTROL_diff_coll_with_ptch", 1 }, + { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lon", 1 }, + { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lat", 1 }, + { XFLT, "VTOL_CONTROL_rotor_trim_max_fwd", 1 }, + { XFLT, "VTOL_CONTROL_rotor_trim_max_aft", 1 }, + { XFLT, "ART_STAB_AShiV_old_all", 1 }, + { XFLT, "ART_STAB_ASloV_old_all", 1 }, + { XFLT, "ART_STAB_ASlo_max_thedot", 1 }, + { XFLT, "ART_STAB_ASlo_thedot_k", 1 }, + { XFLT, "ART_STAB_ASlo_max_psidot", 1 }, + { XFLT, "ART_STAB_ASlo_psidot_k", 1 }, + { XFLT, "ART_STAB_ASlo_max_phidot", 1 }, + { XFLT, "ART_STAB_ASlo_phidot_k", 1 }, + { XFLT, "ART_STAB_AShi_max_G", 1 }, + { XFLT, "ART_STAB_AShi_G_k", 1 }, + { XFLT, "ART_STAB_AShi_Gdot_k", 1 }, + { XFLT, "ART_STAB_AShi_max_alpha", 1 }, + { XFLT, "ART_STAB_AShi_alpha_k", 1 }, + { XFLT, "ART_STAB_AShi_alphadot_k", 1 }, + { XFLT, "ART_STAB_AShi_max_beta", 1 }, + { XFLT, "ART_STAB_AShi_beta_k", 1 }, + { XFLT, "ART_STAB_AShi_betadot_k", 1 }, + { XFLT, "ART_STAB_AShi_max_phidot", 1 }, + { XFLT, "ART_STAB_AShi_phidot_k", 1 }, + { XCHR, "WEARONS_wpn_name", 12000 }, + { XFLT, "WEARONS_x_wpn_att", 24 }, + { XFLT, "WEARONS_y_wpn_att", 24 }, + { XFLT, "WEARONS_z_wpn_att", 24 }, + { XFLT, "AUTO_SETS_est_Vs_msc", 1 }, + { XFLT, "AUTO_SETS_size_x", 1 }, + { XFLT, "AUTO_SETS_size_z", 1 }, + { XFLT, "AUTO_SETS_tire_s_contact", 1 }, + { XFLT, "AUTO_SETS_m_displaced_y", 1 }, + { XFLT, "AUTO_SETS_h_eqlbm", 1 }, + { XFLT, "AUTO_SETS_the_eqlbm", 1 }, + { XINT, "AUTO_SETS_steer_gear", 1 }, + { XINT, "AUTO_SETS_is_skid_gear", 1 }, + { XINT, "AUTO_SETS_dummy3", 7 }, + { XINT, "AUTO_SETS_has_radar", 1 }, + { XINT, "AUTO_SETS_has_SC_fd", 1 }, + { XINT, "AUTO_SETS_has_DC_fd", 1 }, + { XINT, "AUTO_SETS_has_stallwarn", 1 }, + { XINT, "AUTO_SETS_has_clutchswitch", 1 }, + { XINT, "AUTO_SETS_has_prerotate", 1 }, + { XINT, "AUTO_SETS_has_idlespeed", 1 }, + { XINT, "AUTO_SETS_has_FADECswitch", 1 }, + { XINT, "AUTO_SETS_has_litemap_tex_1", 1 }, + { XINT, "AUTO_SETS_has_tailrotor", 1 }, + { XINT, "AUTO_SETS_has_collective", 1 }, + { XFLT, "SOUND_REF_snd_kias", 1 }, + { XFLT, "SOUND_REF_snd_rpm_prp", 1 }, + { XFLT, "SOUND_REF_snd_rpm_eng", 1 }, + { XFLT, "SOUND_REF_snd_n1", 1 }, + { XFLT, "VAR_INCIDENCE_inc2", 73 }, + { XFLT, "VAR_INCIDENCE_incnow", 73 }, + { XINT, "VAR_INCIDENCE_varinc", 73 }, + { XINT, "VAR_INCIDENCE_varincEQ", 1 }, + { XFLT, "OVERFLOW_rudd_with_ailn", 1 }, + { XFLT, "OVERFLOW_strut_comp", 73 }, + { XINT, "OVERFLOW_is_left", 73 }, + { XFLT, "OVERFLOW_lat_sign", 73 }, + { XINT, "OVERFLOW_jett_is_acf", 1 }, + { XINT, "OVERFLOW_collective_en", 1 }, + { XINT, "OVERFLOW_is_flying_stab", 1 }, + { XFLT, "OVERFLOW_dummy4", 7 }, + { XFLT, "OVERFLOW_diff_thro_ptch", 1 }, + { XFLT, "OVERFLOW_diff_thro_roll", 1 }, + { XINT, "OVERFLOW_phase_roll_tvect_in_at_90", 1 }, + { XINT, "OVERFLOW_phase_roll_tvect_in_at_00", 1 }, + { XINT, "OVERFLOW_phase_hdng_tvect_in_at_90", 1 }, + { XINT, "OVERFLOW_phase_hdng_tvect_in_at_00", 1 }, + { XINT, "OVERFLOW_has_asi_set", 1 }, + { XINT, "OVERFLOW_has_hdg_set", 1 }, + { XINT, "OVERFLOW_has_alt_set", 1 }, + { XFLT, "OVERFLOW_ASlo_the_V", 1 }, + { XFLT, "OVERFLOW_ASlo_psi_V", 1 }, + { XFLT, "OVERFLOW_ASlo_phi_V", 1 }, + { XFLT, "OVERFLOW_AShi_the_V", 1 }, + { XFLT, "OVERFLOW_AShi_psi_V", 1 }, + { XFLT, "OVERFLOW_AShi_phi_V", 1 }, + { XFLT, "OVERFLOW_spo1_vmax", 1 }, + { XFLT, "OVERFLOW_max_boost_pas", 1 }, + { XFLT, "OVERFLOW_min_trim_elev", 1 }, + { XFLT, "OVERFLOW_max_trim_elev", 1 }, + { XFLT, "OVERFLOW_min_trim_ailn", 1 }, + { XFLT, "OVERFLOW_max_trim_ailn", 1 }, + { XFLT, "OVERFLOW_min_trim_rudd", 1 }, + { XFLT, "OVERFLOW_max_trim_rudd", 1 }, + { XFLT, "OVERFLOW_lan_lite_psi_ref", 1 }, + { XINT, "OVERFLOW_has_mixture", 1 }, + { XFLT, "OVERFLOW_TR", 73 }, + { XINT, "OVERFLOW_has_gear", 1 }, + { XINT, "OVERFLOW_cus_non_lin", 50 }, + { XFLT, "OVERFLOW_cus_doub_val", 50 }, + { XINT, "OVERFLOW_beaconEQ", 1 }, + { XINT, "OVERFLOW_has_knots_mach", 1 }, + { XFLT, "OVERFLOW_elev_trim_speedrat", 1 }, + { XFLT, "OVERFLOW_ailn_trim_speedrat", 1 }, + { XFLT, "OVERFLOW_rudd_trim_speedrat", 1 }, + { XFLT, "OVERFLOW_disp_rat", 1 }, + { XFLT, "OVERFLOW_exhaust_rat", 1 }, + { XINT, "OVERFLOW_lo_speed_is_position", 1 }, + { XFLT, "OVERFLOW_ASlo_max_the", 1 }, + { XFLT, "OVERFLOW_ASlo_the_k", 1 }, + { XFLT, "OVERFLOW_ASlo_max_phi", 1 }, + { XFLT, "OVERFLOW_ASlo_phi_k", 1 }, + { XINT, "OVERFLOW_is_ducted", 8 }, + { XFLT, "OVERFLOW_the_wpn_att", 24 }, + { XFLT, "OVERFLOW_psi_wpn_att", 24 }, + { XFLT, "OVERFLOW_big_panel_pix_default", 1 }, + { XFLT, "OVERFLOW_HUD_ctr_y", 9 }, + { XINT, "OVERFLOW_spo2", 730 }, + { XFLT, "OVERFLOW_spo2_elR", 73 }, + { XFLT, "OVERFLOW_spo2_elT", 73 }, + { XFLT, "OVERFLOW_spo2_cratR", 1 }, + { XFLT, "OVERFLOW_spo2_cratT", 1 }, + { XFLT, "OVERFLOW_spo2_up", 1 }, + { XFLT, "OVERFLOW_spo2_vmax", 1 }, + { XFLT, "OVERFLOW_ail1_vmax", 1 }, + { XFLT, "OVERFLOW_roll_to_eng_spo1", 1 }, + { XFLT, "OVERFLOW_roll_to_eng_spo2", 1 }, + { XFLT, "OVERFLOW_dummy2", 73 }, + { XFLT, "OVERFLOW_EPR_max", 1 }, + { XINT, "OVERFLOW_sweep_with_vect_EQ", 1 }, + { XINT, "OVERFLOW_old_cus_layers", 1 }, + { XINT, "OVERFLOW_has_litemap_tex_2", 1 }, + { XFLT, "OVERFLOW_disc_tilt_elev", 1 }, + { XFLT, "OVERFLOW_disc_tilt_ailn", 1 }, + { XFLT, "OVERFLOW_lan_lite_psi_off", 1 }, + { XFLT, "OVERFLOW_lan_lite_the_off", 1 }, + { XFLT, "OVERFLOW_inertia_rat_prop", 1 }, + { XFLT, "OVERFLOW_fuel_intro_time_jet", 1 }, + { XFLT, "OVERFLOW_tire_mi", 73 }, + { XFLT, "OVERFLOW_vect_min_nace", 1 }, + { XFLT, "OVERFLOW_vect_max_nace", 1 }, + { XINT, "OVERFLOW_manual_rad_gyr", 1 }, + { XFLT, "OVERFLOW_max_ITT_C", 1 }, + { XFLT, "OVERFLOW_max_EGT_C", 1 }, + { XFLT, "OVERFLOW_fuel_intro_time_prop", 1 }, + { XFLT, "OVERFLOW_spool_time_jet", 1 }, + { XFLT, "OVERFLOW_takeoff_trim", 1 }, + { XFLT, "OVERFLOW_average_MAC", 1 }, + { XINT, "OVERFLOW_custom_autopilot", 1 }, + { XFLT, "OVERFLOW_ott_asi_ratio", 1 }, + { XFLT, "OVERFLOW_ott_asi_sec_into_future", 1 }, + { XFLT, "OVERFLOW_ott_asi_kts_off_for_full_def", 1 }, + { XFLT, "OVERFLOW_ott_phi_ratio", 1 }, + { XFLT, "OVERFLOW_ott_phi_sec_into_future", 1 }, + { XFLT, "OVERFLOW_ott_phi_deg_off_for_full_def", 1 }, + { XFLT, "OVERFLOW_ott_phi_sec_to_tune", 1 }, + { XFLT, "OVERFLOW_ott_def_sec_into_future", 1 }, + { XFLT, "OVERFLOW_ott_def_dot_off_for_full_def", 1 }, + { XFLT, "OVERFLOW_ott_def_sec_to_tune", 1 }, + { XFLT, "OVERFLOW_ott_the_ratio", 1 }, + { XFLT, "OVERFLOW_ott_the_sec_into_future", 1 }, + { XFLT, "OVERFLOW_ott_the_deg_off_for_full_def", 1 }, + { XFLT, "OVERFLOW_ott_the_sec_to_tune", 1 }, + { XINT, "OVERFLOW_xint_overflow", 206 }, + { XCHR, "OVERFLOW_is_hm", 1 }, + { XCHR, "OVERFLOW_is_ga", 1 }, + { XCHR, "OVERFLOW_ICAO", 40 }, + { XCHR, "OVERFLOW_xchr_overflow", 958 }, + { XCHR, "end_of_data", 1 }, + + { XEOF, NULL, 0 } + +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_DEF_PROTO_H +#define _IMP_ACF_DEF_PROTO_H + +#include + +typedef enum { + XEOF, + XCHR, + XINT, + XFLT +} AcfType; + +typedef struct { + AcfType type; + gchar *name; + guint32 num; + gchar *xchr; + gint32 *xint; + G3DFloat *xflt; +} AcfValue; + +typedef struct { + AcfType type; + gchar *description; + guint32 num; +} AcfDef; + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include "imp_acf_detect.h" +#include "imp_acf_def_acf603.h" +#include "imp_acf_def_acf625.h" +#include "imp_acf_def_acf630.h" +#include "imp_acf_def_acf640.h" +#include "imp_acf_def_acf651.h" +#include "imp_acf_def_acf700.h" +#include "imp_acf_def_acf740.h" + +typedef struct { + goffset size; + guint32 vmajor; + guint32 vminor; + const AcfDef *def; +} AcfDetectInfo; + +static AcfDetectInfo acf_detect_info[] = { + { 433337, 6, 3, acf_def_acf603 }, + { 433693, 6, 25, acf_def_acf625 }, + { 453981, 6, 30, acf_def_acf630 }, + { 454977, 6, 40, acf_def_acf640 }, + { 454985, 6, 51, acf_def_acf651 }, + { 646626, 7, 0, acf_def_acf700 }, + { 647101, 7, 40, acf_def_acf740 }, + { 0, 0, 0, NULL } +}; + +const AcfDef *acf_detect_version(AcfGlobalData *global) +{ + gint32 i; + + for(i = 0; acf_detect_info[i].size > 0; i ++) { + if(g3d_stream_size(global->stream) == acf_detect_info[i].size) { +#if DEBUG > 0 + g_debug("ACF: version %d.%02d detected", + acf_detect_info[i].vmajor, acf_detect_info[i].vminor); +#endif + return acf_detect_info[i].def; + } + } + + for(i = 0; acf_detect_info[i].size > 0; i ++) + if(acf_detect_info[i].size > g3d_stream_size(global->stream)) { +#if DEBUG > 0 + g_debug("ACF: falling back to version %d.%02d", + acf_detect_info[i].vmajor, acf_detect_info[i].vminor); +#endif + return acf_detect_info[i].def; + } + + /* FIXME: return 7.40 for models newer than that */ + + g_warning("ACF: could not detect version"); + return NULL; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef IMP_ACF_DETECT_H +#define IMP_ACF_DETECT_H + +#include "imp_acf.h" +#include "imp_acf_def_proto.h" + +const AcfDef *acf_detect_version(AcfGlobalData *global); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include +#include +#include + +#include "imp_acf_airfoil.h" + +G3DObject *acf_wing(G3DMaterial *material, const gchar *name, + G3DFloat *msweep, G3DFloat *mdihed, G3DFloat *mtrans, + G3DFloat *vrt, G3DFloat *vtp, + AcfAirfoil *aflrt, AcfAirfoil *afltp, + G3DFloat wrt, G3DFloat wtp, G3DFloat lf) +{ + G3DObject *object; + G3DFace *face; + guint32 nverts; + gint32 i; + G3DFloat vec[3]; + + nverts = aflrt->vertex_count; + + object = g_new0(G3DObject, 1); + object->name = g_strdup(name); + object->vertex_count = nverts * 2; + object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3); + + /* vertices */ + for(i = 0; i < nverts; i ++) { + /* wing root */ + vec[2] = aflrt->vertex_data[i * 2 + 0] * wrt; + vec[1] = aflrt->vertex_data[i * 2 + 1] * wrt; + vec[0] = 0.0; + g3d_vector_transform(vec, vec + 1, vec + 2, mdihed); + g3d_vector_transform(vec, vec + 1, vec + 2, mtrans); + memcpy(object->vertex_data + i * 3, vec, sizeof(vec)); + + /* wing tip */ + vec[2] = afltp->vertex_data[i * 2 + 0] * wtp; + vec[1] = afltp->vertex_data[i * 2 + 1] * wtp; + vec[0] = 0.0; + g3d_vector_transform(vec, vec + 1, vec + 2, mdihed); + g3d_vector_transform(vec, vec + 1, vec + 2, mtrans); + vec[0] += lf * vtp[0]; + vec[1] += lf * vtp[1]; + vec[2] += lf * vtp[2]; + memcpy(object->vertex_data + (i + nverts) * 3, vec, sizeof(vec)); + } + /* faces */ + for(i = 0; i < (nverts - 1); i ++) { + face = g3d_face_new_tri(material, i + 1, i, i + nverts); + object->faces = g_slist_prepend(object->faces, face); + face = g3d_face_new_tri(material, i + 1, i + nverts + 1, i + nverts); + object->faces = g_slist_prepend(object->faces, face); + } + + return object; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_ACF_WING_H +#define _IMP_ACF_WING_H + +#include + +#include "imp_acf_airfoil.h" + +G3DObject *acf_wing(G3DMaterial *material, const gchar *name, + G3DFloat *msweep, G3DFloat *mdihed, G3DFloat *mtrans, + G3DFloat *vrt, G3DFloat *vtp, + AcfAirfoil *aflrt, AcfAirfoil *afltp, + G3DFloat wrt, G3DFloat wtp, G3DFloat lf); + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_ar/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_ar +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_ar_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_ar_la_OBJECTS = imp_ar.lo imp_ar_decompress.lo imp_ar_dof.lo \ + imp_ar_carini.lo +imp_ar_la_OBJECTS = $(am_imp_ar_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_ar_la_SOURCES) +DIST_SOURCES = $(imp_ar_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_ar.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_ar_la_SOURCES = imp_ar.c imp_ar.h \ + imp_ar_decompress.c imp_ar_decompress.h \ + imp_ar_dof.c imp_ar_dof.h \ + imp_ar_carini.c imp_ar_carini.h + +imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_ar.la: $(imp_ar_la_OBJECTS) $(imp_ar_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_ar_la_OBJECTS) $(imp_ar_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_ar.Plo +include ./$(DEPDIR)/imp_ar_carini.Plo +include ./$(DEPDIR)/imp_ar_decompress.Plo +include ./$(DEPDIR)/imp_ar_dof.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_ar.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_ar_la_SOURCES = imp_ar.c imp_ar.h \ + imp_ar_decompress.c imp_ar_decompress.h \ + imp_ar_dof.c imp_ar_dof.h \ + imp_ar_carini.c imp_ar_carini.h +imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in new file mode 100644 index 0000000..1f67984 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in @@ -0,0 +1,517 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_ar +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_ar_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_ar_la_OBJECTS = imp_ar.lo imp_ar_decompress.lo imp_ar_dof.lo \ + imp_ar_carini.lo +imp_ar_la_OBJECTS = $(am_imp_ar_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_ar_la_SOURCES) +DIST_SOURCES = $(imp_ar_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_ar.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_ar_la_SOURCES = imp_ar.c imp_ar.h \ + imp_ar_decompress.c imp_ar_decompress.h \ + imp_ar_dof.c imp_ar_dof.h \ + imp_ar_carini.c imp_ar_carini.h + +imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_ar.la: $(imp_ar_la_OBJECTS) $(imp_ar_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_ar_la_OBJECTS) $(imp_ar_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_carini.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_decompress.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_dof.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include +#include + +#include +#include +#include +#include + +#include "imp_ar.h" +#include "imp_ar_decompress.h" +#include "imp_ar_dof.h" +#include "imp_ar_carini.h" + +static GSList *ar_read_directory(G3DStream *stream); +static G3DObject *ar_load_subfile(G3DContext *context, G3DModel *model, + G3DStream *stream, const gchar *subfile); + +/*****************************************************************************/ +/* plugin interface */ + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer plugin_data) +{ + GSList *dir, *item; + GHashTable *carini; + G3DMaterial *material; + G3DObject *object; + gchar *mname; + G3DFloat x, y, z; + + setlocale(LC_NUMERIC, "C"); + + /* default material */ + material = g3d_material_new(); + material->name = g_strdup("default material"); + model->materials = g_slist_append(model->materials, material); + + if(g_strcasecmp(stream->uri + (strlen(stream->uri) - 4), ".dof") == 0) { + /* single DOF file */ + ar_dof_load(context, model, stream); + } else { + /* compressed AR archive */ + carini = ar_carini_load(); + + /* load directory */ + dir = ar_read_directory(stream); + + /* decompress files */ + for(item = dir; item != NULL; item = item->next) + ar_decompress_to_file(stream, (ArDirEntry *)item->data); + + /* load body */ + mname = g_hash_table_lookup(carini, "body.model.file"); + ar_load_subfile(context, model, stream, mname); + /* steering wheel */ + mname = g_hash_table_lookup(carini, "steer.model.file"); + if(mname != NULL) + { + printf("D: steering wheel (%s)\n", mname); + object = ar_load_subfile(context, model, stream, mname); + ar_carini_get_position(carini, "steer", &x, &y, &z); + object->transformation = g_new0(G3DTransformation, 1); + g3d_matrix_identity(object->transformation->matrix); + g3d_matrix_translate(x, y, z, object->transformation->matrix); + } + + /* load wheel 0 */ + mname = g_hash_table_lookup(carini, "wheel0~wheel_front.model.file"); + if(mname != NULL) + { + printf("D: loading wheel 0 (%s)\n", mname); + object = ar_load_subfile(context, model, stream, mname); + x = ar_carini_get_float(carini, "susp0~susp_front.x"); + y = ar_carini_get_float(carini, "susp_front.y") - + ar_carini_get_float(carini, "wheel_front.radius"); + z = ar_carini_get_float(carini, "susp_front.z"); + object->transformation = g_new0(G3DTransformation, 1); + g3d_matrix_identity(object->transformation->matrix); + g3d_matrix_translate(x, y, z, object->transformation->matrix); + } + + ar_carini_free(carini); + } + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("Racer models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("ar:dof", ":", 0); +} + +/*****************************************************************************/ + +static GSList *ar_read_directory(G3DStream *stream) +{ + ArDirEntry *dirent; + GSList *list = NULL; + guint32 fsize, dpos; + gint32 nbytes; + gchar buffer[128]; + + g3d_stream_seek(stream, -4, G_SEEK_END); + fsize = g3d_stream_tell(stream); + dpos = g3d_stream_read_int32_le(stream); + + /* start of directory */ + g3d_stream_seek(stream, dpos, G_SEEK_SET); + nbytes = fsize - dpos; +#if DEBUG > 0 + printf("D: AR: directory @ 0x%08x, %d bytes\n", dpos, nbytes); +#endif + + while(nbytes > 0) { + dirent = g_new0(ArDirEntry, 1); + list = g_slist_append(list, dirent); + + nbytes -= g3d_stream_read_cstr(stream, buffer, 127); + dirent->name = g_strdup(buffer); + dirent->offset = g3d_stream_read_int32_le(stream); + dirent->size = g3d_stream_read_int32_le(stream); + nbytes -= 8; + +#if DEBUG > 0 + printf("D: AR: * %s @ 0x%08x, %d bytes\n", + dirent->name, dirent->offset, dirent->size); +#endif + } + + return list; +} + +static G3DObject *ar_load_subfile(G3DContext *context, G3DModel *model, + G3DStream *stream, const gchar *subfile) +{ + G3DStream *substream; + G3DObject *o; + + if(subfile == NULL) + return NULL; + + substream = g3d_stream_open_file(subfile, "rb"); + if(substream == NULL) + return NULL; + + o = ar_dof_load(context, model, substream); + g3d_stream_close(substream); + + return o; +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_AR_H +#define _IMP_AR_H + +typedef struct { + gchar *name; + guint32 offset; + guint32 size; +} ArDirEntry; + +#endif /* _IMP_AR_H */ + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#define _ISOC99_SOURCE 1 /* strtof() */ + +#include +#include +#include +#include +#include + +#define CARINI_IN_VAR 1 +#define CARINI_IN_VALUE 2 +#define CARINI_IN_COMMENT 3 + +static gchar *ar_carini_getpath(GQueue *queue) +{ + gchar *tmp, *path = NULL; + gint32 i; + + for(i = 0; i < g_queue_get_length(queue); i ++) + { + if(path == NULL) + path = g_strdup((gchar *)g_queue_peek_nth(queue, i)); + else + { + tmp = g_strdup_printf("%s.%s", + (gchar *)g_queue_peek_nth(queue, i), path); + g_free(path); + path = tmp; + } + } + + return path; +} + +GHashTable *ar_carini_load(void) +{ + GHashTable *ht; + GQueue *q; + FILE *f; + gchar var[256], *varp; /* section or variable */ + gchar val[256], *valp; /* value */ + gchar *tmps, *varname; + guint32 in = CARINI_IN_VAR; + gint32 c; + + f = fopen("car.ini", "r"); + if(f == NULL) + f = fopen("Car.ini", "r"); + + if(f == NULL) + { + g_error("failed to read 'car.ini'\n"); + return NULL; + } + + ht = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); + if(ht == NULL) + { + fclose(f); + g_error("could not create hash table"); + return NULL; + } + + q = g_queue_new(); + + valp = val; + memset(val, 0, 256); + varp = var; + memset(var, 0, 256); + + while(!feof(f)) + { + c = fgetc(f); + switch(c) + { + case '\0': + case EOF: + break; + + case '{': + /* push section */ + g_queue_push_head(q, g_strdup(var)); + + in = CARINI_IN_VAR; + varp = var; + memset(var, 0, 256); + break; + + case '}': + /* pop section */ + tmps = (gchar *)g_queue_pop_head(q); + g_free(tmps); + + in = CARINI_IN_VAR; + varp = var; + memset(var, 0, 256); + break; + + case ';': + in = CARINI_IN_COMMENT; + break; + + case '=': + if(in == CARINI_IN_VAR) + { + in = CARINI_IN_VALUE; + valp = val; + memset(val, 0, 256); + } + break; + + case '\n': + case '\r': + if(in == CARINI_IN_VALUE) + { + tmps = ar_carini_getpath(q); + if(tmps) + { + varname = g_strdup_printf("%s.%s", tmps, var); + g_free(tmps); + } + else + varname = g_strdup(var); + + /* update hash table */ + g_hash_table_insert(ht, varname, g_strdup(val)); +#if DEBUG > 2 + printf("D: %s = %s\n", varname, val); +#endif + + in = CARINI_IN_VAR; + varp = var; + memset(var, 0, 256); + } + else if(in == CARINI_IN_COMMENT) + { + in = CARINI_IN_VAR; + } + break; + + case ' ': + case '\t': + if(in == CARINI_IN_VALUE) + { + *valp = c; + valp ++; + } + break; + + default: + if(in == CARINI_IN_VALUE) + { + *valp = c; + valp ++; + } + else if(in == CARINI_IN_VAR) + { + *varp = c; + varp ++; + } + break; + } /* switch(c) */ + } /* !feof(f) */ + + /* clean up */ + g_queue_free(q); + + return ht; +} + +void ar_carini_free(GHashTable *ht) +{ + g_hash_table_destroy(ht); +} + +G3DFloat ar_carini_get_float(GHashTable *ht, gchar *path) +{ + gchar *value; + G3DFloat valf; + + value = (gchar *)g_hash_table_lookup(ht, path); + if(value == NULL) + return 0.0; + + valf = strtof(value, NULL); + return valf; +} + +gboolean ar_carini_get_position(GHashTable *ht, gchar *prefix, + G3DFloat *x, G3DFloat *y, G3DFloat *z) +{ + gchar *path, *value; + + /* x */ + path = g_strdup_printf("%s.x", prefix); + value = (gchar *)g_hash_table_lookup(ht, path); + if(value) + *x = strtof(value, NULL); + else + *x = 0.0; + g_free(path); + + /* y */ + path = g_strdup_printf("%s.y", prefix); + value = (gchar *)g_hash_table_lookup(ht, path); + if(value) + *y = strtof(value, NULL); + else + *y = 0.0; + g_free(path); + + /* z */ + path = g_strdup_printf("%s.z", prefix); + value = (gchar *)g_hash_table_lookup(ht, path); + if(value) + *z = strtof(value, NULL); + else + *z = 0.0; + g_free(path); + +#if DEBUG > 0 + printf("D: position for '%s': %.2f, %.2f, %.2f\n", prefix, *x, *y, *z); +#endif + + return TRUE; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_AR_CARINI_H +#define _IMP_AR_CARINI_H + +#include + +GHashTable *ar_carini_load(void); +void ar_carini_free(GHashTable *ht); +G3DFloat ar_carini_get_float(GHashTable *ht, gchar *path); +gboolean ar_carini_get_position(GHashTable *ht, gchar *prefix, + G3DFloat *x, G3DFloat *y, G3DFloat *z); + +#endif /* _IMP_AR_CARINI_H */ + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include +#include + +#include "imp_ar.h" + +#define AR_FLAG_COPIED 0x80 +#define AR_FLAG_COMPRESS 0x40 + +guint8 *ar_decompress_chunk(guint8 *src, guint16 srcsize, guint16 *dstsize) +{ + guint8 *dst = NULL, bit = 16; + gint32 i, j = 0, k, pos, size; + guint16 cmd; + +#if DEBUG > 2 + printf("D: decompressing %d bytes chunk\n", srcsize); +#endif + + if(src[0] == AR_FLAG_COPIED) + { + *dstsize = srcsize - 1; + dst = g_new0(guint8, *dstsize); + memcpy(dst, src + 1, *dstsize); + return dst; + } + + *dstsize = 0; + cmd = (src[1] << 8) + src[2]; + for(i = 3; i < srcsize;) + { + if(bit == 0) + { + /* get new command */ + cmd = (src[i] << 8) + src[i + 1]; + i += 2; + bit = 16; + } + + if(cmd & 0x8000) + { + pos = (src[i] << 4) + (src[i + 1] >> 4); + i ++; + if(pos != 0) + { + /* copy known chunk */ + size = (src[i] & 0xF) + 3; + *dstsize += size; + dst = g_realloc(dst, *dstsize); + i ++; + for(k = 0; k < size; k ++) + dst[j + k] = dst[j - pos + k]; + j += size; + } + else + { + /* RLE style... */ + size = (src[i] << 8) + src[i + 1] + 16; + *dstsize += size; + dst = g_realloc(dst, *dstsize); + i += 2; + for(k = 0; k < size; k ++) + dst[j + k] = src[i]; + i ++; + j += size; + } + } + else + { + /* plain copy */ + *dstsize += 1; + dst = g_realloc(dst, *dstsize); + dst[j] = src[i]; + i ++; + j ++; + } + + cmd <<= 1; + bit --; + } + + return dst; +} + +gboolean ar_decompress_to_file(G3DStream *stream, ArDirEntry *dirent) +{ + FILE *o; + gchar cmd; + guint32 size; + guint16 srcsize, dstsize; + guint8 *src, *dst; + + o = fopen(dirent->name, "wb"); + if(o == NULL) { + g_warning("failed to write to '%s'", dirent->name); + return FALSE; + } + + /* seek to file start */ + g3d_stream_seek(stream, dirent->offset, G_SEEK_SET); + + /* skip tags */ + do { + cmd = g3d_stream_read_int8(stream); + if(cmd != 'D') { + size = g3d_stream_read_int32_le(stream); + g3d_stream_skip(stream, size); + } + } while(cmd != 'D'); + +#if DEBUG > 2 + printf("D: starting decompression part\n"); +#endif + + /* decompress stuff */ + while(1) { + srcsize = g3d_stream_read_int16_le(stream); + if(srcsize == 0) + break; + + src = g_new0(guint8, srcsize); + g3d_stream_read(stream, src, srcsize); + dst = ar_decompress_chunk(src, srcsize, &dstsize); + + if(dstsize > 0) { + fwrite(dst, 1, dstsize, o); + g_free(dst); + } + + g_free(src); + } + + fclose(o); + + return TRUE; +} + + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_AR_DECOMPRESS_H +#define _IMP_AR_DECOMPRESS_H + +#include + +gboolean ar_decompress_to_file(G3DStream *stream, ArDirEntry *dirent); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include +#include +#include + +gchar *ar_dof_read_string(G3DStream *stream, gint32 *dlen) +{ + gint32 len; + gchar *text; + + len = g3d_stream_read_int16_le(stream); + *dlen -= 2; + + text = g_new0(gchar, len + 1); + g3d_stream_read(stream, text, len); + *dlen -= len; + + return text; +} + +G3DMaterial *ar_dof_load_mat(G3DContext *context, G3DModel *model, + G3DStream *stream) +{ + G3DMaterial *material; + gint32 id, len = 0, dlen, i, ntex, trans = 0, blend = 0; + gchar *tmp; + + id = g3d_stream_read_int32_be(stream); + if(id != G3D_IFF_MKID('M','A','T','0')) + return NULL; + + material = g3d_material_new(); + + dlen = g3d_stream_read_int32_le(stream); + do { + id = g3d_stream_read_int32_be(stream); + if(id != G3D_IFF_MKID('M','E','N','D')) + len = g3d_stream_read_int32_le(stream); + + switch(id) { + case G3D_IFF_MKID('M','E','N','D'): + break; + + case G3D_IFF_MKID('M','H','D','R'): + material->name = ar_dof_read_string(stream, &dlen); + tmp = ar_dof_read_string(stream, &dlen); + g_free(tmp); + break; + + case G3D_IFF_MKID('M','C','O','L'): + /* ambient */ + material->r = g3d_stream_read_float_le(stream); + material->g = g3d_stream_read_float_le(stream); + material->b = g3d_stream_read_float_le(stream); + material->a = g3d_stream_read_float_le(stream); + dlen -= 16; + /* diffuse */ + g3d_stream_skip(stream, 16); + dlen -= 16; + /* specular */ + material->specular[0] = g3d_stream_read_float_le(stream); + material->specular[1] = g3d_stream_read_float_le(stream); + material->specular[2] = g3d_stream_read_float_le(stream); + material->specular[3] = g3d_stream_read_float_le(stream); + dlen -= 16; + /* emission */ + g3d_stream_skip(stream, 16); + dlen -= 16; + /* shininess */ + material->shininess = g3d_stream_read_float_le(stream); + dlen -= 4; + break; + + case G3D_IFF_MKID('M','T','E','X'): + ntex = g3d_stream_read_int32_le(stream); + dlen -= 4; + for(i = 0; i < ntex; i ++) { + tmp = ar_dof_read_string(stream, &dlen); + if(i == 0) { + material->tex_image = + g3d_texture_load_cached(context, model, tmp); + if(material->tex_image) + material->tex_image->tex_id = g_str_hash(tmp); + } + g_free(tmp); + } + break; + + case G3D_IFF_MKID('M','T','R','A'): + /* transparency */ + trans = g3d_stream_read_int32_le(stream); + /* blend mode */ + blend = g3d_stream_read_int32_le(stream); + + printf("D: MTRA: %s: trans: 0x%04x, blend: 0x%04x\n", + (material->name ? material->name : "unnamed"), + trans, blend); + + dlen -= 8; + break; + + case G3D_IFF_MKID('M','C','F','L'): + /* creation flags */ + g3d_stream_read_int32_le(stream); + dlen -= 4; + break; + + case G3D_IFF_MKID('M','U','V','W'): + /* u offset */ + g3d_stream_read_int32_le(stream); + /* v offset */ + g3d_stream_read_int32_le(stream); + dlen -= 8; + + /* u tiling */ + g3d_stream_read_int32_le(stream); + /* v tiling */ + g3d_stream_read_int32_le(stream); + dlen -= 8; + + /* angle */ + g3d_stream_read_float_le(stream); + /* blur */ + g3d_stream_read_float_le(stream); + /* blur offset */ + g3d_stream_read_int32_le(stream); + dlen -= 12; + break; + + default: + g3d_stream_skip(stream, len); + dlen -= len; + break; + } + } + while((dlen > 0) && (id != G3D_IFF_MKID('M','E','N','D'))); + + if(material->tex_image != NULL) { + if(blend == 1) + material->tex_image->tex_env = G3D_TEXENV_BLEND; + else + material->tex_image->tex_env = G3D_TEXENV_DECAL; + } + + return material; +} + +G3DObject *ar_dof_load_obj(G3DContext *context, G3DModel *model, + G3DStream *stream) +{ + G3DObject *object, *pobj; + G3DFace *face; + G3DMaterial *material; + GSList *item; + gint32 id, len = 0, dlen, nverts, ntver, nnorm, nind, i, j, index; + G3DFloat *tex_vertices = NULL, *normals = NULL; + + id = g3d_stream_read_int32_be(stream); + dlen = g3d_stream_read_int32_le(stream); + + if(id != G3D_IFF_MKID('G','O','B','1')) { + g3d_stream_skip(stream, dlen); + return NULL; + } + + object = g_new0(G3DObject, 1); + object->name = g_strdup_printf("object @ 0x%08x", + (guint32)g3d_stream_tell(stream)); + + /* parent object for material references */ + pobj = (G3DObject *)g_slist_nth_data(model->objects, 0); + + /* default material */ + material = (G3DMaterial *)g_slist_nth_data(model->materials, 0); + + do { + id = g3d_stream_read_int32_be(stream); + if(id != G3D_IFF_MKID('G','E','N','D')) + len = g3d_stream_read_int32_le(stream); + + switch(id) { + case G3D_IFF_MKID('G','E','N','D'): + /* end of object */ + break; + + case G3D_IFF_MKID('G','H','D','R'): + /* object header */ + /* flags */ + i = g3d_stream_read_int32_le(stream); + printf("D: GHDR: flags = 0x%04X\n", i); + /* paint flags */ + i = g3d_stream_read_int32_le(stream); + printf("D: GHDR: paint flags = 0x%04X\n", i); + + /* material ref */ + i = g3d_stream_read_int32_le(stream); + material = g_slist_nth_data(pobj->materials, i); + if(material == NULL) + material = (G3DMaterial *)g_slist_nth_data( + model->materials, 0); + + dlen -= 12; + break; + + case G3D_IFF_MKID('V','E','R','T'): + /* vertices */ + nverts = g3d_stream_read_int32_le(stream); + +#if DEBUG > 2 + printf("D: %d vertices\n", nverts); +#endif + + dlen -= 4; + if(nverts > 0) { + object->vertex_count = nverts; + object->vertex_data = g_new0(G3DFloat, nverts * 3); + for(i = 0; i < nverts; i ++) { + for(j = 0; j < 3; j ++) + object->vertex_data[i * 3 + j] = + g3d_stream_read_float_le(stream); + dlen -= 12; + } + } + break; + + case G3D_IFF_MKID('N', 'O','R','M'): + /* normals */ + nnorm = g3d_stream_read_int32_le(stream); + normals = g_new0(G3DFloat, nnorm * 3); + dlen -= 4; + for(i = 0; i < nnorm; i ++) { + for(j = 0; j < 3; j ++) + normals[i * 3 + j] = g3d_stream_read_float_le(stream); + dlen -= 12; + } + break; + + case G3D_IFF_MKID('T', 'V','E','R'): + /* texture vertices */ + ntver = g3d_stream_read_int32_le(stream); + tex_vertices = g_new0(G3DFloat, ntver * 2); + dlen -= 4; + +#if DEBUG > 2 + printf("D: %d texture vertices @ 0x%08x\n", ntver, + (guint32)g3d_stream_tell(stream) - 12); +#endif + + for(i = 0; (i < ntver) && (len > 0); i ++) { + tex_vertices[i * 2 + 0] = g3d_stream_read_float_le(stream); + tex_vertices[i * 2 + 1] = + 1.0 - g3d_stream_read_float_le(stream); + dlen -= 8; + } + break; + + case G3D_IFF_MKID('B','R','S','T'): + /* bursts */ + i = g3d_stream_read_int32_le(stream); + dlen -= 4; + g3d_stream_skip(stream, i * 4); /* burstStart */ + g3d_stream_skip(stream, i * 4); /* burstCount */ + g3d_stream_skip(stream, i * 4); /* burstMtlID */ + g3d_stream_skip(stream, i * 4); /* burstVperP */ + dlen -= (4 * 4 * i); + break; + + case G3D_IFF_MKID('V','C','O','L'): + /* vertex colors */ + i = g3d_stream_read_int32_le(stream); + dlen -= 4; + g3d_stream_skip(stream, i * 4 * 3); + dlen -= (i * 4 * 3); + break; + + case G3D_IFF_MKID('I','N','D','I'): + /* indices */ + nind = g3d_stream_read_int32_le(stream); + dlen -= 4; + len -= 4; + +#if DEBUG > 2 + printf("D: %d indices in %d bytes\n", nind, len); +#endif + + for(i = 0; i < nind; i += 3) { + face = g_new0(G3DFace, 1); + face->material = material; + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + + for(j = 0; j < 3; j ++) + face->vertex_indices[j] = + g3d_stream_read_int16_le(stream); + dlen -= 6; + len -= 6; + + object->faces = g_slist_append(object->faces, face); + } + break; + + default: +#if DEBUG > 0 + printf("D: skipping tag '%c%c%c%c @ 0x%08x'\n", + (id << 24) & 0xFF, (id << 16) & 0xFF, + (id << 8) & 0xFF, id & 0xFF, + (guint32)g3d_stream_tell(stream)); +#endif + g3d_stream_skip(stream, len); + dlen -= len; + break; + } + } while((dlen > 0) && (id != G3D_IFF_MKID('G','E','N','D'))); + + /* fix faces with normals and texture vertices */ + for(item = object->faces; item != NULL; item = item->next) { + face = (G3DFace *)item->data; + + if(tex_vertices != NULL) { + face->tex_image = material->tex_image; + face->tex_vertex_count = 3; + face->tex_vertex_data = g_new0(G3DFloat, 3 * 2); + for(j = 0; j < 3; j ++) { + index = face->vertex_indices[j]; + face->tex_vertex_data[j * 2 + 0] = tex_vertices[index * 2 + 0]; + face->tex_vertex_data[j * 2 + 1] = tex_vertices[index * 2 + 1]; + } + if(face->tex_image != NULL) + face->flags |= G3D_FLAG_FAC_TEXMAP; + } + + if(normals != NULL) { + face->normals = g_new0(G3DFloat, 3 * 3); + for(j = 0; j < 3; j ++) { + index = face->vertex_indices[j]; + face->normals[j * 3 + 0] = normals[index * 3 + 0]; + face->normals[j * 3 + 1] = normals[index * 3 + 1]; + face->normals[j * 3 + 2] = normals[index * 3 + 2]; + } + face->flags |= G3D_FLAG_FAC_NORMALS; + } + } + + /* cleanup */ + if(tex_vertices != NULL) + g_free(tex_vertices); + + if(normals != NULL) + g_free(normals); + + return object; +} + +G3DObject *ar_dof_load(G3DContext *context, G3DModel *model, + G3DStream *stream) +{ + gint32 id, dlen, len = 0, nmat, nobj, i; + G3DObject *object, *cobj; + G3DMaterial *material; + + /* file is little-endian, but read IDs as big-endian to use + * G3D_IFF_MKID to compare */ + + id = g3d_stream_read_int32_be(stream); + if(id != G3D_IFF_MKID('D','O','F','1')) { + g_warning("%s is not a DOF1 file\n", stream->uri); + return NULL; + } + dlen = g3d_stream_read_int32_le(stream); + + object = g_new0(G3DObject, 1); + object->name = g_strdup(stream->uri); + model->objects = g_slist_append(model->objects, object); + + do { + id = g3d_stream_read_int32_be(stream); + if(id != G3D_IFF_MKID('E','D','O','F')) + len = g3d_stream_read_int32_le(stream); + dlen -= 8; + + switch(id) { + case G3D_IFF_MKID('E','D','O','F'): + /* end of DOF */ + break; + + case G3D_IFF_MKID('M','A','T','S'): + nmat = g3d_stream_read_int32_le(stream); + for(i = 0; i < nmat; i ++) { + material = ar_dof_load_mat(context, model, stream); + if(material) + object->materials = g_slist_append(object->materials, + material); + } + dlen -= len; + break; + + case G3D_IFF_MKID('G','E','O','B'): + nobj = g3d_stream_read_int32_le(stream); + for(i = 0; i < nobj; i ++) { + cobj = ar_dof_load_obj(context, model, stream); + if(cobj) + object->objects = + g_slist_append(object->objects, cobj); + } + dlen -= len; + break; + + default: + g_warning("DOF: unknown ID '%c%c%c%c' @ 0x%08x", + (id >> 24) & 0xFF, (id >> 16) & 0xFF, + (id >> 8) & 0xFF, id & 0xFF, + (guint32)g3d_stream_tell(stream) - 8); + g3d_stream_skip(stream, len); + dlen -= len; + break; + } + } while((dlen > 0) && + (id != G3D_IFF_MKID('E','D','O','F')) && + (!g3d_stream_eof(stream))); + + return object; +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_AR_DOF_H +#define _IMP_AR_DOF_H + +#include +#include +#include + +G3DObject *ar_dof_load(G3DContext *context, G3DModel *model, + G3DStream *stream); + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_ase/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_ase +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_ase_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_ase_la_OBJECTS = imp_ase.lo +imp_ase_la_OBJECTS = $(am_imp_ase_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_ase_la_SOURCES) +DIST_SOURCES = $(imp_ase_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_ase.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_ase_la_SOURCES = imp_ase.c +imp_ase_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_ase.la: $(imp_ase_la_OBJECTS) $(imp_ase_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_ase_la_OBJECTS) $(imp_ase_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_ase.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_ase.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_ase_la_SOURCES = imp_ase.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_ase +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_ase_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_ase_la_OBJECTS = imp_ase.lo +imp_ase_la_OBJECTS = $(am_imp_ase_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_ase_la_SOURCES) +DIST_SOURCES = $(imp_ase_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_ase.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_ase_la_SOURCES = imp_ase.c +imp_ase_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_ase.la: $(imp_ase_la_OBJECTS) $(imp_ase_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_ase_la_OBJECTS) $(imp_ase_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ase.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model) +{ + gchar line[2048], tmp[128], *s; + guint32 i, j, a, b, c, ab, bc, ca, mtlid, glid = 0, tvertcnt = 0, lnum = 0; + G3DVector x, y, z, *tverts = NULL; + G3DObject *object = NULL; + G3DMaterial *material; + G3DFace *face = NULL; + G3DMatrix rmatrix[16]; + + setlocale(LC_NUMERIC, "C"); + + while(g3d_stream_read_line(stream, line, 2048)) { + lnum ++; + g_strstrip(line); + +#if DEBUG > 4 + g_debug("ASE: %s", line); +#endif + + if(strncmp(line, "*GEOMOBJECT ", 12) == 0) + { + object = g_new0(G3DObject, 1); + object->name = g_strdup("(unnamed object)"); + + model->objects = g_slist_append(model->objects, object); + } + else if(strncmp(line, "*MATERIAL ", 10) == 0) + { + material = g3d_material_new(); + material->name = g_strdup_printf("material %d", + g_slist_length(model->materials)); + model->materials = g_slist_append(model->materials, material); + + if(sscanf(line, "*MATERIAL %u \"%s", &i, tmp) == 2) + { + tmp[strlen(tmp) - 1] = '\0'; +#if DEBUG > 2 + g_debug("ASE: material file: %s", tmp); +#endif + /* TODO: parse .fx file */ + s = g_strdup_printf("%.*s.jpg", ((int) strlen(tmp)) - 3, tmp); + material->tex_image = + g3d_texture_load_cached(context, model, s); + if(material->tex_image) + material->tex_image->tex_id = ++ glid; + g_free(s); + } + } + else if(strncmp(line, "*NODE_NAME ", 11) == 0) + { + if(object) + { + if(object->name) + g_free(object->name); + + object->name = g_strdup(line + 11); + } + } + else if(strncmp(line, "*MESH_NUMVERTEX ", 16) == 0) + { + if(sscanf(line, "*MESH_NUMVERTEX %u", &i) == 1) + { + if(object) + { + object->vertex_count = i; + object->vertex_data = g_new0(G3DFloat, i * 3); + } + } + } + else if(strncmp(line, "*MESH_VERTEX ", 13) == 0) + { + if(sscanf(line, "*MESH_VERTEX %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i, &x, &y, &z) == 4) + { + if(object && (i < object->vertex_count)) + { + object->vertex_data[i * 3 + 0] = x; + object->vertex_data[i * 3 + 1] = y; + object->vertex_data[i * 3 + 2] = z; + } + } + } + else if(strncmp(line, "*MESH_FACE ", 11) == 0) + { + if(object && (sscanf(line, "*MESH_FACE %u: A: %u B: %u C: %u " + "AB: %u BC: %u CA: %u *MESH_SMOOTHING %s *MESH_MTLID %u", + &i, &a, &b, &c, &ab, &bc, &ca, tmp, &mtlid) == 9)) + { + face = g_new0(G3DFace, 1); + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + face->vertex_indices[0] = a; + face->vertex_indices[1] = b; + face->vertex_indices[2] = c; + face->material = g_slist_nth_data(model->materials, mtlid); + if(face->material == NULL) + face->material = g_slist_nth_data(model->materials, 0); + if(face->material == NULL) { + face->material = g3d_material_new(); + face->material->name = g_strdup("(fallback material)"); + model->materials = g_slist_append(model->materials, + face->material); + } + + object->faces = g_slist_append(object->faces, face); + face = NULL; + } + } + else if(strncmp(line, "*MESH_FACENORMAL ", 17) == 0) + { + if(object && (sscanf(line, "*MESH_FACENORMAL %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, + &i, &x, &y, &z) == 4)) + { + face = g_slist_nth_data(object->faces, i); + if(face) + { + face->flags |= G3D_FLAG_FAC_NORMALS; + face->normals = g_new0(G3DFloat, 3 * 3); + for(j = 0; j < 3; j ++) + { + face->normals[j * 3 + 0] = x; + face->normals[j * 3 + 1] = y; + face->normals[j * 3 + 2] = z; + } + } + } + } + else if(strncmp(line, "*MESH_VERTEXNORMAL ", 19) == 0) + { + if(face && face->normals && (sscanf(line, + "*MESH_VERTEXNORMAL %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i, &x, &y, &z) == 4)) + { + for(j = 0; j < 3; j ++) + { + if(face->vertex_indices[j] == i) + { + face->normals[j * 3 + 0] = x; + face->normals[j * 3 + 1] = y; + face->normals[j * 3 + 2] = z; + } + } + } + } + else if(strncmp(line, "*MESH_NUMTVERTEX ", 17) == 0) + { + /* clear old tvertex data */ + if(tverts) + { + g_free(tverts); + tvertcnt = 0; + } + + if(sscanf(line, "*MESH_NUMTVERTEX %u", &tvertcnt) == 1) + tverts = g_new0(G3DFloat, tvertcnt * 2); + } + else if(strncmp(line, "*MESH_TVERT ", 12) == 0) + { + if(sscanf(line, "*MESH_TVERT %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i, &x, &y, &z) == 4) + { + if(i < tvertcnt) + { + tverts[i * 2 + 0] = x; + tverts[i * 2 + 1] = y; + } + } + } + else if(strncmp(line, "*MESH_TFACE ", 12) == 0) + { + if(object && (sscanf(line, "*MESH_TFACE %u %u %u %u", + &i, &a, &b, &c) == 4)) + { + face = g_slist_nth_data(object->faces, i); + if(face && face->material->tex_image && + (a < tvertcnt) && (b < tvertcnt) && (c < tvertcnt)) + { + face->flags |= G3D_FLAG_FAC_TEXMAP; + face->tex_image = face->material->tex_image; + face->tex_vertex_count = 3; + face->tex_vertex_data = g_new0(G3DFloat, 2 * 3); + face->tex_vertex_data[0 * 2 + 0] = tverts[a * 2 + 0]; + face->tex_vertex_data[0 * 2 + 1] = 1.0 - tverts[a * 2 + 1]; + face->tex_vertex_data[1 * 2 + 0] = tverts[b * 2 + 0]; + face->tex_vertex_data[1 * 2 + 1] = 1.0 - tverts[b * 2 + 1]; + face->tex_vertex_data[2 * 2 + 0] = tverts[c * 2 + 0]; + face->tex_vertex_data[2 * 2 + 1] = 1.0 - tverts[c * 2 + 1]; + } + } + } + if((lnum % 10) == 0) + g3d_context_update_progress_bar(context, + (G3DFloat)g3d_stream_tell(stream) / + (G3DFloat)g3d_stream_size(stream), TRUE); + } /* read line */ + + /* clean up */ + if(tverts) { + g_free(tverts); + tvertcnt = 0; + } + g3d_context_update_progress_bar(context, 0.0, FALSE); + + g3d_matrix_identity(rmatrix); + g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix); + g3d_model_transform(model, rmatrix); + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("ASCII Scene Exporter models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("ase", ":", 0); +} + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_blend/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_blend +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_blend_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_blend_la_OBJECTS = imp_blend.lo imp_blend_sdna.lo \ + imp_blend_read.lo imp_blend_callbacks.lo +imp_blend_la_OBJECTS = $(am_imp_blend_la_OBJECTS) +#am_imp_blend_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_blend_la_SOURCES) +DIST_SOURCES = $(imp_blend_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_blend.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_blend_la_SOURCES = imp_blend.c imp_blend_def.h \ + imp_blend_types.h imp_blend_chunks.h \ + imp_blend_sdna.c imp_blend_sdna.h \ + imp_blend_read.c imp_blend_read.h \ + imp_blend_callbacks.h imp_blend_callbacks.c + +imp_blend_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_blend/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_blend/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_blend.la: $(imp_blend_la_OBJECTS) $(imp_blend_la_DEPENDENCIES) + $(LINK) $(am_imp_blend_la_rpath) $(imp_blend_la_OBJECTS) $(imp_blend_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_blend.Plo +include ./$(DEPDIR)/imp_blend_callbacks.Plo +include ./$(DEPDIR)/imp_blend_read.Plo +include ./$(DEPDIR)/imp_blend_sdna.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_blend.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_blend_la_SOURCES = imp_blend.c imp_blend_def.h \ + imp_blend_types.h imp_blend_chunks.h \ + imp_blend_sdna.c imp_blend_sdna.h \ + imp_blend_read.c imp_blend_read.h \ + imp_blend_callbacks.h imp_blend_callbacks.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_blend +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_blend_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_blend_la_OBJECTS = imp_blend.lo imp_blend_sdna.lo \ + imp_blend_read.lo imp_blend_callbacks.lo +imp_blend_la_OBJECTS = $(am_imp_blend_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_blend_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_blend_la_SOURCES) +DIST_SOURCES = $(imp_blend_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_blend.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_blend_la_SOURCES = imp_blend.c imp_blend_def.h \ + imp_blend_types.h imp_blend_chunks.h \ + imp_blend_sdna.c imp_blend_sdna.h \ + imp_blend_read.c imp_blend_read.h \ + imp_blend_callbacks.h imp_blend_callbacks.c + +imp_blend_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_blend/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_blend/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_blend.la: $(imp_blend_la_OBJECTS) $(imp_blend_la_DEPENDENCIES) + $(LINK) $(am_imp_blend_la_rpath) $(imp_blend_la_OBJECTS) $(imp_blend_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_blend.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_blend_callbacks.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_blend_read.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_blend_sdna.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include +#include + +#include "imp_blend_def.h" +#include "imp_blend_types.h" +#include "imp_blend_sdna.h" +#include "imp_blend_read.h" +#include "imp_blend_chunks.h" + +static gboolean blend_read_file(BlendGlobal *global); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + gchar buf[BLEND_HEADER_SIZE + 1]; + guint32 flags = 0, version; + BlendGlobal *global; + + if(g3d_stream_read(stream, buf, BLEND_HEADER_SIZE) != BLEND_HEADER_SIZE) { + g_warning("Blend: %s: failed to read header", stream->uri); + return FALSE; + } + buf[BLEND_HEADER_SIZE] = '\0'; + if(strncmp(buf, "BLENDER", 7) != 0) { + g_warning("Blend: %s: not a blender file", stream->uri); + return FALSE; + } + if(buf[7] == '_') + flags |= FLAG_POINTERSIZE_4; + if(buf[8] == 'v') + flags |= FLAG_LITTLE_ENDIAN; + version = atoi(buf + 9); + + g_debug("Blend: version %.2f, %s endian, pointer size is %d", + version / 100.0, + (flags & FLAG_LITTLE_ENDIAN) ? "little" : "big", + (flags & FLAG_POINTERSIZE_4) ? 4 : 8); + + if(!(flags & FLAG_POINTERSIZE_4)) { + g_warning("Blend: 8-byte pointers are not implemented as I lack a " + "test file. Please send me one :)."); + return FALSE; + } + + global = g_new0(BlendGlobal, 1); + global->context = context; + global->stream = stream; + global->model = model; + global->flags = flags; + + blend_read_file(global); + + g_free(global); + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("Blender models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("blend", ":", 0); +} + +/*****************************************************************************/ + +static inline const BlendChunkInfo *blend_get_chunk_info(guint32 code, + guint32 oid) +{ + gint32 i; + + for(i = 0; blend_chunks[i].code != 0; i ++) + if((blend_chunks[i].code == code) && (blend_chunks[i].oid == oid)) + return &(blend_chunks[i]); + if(oid != 0) + return blend_get_chunk_info(code, 0); + return NULL; +} + +static gboolean blend_read_file(BlendGlobal *global) +{ + guint32 code, old, sdnanr, nr; + gsize len; + BlendLocal *local; + const BlendChunkInfo *cinfo; + const BlendSdnaStruct *sstruct; + gint i; + G3DObject *object = NULL; + G3DObject *grpobject = NULL; + guint32 object_id = 0; + + while(TRUE) { + code = blend_read_uint(global->stream, global->flags); + len = blend_read_uint(global->stream, global->flags); + if(code == MKID('E','N','D','B')) + return TRUE; + + old = blend_read_uint(global->stream, global->flags); + sdnanr = blend_read_uint(global->stream, global->flags); + nr = blend_read_uint(global->stream, global->flags); + + if((global->sdna == NULL) && (code != MKID('D','N','A','1'))) { + g3d_stream_skip(global->stream, len); + continue; + } + + cinfo = blend_get_chunk_info(code, (code == ID_DATA) ? object_id : 0); + if(cinfo == NULL) + g_warning("unknown chunk: %c%c%c%c", + blend_from_id(code, 0), blend_from_id(code, 1), + blend_from_id(code, 2), blend_from_id(code, 3)); + + g_debug("\\%c%c%c%c: %-20s - %8d bytes (0x%08x, %d, %d)", + blend_from_id(code, 0), blend_from_id(code, 1), + blend_from_id(code, 2), blend_from_id(code, 3), + cinfo ? cinfo->description : "(unknown)", + (int) len, old, sdnanr, nr); + + if(len == 0) + return FALSE; + + /* on non-DATA nodes a new object starts */ + if(code != ID_DATA) { + object_id = code; + } + + local = g_new0(BlendLocal, 1); + local->ndata = nr; + local->data = g_new0(BlendSdnaData *, nr); + + if(global->sdna) { + for(i = 0; i < nr; i ++) { + sstruct = blend_sdna_get_struct_by_id(global->sdna, sdnanr); + if(sstruct) { +#if DEBUG > BLEND_DEBUG_STRUCT + g_debug("|struct %s /* %d */", + sstruct->name, sstruct->size); +#endif + local->data[i] = blend_sdna_data_read(global->sdna, + sstruct, global, &len, 0); + } + } + } + + local->object = object; + local->grpobject = grpobject; + local->object_id = object_id; + local->len = len; + + if(cinfo && cinfo->callback) + if(!cinfo->callback(global, local)) + return FALSE; + + len = local->len; + object = local->object; + grpobject = local->grpobject; + + for(i = 0; i < local->ndata; i ++) + if(local->data[i]) + blend_sdna_data_free(local->data[i]); + g_free(local->data); + g_free(local); + + /* skip remaining data */ + g3d_stream_skip(global->stream, len); + } + + blend_sdna_cleanup(global->sdna); + return TRUE; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include +#include +#include + +#include "imp_blend_types.h" +#include "imp_blend_def.h" +#include "imp_blend_sdna.h" + +/* mesh data */ +gboolean blend_cb_DATA_ME(BlendGlobal *global, BlendLocal *local) +{ + G3DFace *face; + BlendSdnaPropData *spdata; + gchar *stmp; + gint32 i, j; + + if((local->ndata == 0) || (local->data[0] == NULL)) + return TRUE; + g_return_val_if_fail(local->object != NULL, FALSE); + + /* all structs in one DATA chunk have the same type */ + if(strcmp(local->data[0]->sstruct->name, "MVert") == 0) { + local->object->vertex_count = local->ndata; + local->object->vertex_data = g3d_vector_new(3, + local->object->vertex_count); + for(i = 0; i < local->ndata; i ++) { + spdata = blend_sdna_get_property(local->data[i], "co", T_FLOAT); + if(spdata) + for(j = 0; j < 3; j ++) + local->object->vertex_data[i * 3 + j] = spdata->fval[j]; + } + } else if(strcmp(local->data[0]->sstruct->name, "MFace") == 0) { + for(i = 0; i < local->ndata; i ++) { + face = g_new0(G3DFace, 1); + face->vertex_count = 4; + face->vertex_indices = g_new0(guint32, 4); + face->material = g_slist_nth_data(local->object->materials, 0); + local->object->faces = g_slist_prepend(local->object->faces, face); + for(j = 0; j < 4; j ++) { + stmp = g_strdup_printf("v%d", j); + spdata = blend_sdna_get_property(local->data[i], stmp, T_INT); + if(spdata) + face->vertex_indices[j] = spdata->ival[0]; + g_free(stmp); + } +#if DEBUG > 2 + g_debug("MFace: %03i (%02i, %02i, %02i, %02i)", i, + face->vertex_indices[0], face->vertex_indices[1], + face->vertex_indices[2], face->vertex_indices[3]); +#endif + spdata = blend_sdna_get_property(local->data[i], "mat_nr", T_CHAR); + /* TODO */ + } + } else { +#if DEBUG > 0 + for(i = 0; i < local->ndata; i ++) + blend_sdna_dump_data(local->data[i], 0); +#endif + } + return TRUE; +} + +/* struct DNA */ +gboolean blend_cb_DNA1(BlendGlobal *global, BlendLocal *local) +{ + if(global->sdna != NULL) + return TRUE; + global->sdna = blend_sdna_read_dna1(global->stream, + global->flags, local->len); + if(global->sdna == NULL) { + g_warning("Blend: failed to read DNA1, giving up..."); + return FALSE; + } + /* rewind stream to really read content */ + g3d_stream_seek(global->stream, BLEND_HEADER_SIZE, G_SEEK_SET); + local->len = 0; + return TRUE; +} + +static gchar *get_name_from_id(BlendSdnaData *sdata) +{ + BlendSdnaPropData *spdata, *spdata2; + gchar *name = NULL; + gint32 i; + + spdata = blend_sdna_get_property(sdata, "id", T_STRUCT); + if(spdata) { + spdata2 = blend_sdna_get_property(spdata->structval, "name", T_CHAR); + if(spdata2) { + name = g_new0(gchar, spdata2->sprop->nitems + 1); + for(i = 0; i < spdata2->sprop->nitems; i ++) + name[i] = spdata2->ival[i]; + } + } + return name; +} + +static G3DFloat get_float(BlendSdnaData *sdata, const gchar *var) +{ + BlendSdnaPropData *spdata; + spdata = blend_sdna_get_property(sdata, var, T_FLOAT); + if(spdata) + return spdata->fval[0]; + return 0.0; +} + +/* material */ +gboolean blend_cb_MA(BlendGlobal *global, BlendLocal *local) +{ + G3DMaterial *material; + + g_return_val_if_fail(local->data[0] != NULL, FALSE); + +#if DEBUG > 0 + blend_sdna_dump_data(local->data[0], 0); +#endif + + material = g3d_material_new(); + material->name = get_name_from_id(local->data[0]); + global->model->materials = g_slist_append(global->model->materials, + material); + material->r = get_float(local->data[0], "r"); + material->g = get_float(local->data[0], "g"); + material->b = get_float(local->data[0], "b"); + return TRUE; +} + +/* mesh */ +gboolean blend_cb_ME(BlendGlobal *global, BlendLocal *local) +{ + G3DObject *object; + G3DMaterial *material; + G3DVector v[3]; + BlendSdnaPropData *spdata; + gint32 i; + + g_return_val_if_fail(local->data[0] != NULL, FALSE); + +#if DEBUG > 0 + blend_sdna_dump_data(local->data[0], 0); +#endif + + object = g_new0(G3DObject, 1); + if(local->grpobject) + local->grpobject->objects = g_slist_append(local->grpobject->objects, + object); + else + global->model->objects = g_slist_append(global->model->objects, + object); + local->object = object; + material = g3d_material_new(); + material->name = g_strdup("(default material)"); + object->materials = g_slist_append(local->object->materials, material); + + /* name */ + object->name = get_name_from_id(local->data[0]); + + object->transformation = g_new0(G3DTransformation, 1); + g3d_matrix_identity(object->transformation->matrix); + + /* rotation */ + spdata = blend_sdna_get_property(local->data[0], "rot", T_FLOAT); + if(spdata) { + for(i = 0; i < 3; i ++) + v[i] = spdata->fval[i]; + g3d_matrix_rotate_xyz(v[0], v[1], v[2], + object->transformation->matrix); +#if DEBUG > 0 + g_debug("ME: rotate %f, %f, %f", v[0], v[1], v[2]); +#endif + } + /* size */ + spdata = blend_sdna_get_property(local->data[0], "size", T_FLOAT); + if(spdata) { + for(i = 0; i < 3; i ++) + v[i] = spdata->fval[i]; + g3d_matrix_scale(v[0], v[1], v[2], object->transformation->matrix); +#if DEBUG > 2 + g_debug("ME: scale %f, %f, %f", v[0], v[1], v[2]); +#endif + } + /* location */ + spdata = blend_sdna_get_property(local->data[0], "loc", T_FLOAT); + if(spdata) { + for(i = 0; i < 3; i ++) + v[i] = spdata->fval[i]; + g3d_matrix_translate(v[0], v[1], v[2], + object->transformation->matrix); +#if DEBUG > 2 + g_debug("ME: translate %f, %f, %f", v[0], v[1], v[2]); +#endif + } + return TRUE; +} + +gboolean blend_cb_OB(BlendGlobal *global, BlendLocal *local) +{ + G3DObject *object; + + g_return_val_if_fail(local->data[0] != NULL, FALSE); + +#if DEBUG > 0 + blend_sdna_dump_data(local->data[0], 0); +#endif + + object = g_new0(G3DObject, 1); + object->name = get_name_from_id(local->data[0]); + local->grpobject = object; + global->model->objects = g_slist_append(global->model->objects, object); + + return TRUE; +} + + 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_BLEND_CALLBACKS_H +#define _IMP_BLEND_CALLBACKS_H + +#include "imp_blend_types.h" + +gboolean blend_cb_DATA_ME(BlendGlobal *global, BlendLocal *local); + +gboolean blend_cb_DNA1(BlendGlobal *global, BlendLocal *local); + +gboolean blend_cb_MA(BlendGlobal *global, BlendLocal *local); +gboolean blend_cb_ME(BlendGlobal *global, BlendLocal *local); +gboolean blend_cb_OB(BlendGlobal *global, BlendLocal *local); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_BLEND_CHUNKS_H +#define _IMP_BLEND_CHUNKS_H + +#include "imp_blend_def.h" +#include "imp_blend_types.h" +#include "imp_blend_callbacks.h" + +typedef gboolean (* BlendCallback)(BlendGlobal *, BlendLocal *); + +typedef struct { + guint32 code; + guint32 oid; + const gchar *description; + BlendCallback callback; +} BlendChunkInfo; + +#define ID_DATA MKID('D','A','T','A') + +static const BlendChunkInfo blend_chunks[] = { + { ID_DATA, MKID2('M','E'), "mesh data", blend_cb_DATA_ME }, + { ID_DATA, 0, "struct data", NULL }, + + { MKID2('C','A'), 0, "camera", NULL }, + { MKID2('I','M'), 0, "image", NULL }, + { MKID2('L','A'), 0, "lamp", NULL }, + { MKID2('M','A'), 0, "material", blend_cb_MA }, + { MKID2('M','E'), 0, "mesh", blend_cb_ME }, + { MKID2('O','B'), 0, "object", blend_cb_OB }, + { MKID2('S','C'), 0, "scene", NULL }, + { MKID2('S','R'), 0, "screen", NULL }, + { MKID2('T','E'), 0, "texture", NULL }, + { MKID2('T','X'), 0, "text", NULL }, + { MKID2('W','O'), 0, "world", NULL }, + + { MKID('D','N','A','1'), 0, "SDNA data", blend_cb_DNA1 }, + { MKID('G','L','O','B'), 0, "global data", NULL }, + { MKID('R','E','N','D'), 0, "render data", NULL }, + + { 0, 0, NULL, NULL } +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_BLEND_DEF_H +#define _IMP_BLEND_DEF_H + +#include + +#define BLEND_HEADER_SIZE 12 + +#define FLAG_LITTLE_ENDIAN 1 +#define FLAG_POINTERSIZE_4 4 +#define FLAG_POINTERSIZE_8 8 +#define FLAG_POINTER_MASK 0xC + +#define MKID(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((d) << 24)) +#define MKID2(a,b) ((a) | ((b) << 8)) + +static inline gchar blend_from_id(guint32 id, guint8 pos) { + guint8 c = ((id >> (pos * 8)) & 0xFF); + return ((c < 0x20) || (c > 0x7F)) ? '_' : c; +} + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include "imp_blend_def.h" + +guint32 blend_read_short(G3DStream *stream, guint32 flags) +{ + return (flags & FLAG_LITTLE_ENDIAN) ? + g3d_stream_read_int16_le(stream) : + g3d_stream_read_int16_be(stream); +} + +guint32 blend_read_uint(G3DStream *stream, guint32 flags) +{ + return (flags & FLAG_LITTLE_ENDIAN) ? + g3d_stream_read_int32_le(stream) : + g3d_stream_read_int32_be(stream); +} + 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_BLEND_READ_H +#define _IMP_BLEND_READ_H + +#include + +guint32 blend_read_short(G3DStream *stream, guint32 flags); +guint32 blend_read_uint(G3DStream *stream, guint32 flags); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include + +#include "imp_blend_def.h" +#include "imp_blend_types.h" +#include "imp_blend_sdna.h" +#include "imp_blend_read.h" + +static gboolean sdna_prop_check_array(BlendSdnaProperty *sprop) +{ + gchar *ob; + guint32 n; + + while(TRUE) { + ob = strrchr(sprop->name, '['); + if(ob == NULL) + return TRUE; + n = atoi(ob + 1); + if(n == 0) + return FALSE; + sprop->nitems *= n; + *ob = '\0'; + } + return FALSE; +} + +BlendSdna *blend_sdna_read_dna1(G3DStream *stream, guint32 flags, gint32 len) +{ + BlendSdna *sdna; + BlendSdnaProperty *sprop; + BlendSdnaStruct *sstruct; + guint32 code, n, n2, nn, m, t; + gint32 i, j; + gchar buf[2048], *bufp, c, **aptr; + + code = blend_read_uint(stream, flags); + len -= 4; + if(code != MKID('S','D','N','A')) { + g_warning("Blend: DNA1: no SDNA"); + g3d_stream_skip(stream, len); + return NULL; + } + + sdna = g_new0(BlendSdna, 1); + + while(len > 0) { + code = blend_read_uint(stream, flags); + len -= 4; + + switch(code) { + case MKID('N','A','M','E'): + case MKID('T','Y','P','E'): + n = blend_read_uint(stream, flags); + len -= 4; + if(code == MKID('T','Y','P','E')) { + g_debug("\\ TYPE: %d types", n); + sdna->n_types = n; + sdna->type_names = g_new0(gchar *, n); + sdna->type_sizes = g_new0(guint32, n); + aptr = sdna->type_names; + } else { + g_debug("\\ NAME: %d names", n); + sdna->n_names = n; + sdna->names = g_new0(gchar *, n); + aptr = sdna->names; + } + m = 0; + for(i = 0; i < n; i ++) { + bufp = buf; + do { + c = *bufp = g3d_stream_read_int8(stream); + bufp ++; + len --; + m ++; + } while(c != '\0'); + aptr[i] = g_strdup(buf); +#if DEBUG > 2 + g_debug("\\ %s", buf); +#endif + } + m %= 4; + if(m > 0) { + /* padding */ + g3d_stream_skip(stream, 4 - m); + len -= (4 - m); + } + break; + case MKID('T','L','E','N'): + g_debug("\\ TLEN: %d type sizes", sdna->n_types); + for(i = 0; i < sdna->n_types; i ++) { + m = blend_read_short(stream, flags); + len -= 2; +#if DEBUG > 2 + g_debug("\\ %d", m); +#endif + sdna->type_sizes[i] = m; + } + m = sdna->n_types % 2; + if(m > 0) { + g3d_stream_skip(stream, 2); + len -= 2; + } + break; + case MKID('S','T','R','C'): + n = blend_read_uint(stream, flags); + g_debug("\\ STRC: %d structs", n); + len -= 4; + for(i = 0; i < n; i ++) { + t = blend_read_short(stream, flags); + n2 = blend_read_short(stream, flags); + len -= 4; + sstruct = g_new0(BlendSdnaStruct, 1); + sstruct->tid = t; + sstruct->name = sdna->type_names[t]; + sstruct->size = sdna->type_sizes[t]; + sdna->structs = g_slist_append(sdna->structs, sstruct); + for(j = 0; j < n2; j ++) { + t = blend_read_short(stream, flags); + nn = blend_read_short(stream, flags); + len -= 4; + sprop = g_new0(BlendSdnaProperty, 1); + sprop->name = g_strdup(sdna->names[nn]); + sprop->tname = sdna->type_names[t]; + sprop->tid = t; + sprop->tsize = sdna->type_sizes[t]; + sprop->ptr = + (sprop->name[0] == '*') || + (sprop->name[0] == '('); + sprop->nitems = 1; + sdna_prop_check_array(sprop); + sstruct->properties = g_slist_append( + sstruct->properties, sprop); + } + } + break; + default: + g_warning("Blend: DNA1: unexpected section 0x%x", code); + return sdna; + break; + } + } + return sdna; +} + +static void blend_sdna_struct_free(BlendSdnaStruct *sstruct) +{ + GSList *item, *next; + BlendSdnaProperty *sprop; + + item = sstruct->properties; + while(item) { + sprop = item->data; + next = item->next; + g_free(sprop->name); + g_free(sprop); + g_slist_free_1(item); + item = next; + } + g_free(sstruct); +} + +void blend_sdna_cleanup(BlendSdna *sdna) +{ + GSList *item, *next; + BlendSdnaStruct *sstruct; + + g_return_if_fail(sdna != NULL); + + /* names */ + g_free(sdna->names); + /* types */ + g_free(sdna->type_names); + g_free(sdna->type_sizes); + /* structs */ + item = sdna->structs; + while(item) { + sstruct = item->data; + next = item->next; + blend_sdna_struct_free(sstruct); + g_slist_free_1(next); + item = next; + } + /* sdna */ + g_free(sdna); +} + +const BlendSdnaStruct *blend_sdna_get_struct_by_id(BlendSdna *sdna, + guint32 sdnanr) +{ + g_return_val_if_fail(sdnanr < g_slist_length(sdna->structs), NULL); + + if(sdnanr < 10) + return NULL; + + return g_slist_nth_data(sdna->structs, sdnanr); +} + +const BlendSdnaStruct *blend_sdna_get_struct_by_tid(BlendSdna *sdna, + guint32 tid) +{ + GSList *item; + BlendSdnaStruct *sstruct; + + for(item = sdna->structs; item != NULL; item = item->next) { + sstruct = item->data; + if(sstruct->tid == tid) + return sstruct; + } + + return NULL; +} + +static inline void sdna_data_read_basic_types(BlendSdna *sdna, + BlendSdnaPropData *spdata, BlendGlobal *global, gsize *r) +{ + gint32 i; + + g_return_if_fail(spdata->sprop->nitems > 0); + + switch(spdata->type) { + case T_CHAR: + spdata->ival = g_new0(gint32, spdata->sprop->nitems); + for(i = 0; i < spdata->sprop->nitems; i ++) + spdata->ival[i] = g3d_stream_read_int8(global->stream); + (*r) -= spdata->sprop->nitems; + break; + case T_UCHAR: + spdata->uval = g_new0(guint32, spdata->sprop->nitems); + for(i = 0; i < spdata->sprop->nitems; i ++) + spdata->uval[i] = g3d_stream_read_int8(global->stream); + (*r) -= spdata->sprop->nitems; + break; + case T_SHORT: /* FIXME: BE/LE */ + spdata->ival = g_new0(gint32, spdata->sprop->nitems); + for(i = 0; i < spdata->sprop->nitems; i ++) + spdata->ival[i] = g3d_stream_read_int16_le(global->stream); + (*r) -= spdata->sprop->nitems * 2; + break; + case T_USHORT: + spdata->uval = g_new0(guint32, spdata->sprop->nitems); + for(i = 0; i < spdata->sprop->nitems; i ++) + spdata->uval[i] = g3d_stream_read_int16_le(global->stream); + (*r) -= spdata->sprop->nitems * 2; + break; + case T_INT: /* FIXME: 32/64 bit */ + spdata->ival = g_new0(gint32, spdata->sprop->nitems); + for(i = 0; i < spdata->sprop->nitems; i ++) + spdata->ival[i] = g3d_stream_read_int32_le(global->stream); + (*r) -= spdata->sprop->nitems * 4; + break; + case T_LONG: + spdata->ival = g_new0(gint32, spdata->sprop->nitems); + for(i = 0; i < spdata->sprop->nitems; i ++) + spdata->ival[i] = g3d_stream_read_int32_le(global->stream); + (*r) -= spdata->sprop->nitems * 4; + break; + case T_ULONG: + spdata->uval = g_new0(guint32, spdata->sprop->nitems); + for(i = 0; i < spdata->sprop->nitems; i ++) + spdata->uval[i] = g3d_stream_read_int32_le(global->stream); + (*r) -= spdata->sprop->nitems * 4; + break; + case T_FLOAT: + spdata->fval = g_new0(G3DFloat, spdata->sprop->nitems); + for(i = 0; i < spdata->sprop->nitems; i ++) + spdata->fval[i] = g3d_stream_read_float_le(global->stream); + (*r) -= spdata->sprop->nitems * 4; + break; + case T_DOUBLE: + spdata->fval = g_new0(G3DFloat, spdata->sprop->nitems); + for(i = 0; i < spdata->sprop->nitems; i ++) + spdata->fval[i] = g3d_stream_read_double_le(global->stream); + (*r) -= spdata->sprop->nitems * 8; + break; + case T_VOID: + g_warning("SDNA: non-pointer void type"); + break; + case T_STRUCT: + /* handled elsewhere */ + break; + } +} + +BlendSdnaPropData *blend_sdna_get_property(BlendSdnaData *sdata, + const gchar *name, BlendSdnaPropType type) +{ + BlendSdnaPropData *spdata; + + spdata = g_hash_table_lookup(sdata->prophash, name); + if(!spdata) + return NULL; + if(spdata->type != type) + return NULL; + return spdata; +} + +BlendSdnaData *blend_sdna_data_read(BlendSdna *sdna, + const BlendSdnaStruct *sstruct, BlendGlobal *global, gsize *r, + guint32 level) +{ + BlendSdnaData *sdata; + BlendSdnaProperty *sprop; + BlendSdnaPropData *spdata; + const BlendSdnaStruct *substruct; + GSList *pitem; + + sdata = g_new0(BlendSdnaData, 1); + sdata->sstruct = sstruct; + sdata->prophash = g_hash_table_new(g_str_hash, g_str_equal); + +#if DEBUG > BLEND_DEBUG_STRUCT + g_debug("|%s{ /* %s */", + debug_pad(level * 2), sstruct->name); +#endif + + for(pitem = sstruct->properties; pitem != NULL; pitem = pitem->next) { + sprop = pitem->data; + spdata = g_new0(BlendSdnaPropData, 1); + spdata->name = g_strdup(sprop->name); + spdata->sprop = sprop; + g_hash_table_insert(sdata->prophash, spdata->name, spdata); + spdata->type = (sprop->tid < 10) ? sprop->tid : 0xFF; + + if(sprop->ptr) { + spdata->pval = g_new0(guint32, 1); + spdata->pval[0] = g3d_stream_read_int32_le(global->stream); + (*r) -= 4; +#if DEBUG > BLEND_DEBUG_STRUCT + g_debug("|%s %-10s %-10s = 0x%08x; /* len = %d */", + debug_pad(level * 2), + sprop->tname, sprop->name, spdata->pval[0], *r); +#endif + continue; + } + + if(spdata->type == T_STRUCT) { + substruct = blend_sdna_get_struct_by_tid(sdna, sprop->tid); +#if DEBUG > BLEND_DEBUG_STRUCT + g_debug("|%s %-10s %-10s = /* %s */", + debug_pad(level * 2), + sprop->tname, sprop->name, + substruct ? substruct->name : "(unknown)"); +#endif + if(substruct) + spdata->structval = blend_sdna_data_read(sdna, + substruct, global, r, level + 1); + else { + g3d_stream_skip(global->stream, sprop->tsize); + (*r) -= sprop->tsize; + } + } else { + sdna_data_read_basic_types(sdna, spdata, global, r); + } + } /* properties */ + +#if DEBUG > BLEND_DEBUG_STRUCT + g_debug("|%s};", debug_pad(level * 2)); +#endif + + return sdata; +} + +void blend_sdna_data_free(BlendSdnaData *sdata) +{ + /* TODO: free BlendSdnaPropData nodes */ + g_hash_table_destroy(sdata->prophash); + g_free(sdata); +} + +/*****************************************************************************/ +/* debugging code */ + +#if DEBUG > 0 + +static void blend_sdna_dump_spdata_cb(gpointer key, gpointer value, + gpointer user_data) +{ + BlendSdnaPropData *spdata = value; + guint32 *levelp = user_data; + +#define DUMP_FORMAT "|%s %-10s %-10s [%03d]" +#define DUMP_ARGS debug_pad(*levelp), \ + spdata->sprop->tname, spdata->name, spdata->sprop->nitems + + if(spdata->sprop->ptr) { + g_debug(DUMP_FORMAT " = 0x%08x;", DUMP_ARGS, spdata->pval[0]); + return; + } + switch(spdata->type) { + case T_CHAR: + case T_SHORT: + case T_INT: + case T_LONG: + g_debug(DUMP_FORMAT " = %i;", DUMP_ARGS, spdata->ival[0]); + break; + case T_UCHAR: + case T_USHORT: + case T_ULONG: + g_debug(DUMP_FORMAT " = %u;", DUMP_ARGS, spdata->uval[0]); + break; + case T_FLOAT: + case T_DOUBLE: + g_debug(DUMP_FORMAT " = %f;", DUMP_ARGS, spdata->fval[0]); + break; + case T_STRUCT: + g_debug(DUMP_FORMAT " =", DUMP_ARGS); + blend_sdna_dump_data(spdata->structval, *levelp + 1); + break; + default: + g_debug(DUMP_FORMAT ";", DUMP_ARGS); + break; + } +} + +gboolean blend_sdna_dump_data(BlendSdnaData *sdata, guint32 level) +{ + g_debug("|%s{ /* %s */", debug_pad(level), sdata->sstruct->name); + g_hash_table_foreach(sdata->prophash, blend_sdna_dump_spdata_cb, &level); + g_debug("|%s},", debug_pad(level)); + return TRUE; +} + +gboolean blend_sdna_dump_struct(BlendSdna *sdna, guint32 sdnanr) +{ + const BlendSdnaStruct *sstruct; + BlendSdnaProperty *sprop; + GSList *pitem; + + sstruct = blend_sdna_get_struct_by_id(sdna, sdnanr); + if(!sstruct) + return FALSE; + sstruct = g_slist_nth_data(sdna->structs, sdnanr); + g_debug("| struct %s { /* %d */", sstruct->name, sstruct->size); + for(pitem = sstruct->properties; pitem != NULL; pitem = pitem->next) { + sprop = pitem->data; + g_debug("| \t%-16s %-24s;", sprop->tname, sprop->name); + } + g_debug("| };"); + + return TRUE; +} + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_BLEND_SDNA_H +#define _IMP_BLEND_SDNA_H + +#include + +#include "imp_blend_types.h" + +/* as in #if DEBUG > BLEND_DEBUG_STRUCT */ +#define BLEND_DEBUG_STRUCT 1 + +BlendSdna *blend_sdna_read_dna1(G3DStream *stream, guint32 flags, gint32 len); +void blend_sdna_cleanup(BlendSdna *sdna); + +const BlendSdnaStruct *blend_sdna_get_struct_by_id(BlendSdna *sdna, + guint32 sdnanr); +const BlendSdnaStruct *blend_sdna_get_struct_by_name(BlendSdna *sdna, + const gchar *name); + +BlendSdnaData *blend_sdna_data_read(BlendSdna *sdna, + const BlendSdnaStruct *sstruct, BlendGlobal *global, gsize *r, + guint32 level); +void blend_sdna_data_free(BlendSdnaData *sdata); + +BlendSdnaPropData *blend_sdna_get_property(BlendSdnaData *sdata, + const gchar *name, BlendSdnaPropType type); + +#if DEBUG > 0 +gboolean blend_sdna_dump_data(BlendSdnaData *sdata, guint32 level); +gboolean blend_sdna_dump_struct(BlendSdna *sdna, guint32 sdnanr); +#endif + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_BLEND_TYPES_H +#define _IMP_BLEND_TYPES_H + +#include + +typedef struct { + gchar *name; + const gchar *tname; + guint32 tid; + gsize tsize; + gsize nitems; + gboolean ptr; +} BlendSdnaProperty; + +typedef struct { + const gchar *name; + guint32 tid; + gsize size; + GSList *properties; +} BlendSdnaStruct; + +typedef struct { + const BlendSdnaStruct *sstruct; + GHashTable *prophash; +} BlendSdnaData; + +typedef enum { + T_CHAR = 0, + T_UCHAR = 1, + T_SHORT = 2, + T_USHORT = 3, + T_INT = 4, + T_LONG = 5, + T_ULONG = 6, + T_FLOAT = 7, + T_DOUBLE = 8, + T_VOID = 9, + T_STRUCT = 0xFF +} BlendSdnaPropType; + +typedef struct { + gchar *name; + BlendSdnaPropType type; + BlendSdnaProperty *sprop; + guint32 *uval; /* unsigned integer value */ + gint32 *ival; /* signed integer value */ + G3DFloat *fval; /* floating point value */ + guint32 *pval; /* pointer value */ + BlendSdnaData *structval; /* struct value */ +} BlendSdnaPropData; + +typedef struct { + guint32 n_names; + gchar **names; + guint32 n_types; + gchar **type_names; + guint32 *type_sizes; + GSList *structs; +} BlendSdna; + +typedef struct { + G3DContext *context; + G3DModel *model; + G3DStream *stream; + guint32 flags; + BlendSdna *sdna; +} BlendGlobal; + +typedef struct { + guint32 id; + guint32 len; + G3DObject *object; + G3DObject *grpobject; + guint32 object_id; + guint32 ndata; + BlendSdnaData **data; +} BlendLocal; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_c4d/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_c4d +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_c4d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_c4d_la_OBJECTS = imp_c4d.lo +imp_c4d_la_OBJECTS = $(am_imp_c4d_la_OBJECTS) +#am_imp_c4d_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_c4d_la_SOURCES) +DIST_SOURCES = $(imp_c4d_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_c4d.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_c4d_la_SOURCES = imp_c4d.c +imp_c4d_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_c4d.la: $(imp_c4d_la_OBJECTS) $(imp_c4d_la_DEPENDENCIES) + $(LINK) $(am_imp_c4d_la_rpath) $(imp_c4d_la_OBJECTS) $(imp_c4d_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_c4d.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_c4d.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_c4d_la_SOURCES = imp_c4d.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_c4d +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_c4d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_c4d_la_OBJECTS = imp_c4d.lo +imp_c4d_la_OBJECTS = $(am_imp_c4d_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_c4d_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_c4d_la_SOURCES) +DIST_SOURCES = $(imp_c4d_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_c4d.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_c4d_la_SOURCES = imp_c4d.c +imp_c4d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_c4d.la: $(imp_c4d_la_OBJECTS) $(imp_c4d_la_DEPENDENCIES) + $(LINK) $(am_imp_c4d_la_rpath) $(imp_c4d_la_OBJECTS) $(imp_c4d_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_c4d.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +#include +#include +#include + +static gboolean c4d_load_v5(G3DContext *context, G3DStream *stream, + G3DModel *model); +static gboolean c4d_load_v6(G3DContext *context, G3DStream *stream, + G3DModel *model); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + gchar magic[5]; + + g3d_stream_read(stream, magic, 4); + magic[4] = '\0'; + if(strncmp(magic + 1, "C4D", 3) == 0) { + g3d_stream_read(stream, magic, 4); + if(strncmp(magic, "C4D6", 4) == 0) + return c4d_load_v6(context, stream, model); + else { + g_warning("unknown C4D magic: %s", magic); + return FALSE; + } + } else if(strncmp(magic + 1, "C50", 3) == 0) { + g_debug("C4D v5: %s", magic); + return c4d_load_v5(context, stream, model); + } else { + g_warning("C4D: unknown magic %s, not a C4D file?", magic); + return FALSE; + } + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("Cinema4D models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("c4d", ":", 0); +} + +/*****************************************************************************/ + +static gchar *c4d_read_wchar(G3DStream *stream, gsize *n_bytes) +{ + guint32 len; + gunichar2 *u16text; + gchar *text; + gint32 i; + GError *error = NULL; + + len = g3d_stream_read_int32_be(stream); + *n_bytes += 4 + len; + u16text = g_new0(gunichar2, len + 1); + for(i = 0; i < len / 2; i ++) + u16text[i] = g3d_stream_read_int16_be(stream); + text = g_utf16_to_utf8(u16text, len, NULL, NULL, &error); + if(error != NULL) { + g_warning("UTF-16 to UTF-8 conversion failed: %s", error->message); + g_error_free(error); + } + g_free(u16text); + return text; +} + +#define C4D_DEBUG_OPCODE 0 + +static gboolean c4d_handle_opcode(guint8 opcode, G3DStream *stream, + G3DModel *model, gsize *n_bytes, guint32 *level) +{ + guint8 u1, *data; + guint16 w1, w2, w3; + guint32 x1, x3; + gsize x2; + G3DFloat f1, f2, f3; + gchar *str; + gint32 i; + + switch(opcode) { + case 0x01: /* 64 bit something */ + *level += 1; + x1 = g3d_stream_read_int32_be(stream); + x2 = g3d_stream_read_int32_be(stream); + *n_bytes += 8; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s01: 0x%08x 0x%08x", debug_pad(*level), x1, x2); +#endif + break; + case 0x02: /* no payload */ +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s02", debug_pad(*level)); +#endif + if(*level == 0) { + g_warning("E: 02: level == 0)"); + } else + *level -= 1; + break; + case 0x0C: /* 8 bit something */ + u1 = g3d_stream_read_int8(stream); + *n_bytes += 1; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s0C: 0x%02x", debug_pad(*level), u1); +#endif + break; + case 0x0F: /* 32 bit something */ + x1 = g3d_stream_read_int32_be(stream); + *n_bytes += 4; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s0F: 0x%08x", debug_pad(*level), x1); +#endif + break; + case 0x10: /* 32 bit something */ + x1 = g3d_stream_read_int32_be(stream); + *n_bytes += 4; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s10: 0x%08x", debug_pad(*level), x1); +#endif + break; + case 0x13: /* float */ + f1 = g3d_stream_read_float_be(stream); + *n_bytes += 4; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s13: %.3f", debug_pad(*level), f1); +#endif + break; + case 0x15: /* 8 bit something */ + u1 = g3d_stream_read_int8(stream); + *n_bytes += 1; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s15: 0x%02x", debug_pad(*level), u1); +#endif + break; + case 0x16: /* 2 x float */ + f1 = g3d_stream_read_float_be(stream); + f2 = g3d_stream_read_float_be(stream); + *n_bytes += 8; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s16: %.3f, %.3f", debug_pad(*level), f1, f2); +#endif + break; + case 0x17: /* 3 x float */ + f1 = g3d_stream_read_float_be(stream); + f2 = g3d_stream_read_float_be(stream); + f3 = g3d_stream_read_float_be(stream); + *n_bytes += 12; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s17: %.3f, %.3f, %.3f", debug_pad(*level), f1, f2, f3); +#endif + break; + case 0x19: /* 12 x float */ +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s19:", debug_pad(*level)); +#endif + for(i = 0; i < 4; i ++) { + f1 = g3d_stream_read_float_be(stream); + f2 = g3d_stream_read_float_be(stream); + f3 = g3d_stream_read_float_be(stream); + *n_bytes += 12; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s %.3f, %.3f, %.3f", debug_pad(*level), + f1, f2, f3); +#endif + } + break; + case 0x80: /* data */ + x1 = g3d_stream_read_int32_be(stream); + *n_bytes += 4 + x1; + data = g_new0(guint8, x1); + g3d_stream_read(stream, data, x1); +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s80: %d bytes of data", debug_pad(*level), x1); +#endif + g_free(data); + break; + case 0x81: /* embedded file */ + x1 = g3d_stream_read_int32_be(stream); + *n_bytes += 4; + g3d_stream_skip(stream, x1); + *n_bytes += x1; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s81: skipped %d bytes", debug_pad(*level), x1); +#endif + break; + case 0x82: /* wide-char string */ + str = c4d_read_wchar(stream, n_bytes); +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s82: %s", debug_pad(*level), str); +#endif + if(str) + g_free(str); + break; + case 0x83: /* file name */ + str = c4d_read_wchar(stream, n_bytes); +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s83: %s", debug_pad(*level), str); +#endif + if(str) + g_free(str); + break; + case 0x84: /* typed content */ + x1 = g3d_stream_read_int32_be(stream); + *n_bytes += 4; + x2 = 0; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s84: 0x%08x", debug_pad(*level), x1); +#endif + *level += 1; + while(x2 < x1) { + u1 = g3d_stream_read_int8(stream); + x2 ++; + if(!c4d_handle_opcode(u1, stream, model, &x2, level)) + return FALSE; + x3 = g3d_stream_read_int32_be(stream); + x2 += 4; + u1 = g3d_stream_read_int8(stream); + x2 += 1; + } + *level -= 1; + *n_bytes += x1; + break; + case 0x85: /* n * 3 * float */ + x1 = g3d_stream_read_int32_be(stream); + *n_bytes += 4; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s85:", debug_pad(*level)); +#endif + for(i = 0; i < (x1 / 12); i ++) { + f1 = g3d_stream_read_float_be(stream); + f2 = g3d_stream_read_float_be(stream); + f3 = g3d_stream_read_float_be(stream); + *n_bytes += 12; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s %.3f, %.3f, %.3f", debug_pad(*level), + f1, f2, f3); +#endif + } + break; + case 0x86: /* n * int16 */ + x1 = g3d_stream_read_int32_be(stream); + *n_bytes += 4; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s86:", debug_pad(*level)); +#endif + for(i = 0; i < (x1 / 2); i ++) { + w1 = g3d_stream_read_int16_be(stream); + *n_bytes += 2; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s 0x%04x", debug_pad(*level), w1); +#endif + } + break; + case 0x87: /* n * 3 * int16 */ + x1 = g3d_stream_read_int32_be(stream); + *n_bytes += 4; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s87:", debug_pad(*level)); +#endif + for(i = 0; i < (x1 / 6); i ++) { + w1 = g3d_stream_read_int16_be(stream); + w2 = g3d_stream_read_int16_be(stream); + w3 = g3d_stream_read_int16_be(stream); + *n_bytes += 6; +#if DEBUG > C4D_DEBUG_OPCODE + g_debug("\\%s 0x%04x 0x%04x 0x%04x", debug_pad(*level), + w1, w2, w3); +#endif + } + break; + default: + if(g3d_stream_eof(stream)) + return TRUE; +#if DEBUG > 0 + g_debug("%sunknown opcode 0x%02X @ 0x%08x", debug_pad(*level), + opcode, (guint32)g3d_stream_tell(stream)); +#endif + return FALSE; + } + return TRUE; +} + +static gboolean c4d_read_v5_cntr(G3DContext *context, G3DStream *stream, + G3DModel *model, goffset *n_bytes, guint32 level) +{ + guint32 id; + goffset size; + + while(!g3d_stream_eof(stream) && (*n_bytes > 0)) { + id = g3d_stream_read_int32_be(stream); + size = g3d_stream_read_int32_be(stream); + *n_bytes -= 8; + if(*n_bytes < 0) + return FALSE; +#if DEBUG > 0 + g_debug("\\%s0x%08x @ 0x%08x (%u bytes)", debug_pad(level), id, + (guint32)g3d_stream_tell(stream), (guint32)size); +#endif + *n_bytes -= size; + if((id == 0x00001647) || (id == 0x0000139c)) { + if(!c4d_read_v5_cntr(context, stream, model, &size, level + 1)) + return FALSE; + } else { + g3d_stream_skip(stream, size); + } + } + return TRUE; +} + +static gboolean c4d_load_v5(G3DContext *context, G3DStream *stream, + G3DModel *model) +{ + goffset n_bytes; + + n_bytes = g3d_stream_read_int32_be(stream); /* file size */ + g3d_stream_read_int32_be(stream); /* DOK5 */ + g3d_stream_read_int32_be(stream); /* unknown 1 */ + + return c4d_read_v5_cntr(context, stream, model, &n_bytes, 0); +} + +static gboolean c4d_load_v6(G3DContext *context, G3DStream *stream, + G3DModel *model) +{ + guint8 opcode; + gsize n_bytes = 0; + guint32 level = 0; + + while(!g3d_stream_eof(stream)) { + opcode = g3d_stream_read_int8(stream); + if(!c4d_handle_opcode(opcode, stream, model, &n_bytes, &level)) + return FALSE; + } + return TRUE; +} 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_cob/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_cob +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_cob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_cob_la_OBJECTS = imp_cob.lo +imp_cob_la_OBJECTS = $(am_imp_cob_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_cob_la_SOURCES) +DIST_SOURCES = $(imp_cob_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_cob.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_cob_la_SOURCES = imp_cob.c +imp_cob_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_cob.la: $(imp_cob_la_OBJECTS) $(imp_cob_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_cob_la_OBJECTS) $(imp_cob_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_cob.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_cob.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_cob_la_SOURCES = imp_cob.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_cob +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_cob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_cob_la_OBJECTS = imp_cob.lo +imp_cob_la_OBJECTS = $(am_imp_cob_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_cob_la_SOURCES) +DIST_SOURCES = $(imp_cob_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_cob.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_cob_la_SOURCES = imp_cob.c +imp_cob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_cob.la: $(imp_cob_la_OBJECTS) $(imp_cob_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_cob_la_OBJECTS) $(imp_cob_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_cob.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +static gboolean cob_read_file_bin(G3DStream *stream, G3DModel *model, + gboolean is_be, G3DContext *context); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + gchar header[32]; + gboolean file_is_ascii, file_is_be; + G3DMatrix rmatrix[16]; + + if(g3d_stream_read(stream, header, 32) != 32) { + g_warning("COB: could not read header"); + return FALSE; + } + + if(strncmp(header, "Caligari ", 9) != 0) { + g_warning("COB: '%s' is not a valid TrueSpace file", stream->uri); + return FALSE; + } + + file_is_ascii = (header[15] == 'A'); + file_is_be = (header[16] == 'H'); + +#if DEBUG > 0 + g_debug("COB: file version %.*s, %s, %s endian\n", + 6, header + 9, + file_is_ascii ? "ASCII" : "binary", + file_is_be ? "big" : "little" ); +#endif + + if(file_is_ascii) { + g_warning("COB: ASCII files are unsupported at the moment"); + return FALSE; + } + + cob_read_file_bin(stream, model, file_is_be, context); + + g3d_matrix_identity(rmatrix); + g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix); + g3d_model_transform(model, rmatrix); + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("Caligari TrueSpace models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("cob", ":", 0); +} + +/* + * COB specific + */ + +#define cob_read_e(stream, what, be) \ + ((be) ? g3d_stream_read_ ## what ## _be(stream) : \ + g3d_stream_read_ ## what ## _le(stream)) + +#define COB_F_HOLE 0x08 +#define COB_F_BACKCULL 0x10 + +static gboolean cob_read_chunk_header_bin(G3DStream *stream, gboolean is_be, + guint32 *type, guint16 *ver_maj, guint16 *ver_min, + guint32 *id, guint32 *parent_id, guint32 *len) +{ + *type = + (g3d_stream_read_int8(stream) << 24) + + (g3d_stream_read_int8(stream) << 16) + + (g3d_stream_read_int8(stream) << 8) + + (g3d_stream_read_int8(stream)); + *ver_maj = cob_read_e(stream, int16, is_be); + *ver_min = cob_read_e(stream, int16, is_be); + *id = cob_read_e(stream, int32, is_be); + *parent_id = cob_read_e(stream, int32, is_be); + *len = cob_read_e(stream, int32, is_be); + + return TRUE; +} + +static gchar *cob_read_name_bin(G3DStream *stream, guint32 *len, gboolean is_be) +{ + gchar *buffer, *name; + guint32 dc, namelen; + + dc = cob_read_e(stream, int16, is_be); + *len -= 2; + + namelen = cob_read_e(stream, int16, is_be); + *len -= 2; + + buffer = g_new0(gchar, namelen + 1); + g3d_stream_read(stream, buffer, namelen); + *len -= namelen; + + name = g_strdup_printf("%s (%d)", buffer, dc); + + g_free(buffer); + return name; +} + +static G3DObject *cob_read_grou_bin(G3DStream *stream, guint32 len, gboolean is_be) +{ + G3DObject *object; + + object = g_new0(G3DObject, 1); + object->name = cob_read_name_bin(stream, &len, is_be); +#if DEBUG > 0 + g_debug("COB: Grou: name is '%s'", object->name); +#endif + + if(len > 0) + g3d_stream_skip(stream, len); + + return object; +} + +static G3DObject *cob_read_polh_bin(G3DStream *stream, guint32 len, gboolean is_be, + G3DContext *context) +{ + G3DObject *object; + guint32 nfaces, i; + G3DFloat curpos[16]; + + object = g_new0(G3DObject, 1); + object->name = cob_read_name_bin(stream, &len, is_be); +#if DEBUG > 0 + g_debug("COB: PolH: name is '%s'", object->name); +#endif + + /* local axes: 4 x 12 */ + g3d_stream_skip(stream, 48); + len -= 48; + + /* current position: 3 x 16 */ + g3d_matrix_identity(curpos); + for(i = 0; i < 12; i ++) + { + curpos[i] = cob_read_e(stream, float, is_be); + len -= 4; + } + g3d_matrix_transpose(curpos); + + /*g3d_matrix_dump(curpos);*/ + + /* vertex list */ + object->vertex_count = cob_read_e(stream, int32, is_be); + len -= 4; + object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3); + for(i = 0; i < object->vertex_count; i ++) + { + object->vertex_data[i*3+0] = cob_read_e(stream, float, is_be); + object->vertex_data[i*3+1] = cob_read_e(stream, float, is_be); + object->vertex_data[i*3+2] = cob_read_e(stream, float, is_be); + g3d_vector_transform( + &(object->vertex_data[i*3+0]), + &(object->vertex_data[i*3+1]), + &(object->vertex_data[i*3+2]), + curpos); + g3d_context_update_interface(context); + len -= 12; + } + + /* texture vertex list */ + object->tex_vertex_count = cob_read_e(stream, int32, is_be); + len -= 4; + object->tex_vertex_data = g_new0(G3DFloat, object->tex_vertex_count * 2); + for(i = 0; i < object->tex_vertex_count; i ++) + { + object->tex_vertex_data[i*2+0] = cob_read_e(stream, float, is_be); + object->tex_vertex_data[i*2+1] = cob_read_e(stream, float, is_be); + g3d_context_update_interface(context); + len -= 8; + } + + /* faces and holes */ + nfaces = cob_read_e(stream, int32, is_be); + len -= 4; + for(i = 0; i < nfaces; i ++) + { + G3DFace *face; + guint8 flags; + guint32 nverts, j, matidx; + + flags = g3d_stream_read_int8(stream); + len -= 1; + if(flags & COB_F_HOLE) + { + /* hole: ignore for now */ + nverts = cob_read_e(stream, int16, is_be); + len -= 2; + for(j = 0; j < nverts; j ++) + { + cob_read_e(stream, int32, is_be); + cob_read_e(stream, int32, is_be); + len -= 8; + } + } + else + { + /* "real" face */ + nverts = cob_read_e(stream, int16, is_be); + len -= 2; + matidx = cob_read_e(stream, int16, is_be); + len -= 2; + face = g_new0(G3DFace, 1); + + face->vertex_count = nverts; + face->vertex_indices = g_new0(guint32, nverts); + for(j = 0; j < nverts; j ++) + { + face->vertex_indices[j] = cob_read_e(stream, int32, is_be); + cob_read_e(stream, int32, is_be); /* UV indices */ + len -= 8; + } + + /* set material */ + if(matidx < g_slist_length(object->materials)) + face->material = g_slist_nth_data(object->materials, matidx); + else + { + for(j = g_slist_length(object->materials); j <= matidx; j ++) + { + G3DMaterial *material = g3d_material_new(); + material->name = g_strdup_printf("fallback material %d", + j); + object->materials = + g_slist_append(object->materials, material); + } + + face->material = g_slist_nth_data(object->materials, matidx); + } + + object->faces = g_slist_prepend(object->faces, face); + } + + g3d_context_update_interface(context); + } + + if(len > 0) + g3d_stream_skip(stream, len); + + return object; +} + +static int cob_read_mat1_bin(G3DStream *stream, guint32 len, gboolean is_be, + G3DObject *object) +{ + G3DMaterial *material; + guint32 matidx; + + g_return_val_if_fail(object != NULL, FALSE); + + matidx = cob_read_e(stream, int16, is_be); + len -= 2; + + material = g_slist_nth_data(object->materials, matidx); + + if(material) + { + g_free(material->name); + material->name = g_strdup_printf("material #%d", matidx); + + /* shader type */ + g3d_stream_read_int8(stream); + len --; + + /* facet type */ + g3d_stream_read_int8(stream); + len --; + + /* autofacet angle */ + g3d_stream_read_int8(stream); + len --; + + /* RGBA */ + material->r = cob_read_e(stream, float, is_be); + material->g = cob_read_e(stream, float, is_be); + material->b = cob_read_e(stream, float, is_be); + material->a = cob_read_e(stream, float, is_be); + len -= 16; + } + else + { +#if DEBUG > 0 + g_debug("COB: Mat1: material #%d not used, ignoring...", matidx); +#endif + } + + if(len > 0) + g3d_stream_skip(stream, len); + + return TRUE; +} + +static int cob_read_unit_bin(G3DStream *stream, guint32 len, gboolean is_be) +{ + guint16 uidx; +#if DEBUG > 0 + static gchar *units[] = { + "millimeters", + "centimeters", + "meters", + "kilometers", + "inches", + "feet", + "yards", + "miles", + "points" }; +#endif + + uidx = cob_read_e(stream, int16, is_be); +#if DEBUG > 0 + if(uidx >= (sizeof(units) / sizeof(gchar *))) + { + g_warning("COB: Unit: out of range (%d)", uidx); + return FALSE; + } + g_debug("COB: units are %s", units[uidx]); +#endif + return TRUE; +} + +static gboolean cob_read_file_bin(G3DStream *stream, G3DModel *model, + gboolean is_be, G3DContext *context) +{ + G3DObject *object = NULL; + guint32 type, id, parent_id, len; + guint16 ver_min, ver_maj; + gboolean exit = FALSE; + + do { + cob_read_chunk_header_bin(stream, is_be, &type, &ver_maj, &ver_min, + &id, &parent_id, &len); + +#if DEBUG > 0 + g_debug("\\[%c%c%c%c] 0x%08x (0x%08x) %d bytes", + (type >> 24) & 0xFF, (type >> 16) & 0xFF, + (type >> 8) & 0xFF, type & 0xFF, + id, parent_id, len); +#endif + + switch(type) + { + case G3D_IFF_MKID('E', 'N', 'D', ' '): + /* end of file */ + exit = TRUE; + break; + + case G3D_IFF_MKID('G', 'r', 'o', 'u'): + /* group */ + object = cob_read_grou_bin(stream, len, is_be); +#if 0 + model->objects = g_slist_append(model->objects, object); +#endif + break; + + case G3D_IFF_MKID('M', 'a', 't', '1'): + cob_read_mat1_bin(stream, len, is_be, object); + break; + + case G3D_IFF_MKID('P', 'o', 'l', 'H'): + /* polygonal data */ + object = cob_read_polh_bin(stream, len, is_be, context); + model->objects = g_slist_append(model->objects, object); + break; + + case G3D_IFF_MKID('U', 'n', 'i', 't'): + cob_read_unit_bin(stream, len, is_be); + break; + + default: +#if DEBUG > 0 + g_warning("COB: unknown chunk type: %c%c%c%c: 0x%08x (0x%08x)," + " %u bytes", + (type >> 24) & 0xFF, (type >> 16) & 0xFF, + (type >> 8) & 0xFF, type & 0xFF, + id, parent_id, len); +#endif + g3d_stream_skip(stream, len); + break; + } + } + while(type && !exit); + + return TRUE; +} + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_dae/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_dae +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_dae_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_dae_la_OBJECTS = imp_dae.lo imp_dae_xml.lo imp_dae_library.lo \ + imp_dae_cb.lo +imp_dae_la_OBJECTS = $(am_imp_dae_la_OBJECTS) +am_imp_dae_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_dae_la_SOURCES) +DIST_SOURCES = $(imp_dae_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_dae.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_dae_la_SOURCES = imp_dae.c \ + imp_dae_xml.h imp_dae_xml.c \ + imp_dae_library.h imp_dae_library.c \ + imp_dae_cb.h imp_dae_cb.c imp_dae_chunks.h + +imp_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 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_dae.la: $(imp_dae_la_OBJECTS) $(imp_dae_la_DEPENDENCIES) + $(LINK) $(am_imp_dae_la_rpath) $(imp_dae_la_OBJECTS) $(imp_dae_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_dae.Plo +include ./$(DEPDIR)/imp_dae_cb.Plo +include ./$(DEPDIR)/imp_dae_library.Plo +include ./$(DEPDIR)/imp_dae_xml.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if HAVE_LIBXML2 +pluginimp_LTLIBRARIES = imp_dae.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ @LIBXML2_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_dae_la_SOURCES = imp_dae.c \ + imp_dae_xml.h imp_dae_xml.c \ + imp_dae_library.h imp_dae_library.c \ + imp_dae_cb.h imp_dae_cb.c imp_dae_chunks.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_dae +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_dae_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_dae_la_OBJECTS = imp_dae.lo imp_dae_xml.lo imp_dae_library.lo \ + imp_dae_cb.lo +imp_dae_la_OBJECTS = $(am_imp_dae_la_OBJECTS) +@HAVE_LIBXML2_TRUE@am_imp_dae_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_dae_la_SOURCES) +DIST_SOURCES = $(imp_dae_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@HAVE_LIBXML2_TRUE@pluginimp_LTLIBRARIES = imp_dae.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ @LIBXML2_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_dae_la_SOURCES = imp_dae.c \ + imp_dae_xml.h imp_dae_xml.c \ + imp_dae_library.h imp_dae_library.c \ + imp_dae_cb.h imp_dae_cb.c imp_dae_chunks.h + +imp_dae_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_dae.la: $(imp_dae_la_OBJECTS) $(imp_dae_la_DEPENDENCIES) + $(LINK) $(am_imp_dae_la_rpath) $(imp_dae_la_OBJECTS) $(imp_dae_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae_cb.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae_library.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae_xml.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include +#include + +#include +#include + +#include "imp_dae_xml.h" +#include "imp_dae_library.h" +#include "imp_dae_cb.h" + +static int dae_input_read_cb(gpointer ctx, gchar *buffer, gint len) +{ + return g3d_stream_read((G3DStream *)ctx, buffer, len); +} + +static gboolean dae_load_scene(G3DContext *context, G3DStream *stream, + G3DModel *model, DaeLibrary *lib, xmlDocPtr xmldoc); + +/*****************************************************************************/ + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + xmlDocPtr xmldoc; + DaeLibrary *lib; + gboolean retval = FALSE; + + setlocale(LC_NUMERIC, "C"); + xmlInitParser(); + + xmldoc = xmlReadIO(dae_input_read_cb, NULL, stream, stream->uri, NULL, 0); + if(xmldoc) { + lib = dae_library_load(xmldoc); + retval = dae_load_scene(context, stream, model, lib, xmldoc); + + dae_library_cleanup(lib); + xmlFreeDoc(xmldoc); + } + + xmlCleanupParser(); + return retval; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("COLLADA models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("dae", ":", 0); +} + +/*****************************************************************************/ +/* COLLADA specific stuff */ + +static gboolean dae_load_scene(G3DContext *context, G3DStream *stream, + G3DModel *model, DaeLibrary *lib, xmlDocPtr xmldoc) +{ + DaeGlobalData *global; + DaeLocalData *local; + xmlNodePtr scenenode, node = NULL, instance = NULL; + gchar *name; + + scenenode = dae_xml_get_child_by_tagname( + xmlDocGetRootElement(xmldoc), "scene"); + + if(scenenode == NULL) { + g_warning("DAE: could not get scene node"); + return FALSE; + } + + global = g_new0(DaeGlobalData, 1); + global->context = context; + global->stream = stream; + global->model = model; + global->xmldoc = xmldoc; + global->lib = lib; + + while(dae_xml_next_child(lib, scenenode, &node, &instance, &name)) { +#if DEBUG > 2 + g_debug("DAE: got node %s", name); +#endif + if(strcmp(name, "visual_scene") == 0) { + local = g_new0(DaeLocalData, 1); + local->node = node; + local->instance = instance; + local->parent = scenenode; + dae_cb_visual_scene(global, local); + g_free(local); + } + g_free(name); + } + + g_free(global); + + return TRUE; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +#include + +#include +#include +#include +#include +#include +#include + +#include "imp_dae_cb.h" +#include "imp_dae_chunks.h" +#include "imp_dae_xml.h" + +typedef struct { + guint32 offset; + enum { + SEM_UNKNOWN, + SEM_VERTEX, + SEM_NORMAL, + SEM_TEXCOORD + } semantic; + gchar *source; +} DaeInput; + +/*****************************************************************************/ + +static G3DMaterial *dae_get_material_by_name(DaeGlobalData *global, + const gchar *id, guint32 level) +{ + G3DMaterial *material; + GSList *mitem; + xmlNodePtr matnode; + + /* try to find material */ + for(mitem = global->model->materials; mitem != NULL; mitem = mitem->next) { + material = (G3DMaterial *)mitem->data; + if(strcmp(material->name, id) == 0) + return material; + } + + material = g3d_material_new(); + material->name = g_strdup(id); + global->model->materials = g_slist_append(global->model->materials, + material); + + /* find material in library */ + matnode = dae_library_lookup(global->lib, "symbol", id); + + if(matnode) { + dae_xml_parse(global, matnode, dae_chunks_material, + level, material); + } + return material; +} + +static GSList *dae_get_inputs(xmlNodePtr node) +{ + xmlNodePtr inode = NULL; + gchar *soff, *ssem; + DaeInput *input; + GSList *inputs = NULL; + + while(dae_xml_next_child_by_tagname(node, &inode, "input")) { + input = g_new0(DaeInput, 1); + soff = dae_xml_get_attr(inode, "offset"); + if(soff) { + input->offset = atoi(soff); + g_free(soff); + } + ssem = dae_xml_get_attr(inode, "semantic"); + if(ssem) { + if(strcmp(ssem, "VERTEX") == 0) + input->semantic = SEM_VERTEX; + else if(strcmp(ssem, "NORMAL") == 0) + input->semantic = SEM_NORMAL; + else if(strcmp(ssem, "TEXCOORD") == 0) + input->semantic = SEM_TEXCOORD; + else { + g_warning("DAE: unknown input semantic '%s'", ssem); + input->semantic = SEM_UNKNOWN; + } + g_free(ssem); + } + input->source = dae_xml_get_attr(inode, "source"); + inputs = g_slist_append(inputs, input); + } + return inputs; +} + +static void dae_inputs_free(GSList *inputs) +{ + GSList *item; + DaeInput *input; + + for(item = inputs; item != NULL; item = item->next) { + input = (DaeInput *)item->data; + if(input->source) + g_free(input->source); + g_free(input); + item->data = NULL; + } + g_slist_free(inputs); +} + +static gboolean dae_load_source(DaeLibrary *lib, gchar *id, + G3DFloat **asrc, guint32 *nsrc) +{ + xmlNodePtr snode, fnode; + gchar *scnt, *next = NULL; + gint i; + + snode = dae_library_lookup(lib, "source", id + 1); +#if DEBUG > 0 + g_debug("DAE: source '%s': %p", id + 1, (void *)snode); +#endif + if(snode == NULL) + return FALSE; + + fnode = dae_xml_get_child_by_tagname(snode, "float_array"); + if(fnode == NULL) + return FALSE; + + scnt = dae_xml_get_attr(fnode, "count"); +#if DEBUG > 0 + g_debug("DAE: float_array count=\"%s\"", scnt); +#endif + if(scnt == NULL) + return FALSE; + *nsrc = atoi(scnt); + g_free(scnt); + if(*nsrc == 0) + return FALSE; + + *asrc = g_new0(G3DFloat, *nsrc); + for(i = 0; i < *nsrc; i ++) +#if G3D_FLOAT_IS_DOUBLE + if(!dae_xml_next_double(fnode, &next, &((*asrc)[i]))) +#else + if(!dae_xml_next_float(fnode, &next, &((*asrc)[i]))) +#endif + return FALSE; + + return TRUE; +} + +/*****************************************************************************/ + +gboolean dae_cb_bind_material(DaeGlobalData *global, DaeLocalData *local) +{ + return dae_xml_parse(global, local->node, dae_chunks_bind_material, + local->level, local->user_data); +} + +gboolean dae_cb_effect(DaeGlobalData *global, DaeLocalData *local) +{ + return dae_xml_parse(global, local->node, dae_chunks_effect, + local->level, local->user_data); +} + +gboolean dae_cb_geometry(DaeGlobalData *global, DaeLocalData *local) +{ + G3DObject *object; + G3DMaterial *material; + + object = (G3DObject *)local->user_data; + g_return_val_if_fail(object != NULL, FALSE); + + material = g3d_material_new(); + material->name = g_strdup("(default material)"); + object->materials = g_slist_append(object->materials, material); + + if(local->instance) { + /* parse original node */ + dae_xml_parse(global, local->instance, + dae_chunks_geometry, local->level, object); + } + + /* parse instanced stuff */ + return dae_xml_parse(global, local->node, dae_chunks_geometry, + local->level, object); +} + +gboolean dae_cb_matrix(DaeGlobalData *global, DaeLocalData *local) +{ + G3DObject *object = local->user_data; + G3DTransformation *transform; + gchar *next = NULL; + gint i; + + g_return_val_if_fail(object != NULL, FALSE); + + transform = object->transformation; + if(transform == NULL) { + transform = g_new0(G3DTransformation, 1); + g3d_matrix_identity(transform->matrix); + object->transformation = transform; + } + + for(i = 0; i < 16; i ++) +#if G3D_FLOAT_IS_DOUBLE + dae_xml_next_double(local->node, &next, transform->matrix + i); +#else + dae_xml_next_float(local->node, &next, transform->matrix + i); +#endif + g3d_matrix_transpose(transform->matrix); +#if DEBUG > 3 + g_debug("DAE: matrix for '%s':", object->name); + g3d_matrix_dump(transform->matrix); +#endif + return TRUE; +} + +gboolean dae_cb_mesh(DaeGlobalData *global, DaeLocalData *local) +{ + return dae_xml_parse(global, local->node, dae_chunks_mesh, + local->level, local->user_data); +} + +gboolean dae_cb_newparam(DaeGlobalData *global, DaeLocalData *local) +{ + G3DMaterial *material = (G3DMaterial *)local->user_data; + G3DStream *imgstream = NULL; + xmlNodePtr n1, n2; + gchar *siid = NULL, *filename, *subfile; +#ifdef HAVE_LIBGSF + gchar *container, *pipe; +#endif + + g_return_val_if_fail(material != NULL, FALSE); + + n1 = dae_xml_get_child_by_tagname(local->node, "surface"); + if(n1 != NULL) { + n2 = dae_xml_get_child_by_tagname(n1, "init_from"); + if(n2 != NULL) + siid = g_strdup((gchar *)n2->children->content); + } + if(siid == NULL) + return FALSE; + + n1 = dae_library_lookup(global->lib, "image", siid); + g_free(siid); + if(n1 == NULL) + return FALSE; + + n2 = dae_xml_get_child_by_tagname(n1, "init_from"); + if(n2 == NULL) + return FALSE; + + filename = (gchar *)n2->children->content; + + if(strncmp(global->stream->uri, "zip://", 6) == 0) { +#ifdef HAVE_LIBGSF + /* .dae was loaded from .kmz, get texture from .kmz, too */ + pipe = strchr(global->stream->uri, '|'); + if(pipe != NULL) { + container = g_strndup(global->stream->uri + 6, + (pipe - global->stream->uri) - 6); + subfile = filename; + while(strncmp(subfile, "../", 3) == 0) + subfile += 3; + g_debug("DAE: loading '%s' from: '%s'", subfile, container); + imgstream = g3d_stream_open_zip_from_stream(global->stream->zip_container, subfile); + } +#endif + } else { + imgstream = g3d_stream_open_file(filename, "rb"); + if(imgstream == NULL) { + /* if opened from unpacked doc.kml, textures are found in + * ../images/, so strip leading ../ */ + subfile = filename; + while(strncmp(subfile, "../", 3) == 0) + subfile += 3; + imgstream = g3d_stream_open_file(subfile, "rb"); + } + } + + if(imgstream != NULL) { + material->tex_image = g3d_texture_load_from_stream(global->context, + global->model, imgstream); + if(material->tex_image) { + material->tex_image->tex_env = G3D_TEXENV_DECAL; + } + g3d_stream_close(imgstream); + return TRUE; + } + + return FALSE; +} + +gboolean dae_cb_node(DaeGlobalData *global, DaeLocalData *local) +{ + G3DObject *object, *pobject; + G3DMatrix matrix[16]; + gchar *name; + + name = dae_xml_get_attr(local->node, "name"); + if(name == NULL) + name = dae_xml_get_attr(local->node, "id"); + if(name == NULL) + return FALSE; + + pobject = (G3DObject *)local->user_data; + object = g_new0(G3DObject, 1); + object->name = name; + if(pobject) + pobject->objects = g_slist_append(pobject->objects, object); + else + global->model->objects = g_slist_append(global->model->objects, + object); + + if(dae_xml_parse(global, local->node, dae_chunks_node, local->level, + object)) { + if(object->transformation) { + g3d_object_transform(object, object->transformation->matrix); +#if DEBUG > 3 + g_debug("DAE: transforming object '%s'", object->name); + g3d_matrix_dump(object->transformation->matrix); +#endif + g_free(object->transformation); + object->transformation = NULL; + } + + if(!pobject) { + g3d_matrix_identity(matrix); + g3d_matrix_rotate(-90.0 * G_PI / 180.0, 1.0, 0.0, 0.0, matrix); + g3d_object_transform(object, matrix); + } + return TRUE; + } + return FALSE; +} + +gboolean dae_cb_phong(DaeGlobalData *global, DaeLocalData *local) +{ + G3DMaterial *material = (G3DMaterial *)local->user_data; + xmlNodePtr n1, n2; + gchar *next; + + g_return_val_if_fail(material != NULL, FALSE); + + /* diffuse */ + n1 = dae_xml_get_child_by_tagname(local->node, "diffuse"); + if(n1 != NULL) { + n2 = dae_xml_get_child_by_tagname(n1, "color"); + if(n2 != NULL) { + next = NULL; +#if G3D_FLOAT_IS_DOUBLE + dae_xml_next_double(n2, &next, &(material->r)); + dae_xml_next_double(n2, &next, &(material->g)); + dae_xml_next_double(n2, &next, &(material->b)); + dae_xml_next_double(n2, &next, &(material->a)); +#else + dae_xml_next_float(n2, &next, &(material->r)); + dae_xml_next_float(n2, &next, &(material->g)); + dae_xml_next_float(n2, &next, &(material->b)); + dae_xml_next_float(n2, &next, &(material->a)); +#endif + } + } + + /* specular */ + n1 = dae_xml_get_child_by_tagname(local->node, "specular"); + if(n1 != NULL) { + n2 = dae_xml_get_child_by_tagname(n1, "color"); + if(n2 != NULL) { + next = NULL; + /* These are floats either way. */ + dae_xml_next_float(n2, &next, &(material->specular[0])); + dae_xml_next_float(n2, &next, &(material->specular[1])); + dae_xml_next_float(n2, &next, &(material->specular[2])); + dae_xml_next_float(n2, &next, &(material->specular[3])); + } + } + + return TRUE; +} + +gboolean dae_cb_polylist(DaeGlobalData *global, DaeLocalData *local) +{ + G3DObject *object = local->user_data; + G3DFace *face; + G3DMaterial *material; + xmlNodePtr pnode, vnode; + gchar *scnt, *smat, *nextp = NULL, *nextv = NULL; + guint32 count, normal_count, tex_count, flags = 0; + gint i, j, nv, tmp; + GSList *inputs, *item; + DaeInput *input; + G3DFloat *normal_data = NULL, *tex_data = NULL; + + g_return_val_if_fail(object != NULL, FALSE); + + scnt = dae_xml_get_attr(local->node, "count"); + g_return_val_if_fail(scnt != NULL, FALSE); + count = atoi(scnt); + g_free(scnt); + g_return_val_if_fail(count != 0, FALSE); + + pnode = dae_xml_get_child_by_tagname(local->node, "p"); + vnode = dae_xml_get_child_by_tagname(local->node, "vcount"); + g_return_val_if_fail((pnode != NULL) && (vnode != NULL), FALSE); + + /* material */ + material = g_slist_nth_data(object->materials, 0); + smat = dae_xml_get_attr(local->node, "material"); + if(smat != NULL) { + material = dae_get_material_by_name(global, smat, local->level); + g_free(smat); + } + + /* get all inputs */ + inputs = dae_get_inputs(local->node); + for(item = inputs; item != NULL; item = item->next) { + input = (DaeInput *)item->data; + if(input->semantic == SEM_NORMAL) + if(dae_load_source(global->lib, input->source, + &normal_data, &normal_count)) + flags |= G3D_FLAG_FAC_NORMALS; + if(input->semantic == SEM_TEXCOORD) + if(dae_load_source(global->lib, input->source, + &tex_data, &tex_count) && (material->tex_image != NULL)) + flags |= G3D_FLAG_FAC_TEXMAP; + } + + for(i = 0; i < count; i ++) { + if(dae_xml_next_int(vnode, &nextv, &nv) && (nv > 0)) { + face = g_new0(G3DFace, 1); + face->vertex_count = nv; + face->vertex_indices = g_new0(guint32, nv); + face->material = material; + face->flags = flags; + object->faces = g_slist_append(object->faces, face); + + if(face->flags & G3D_FLAG_FAC_NORMALS) { + face->normals = g_new0(G3DFloat, nv * 3); + } + if(face->flags & G3D_FLAG_FAC_TEXMAP) { + face->tex_image = material->tex_image; + face->tex_vertex_count = nv; + face->tex_vertex_data = g_new0(G3DFloat, nv * 2); + } + + for(j = 0; j < nv; j ++) { + for(item = inputs; item != NULL; item = item->next) { + input = (DaeInput *)item->data; + dae_xml_next_int(pnode, &nextp, &tmp); + switch(input->semantic) { + case SEM_VERTEX: + face->vertex_indices[j] = tmp; + if(face->vertex_indices[j] >= object->vertex_count) + { + g_warning("polylist: [%s] face[%d] (%d) >= %d", + object->name, j, face->vertex_indices[j], + object->vertex_count); + face->vertex_indices[j] = 0; + } + break; + case SEM_NORMAL: + if(flags & G3D_FLAG_FAC_NORMALS) { + face->normals[j * 3 + 0] = + normal_data[tmp * 3 + 0]; + face->normals[j * 3 + 1] = + normal_data[tmp * 3 + 1]; + face->normals[j * 3 + 2] = + normal_data[tmp * 3 + 2]; + } + break; + case SEM_TEXCOORD: + if(flags & G3D_FLAG_FAC_TEXMAP) { + face->tex_vertex_data[j * 2 + 0] = + tex_data[tmp * 2 + 0]; + face->tex_vertex_data[j * 2 + 1] = 1.0 - + tex_data[tmp * 2 + 1]; + } + break; + case SEM_UNKNOWN: + break; + } + } /* inputs */ + } +#if DEBUG > 3 + g_debug("DAE: %-2i, %-2i, %-2i, (%-2i)", + face->vertex_indices[0], + face->vertex_indices[1], + face->vertex_indices[2], + ((nv > 3) ? face->vertex_indices[3] : -1)); +#endif + } + } + + if(tex_data) + g_free(tex_data); + if(normal_data) + g_free(normal_data); + dae_inputs_free(inputs); + + return TRUE; +} + +gboolean dae_cb_profile_COMMON(DaeGlobalData *global, DaeLocalData *local) +{ + return dae_xml_parse(global, local->node, dae_chunks_profile_COMMON, + local->level, local->user_data); +} + +gboolean dae_cb_rotate(DaeGlobalData *global, DaeLocalData *local) +{ + G3DObject *object = local->user_data; + G3DTransformation *transform; + G3DFloat x = 0.0, y = 0.0, z = 0.0, a = 0.0, m[16]; + gchar *next = NULL; + + g_return_val_if_fail(object != NULL, FALSE); + + transform = object->transformation; + if(transform == NULL) { + transform = g_new0(G3DTransformation, 1); + g3d_matrix_identity(transform->matrix); + object->transformation = transform; + } + +#if G3D_FLOAT_IS_DOUBLE + dae_xml_next_double(local->node, &next, &x); + dae_xml_next_double(local->node, &next, &y); + dae_xml_next_double(local->node, &next, &z); + dae_xml_next_double(local->node, &next, &a); +#else + dae_xml_next_float(local->node, &next, &x); + dae_xml_next_float(local->node, &next, &y); + dae_xml_next_float(local->node, &next, &z); + dae_xml_next_float(local->node, &next, &a); +#endif + g_return_val_if_fail((x != 0.0) || (y != 0.0) || (z != 0.0), FALSE); + g3d_matrix_rotate(a, x, y, z, m); + g3d_matrix_multiply(transform->matrix, m, transform->matrix); +#if DEBUG > 3 + g_debug("DAE: rotation for '%s': %.2f, %.2f, %.2f - %.2f", object->name, + x, y, z, a); + g3d_matrix_dump(transform->matrix); +#endif + return TRUE; +} + +gboolean dae_cb_scale(DaeGlobalData *global, DaeLocalData *local) +{ + G3DObject *object = local->user_data; + G3DTransformation *transform; + G3DFloat x = 0.0, y = 0.0, z = 0.0; + gchar *next = NULL; + + g_return_val_if_fail(object != NULL, FALSE); + + transform = object->transformation; + if(transform == NULL) { + transform = g_new0(G3DTransformation, 1); + g3d_matrix_identity(transform->matrix); + object->transformation = transform; + } + +#if G3D_FLOAT_IS_DOUBLE + dae_xml_next_double(local->node, &next, &x); + dae_xml_next_double(local->node, &next, &y); + dae_xml_next_double(local->node, &next, &z); +#else + dae_xml_next_float(local->node, &next, &x); + dae_xml_next_float(local->node, &next, &y); + dae_xml_next_float(local->node, &next, &z); +#endif + g3d_matrix_scale(x, y, z, transform->matrix); +#if DEBUG > 3 + g_debug("DAE: scale for '%s': %.2f, %.2f, %.2f", object->name, + x, y, z); + g3d_matrix_dump(transform->matrix); +#endif + return TRUE; +} + +gboolean dae_cb_source(DaeGlobalData *global, DaeLocalData *local) +{ + gchar *id; + + id = dae_xml_get_attr(local->node, "id"); + if(id) { + dae_library_add(global->lib, "source", id, local->node); + g_free(id); + return TRUE; + } + return FALSE; +} + +gboolean dae_cb_technique(DaeGlobalData *global, DaeLocalData *local) +{ + return dae_xml_parse(global, local->node, dae_chunks_technique, + local->level, local->user_data); +} + +/* instance_geometry::bind_material::technique_common */ +gboolean dae_cb_technique_common(DaeGlobalData *global, DaeLocalData *local) +{ + xmlNodePtr node = NULL, tnode; + gchar *symbol, *target; + + while(dae_xml_next_child_by_tagname(local->node, &node, + "instance_material")) { + symbol = dae_xml_get_attr(node, "symbol"); + if(symbol == NULL) + continue; + target = dae_xml_get_attr(node, "target"); + if(target == NULL) { + g_free(symbol); + continue; + } + tnode = dae_library_lookup(global->lib, "material", target + 1); + if(tnode) + dae_library_add(global->lib, "symbol", symbol, tnode); + g_free(symbol); + g_free(target); + } + return TRUE; +} + +gboolean dae_cb_translate(DaeGlobalData *global, DaeLocalData *local) +{ + G3DObject *object = local->user_data; + G3DTransformation *transform; + G3DFloat x = 0.0, y = 0.0, z = 0.0; + gchar *next = NULL; + + g_return_val_if_fail(object != NULL, FALSE); + + transform = object->transformation; + if(transform == NULL) { + transform = g_new0(G3DTransformation, 1); + g3d_matrix_identity(transform->matrix); + object->transformation = transform; + } + +#if G3D_FLOAT_IS_DOUBLE + dae_xml_next_double(local->node, &next, &x); + dae_xml_next_double(local->node, &next, &y); + dae_xml_next_double(local->node, &next, &z); +#else + dae_xml_next_float(local->node, &next, &x); + dae_xml_next_float(local->node, &next, &y); + dae_xml_next_float(local->node, &next, &z); +#endif + g3d_matrix_translate(x, y, z, transform->matrix); +#if DEBUG > 3 + g_debug("DAE: translation for '%s': %.2f, %.2f, %.2f", object->name, + x, y, z); + g3d_matrix_dump(transform->matrix); +#endif + return TRUE; +} + +gboolean dae_cb_triangles(DaeGlobalData *global, DaeLocalData *local) +{ + G3DObject *object = local->user_data; + G3DFace *face; + G3DMaterial *material; + xmlNodePtr pnode; + gchar *scnt, *smat, *nextp = NULL; + guint32 count, normal_count, tex_count, flags = 0; + G3DFloat *normal_data = NULL, *tex_data = NULL; + gint i, j, tmp; + GSList *inputs, *item; + DaeInput *input; + + g_return_val_if_fail(object != NULL, FALSE); + + scnt = dae_xml_get_attr(local->node, "count"); + g_return_val_if_fail(scnt != NULL, FALSE); + count = atoi(scnt); + g_return_val_if_fail(count != 0, FALSE); + g_free(scnt); + + pnode = dae_xml_get_child_by_tagname(local->node, "p"); + g_return_val_if_fail(pnode != NULL, FALSE); + + /* material */ + material = g_slist_nth_data(object->materials, 0); + smat = dae_xml_get_attr(local->node, "material"); + if(smat != NULL) { + material = dae_get_material_by_name(global, smat, local->level); + g_free(smat); + } + + /* get all inputs */ + inputs = dae_get_inputs(local->node); + for(item = inputs; item != NULL; item = item->next) { + input = (DaeInput *)item->data; + if(input->semantic == SEM_NORMAL) + if(dae_load_source(global->lib, input->source, + &normal_data, &normal_count)) { + flags |= G3D_FLAG_FAC_NORMALS; + } + if(input->semantic == SEM_TEXCOORD) + if(dae_load_source(global->lib, input->source, + &tex_data, &tex_count) && (material->tex_image != NULL)) { + flags |= G3D_FLAG_FAC_TEXMAP; + } + } + + for(i = 0; i < count; i ++) { + face = g_new0(G3DFace, 1); + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + face->material = material; + face->flags = flags; + object->faces = g_slist_append(object->faces, face); + + if(face->flags & G3D_FLAG_FAC_NORMALS) { + face->normals = g_new0(G3DFloat, 3 * 3); + } + if(face->flags & G3D_FLAG_FAC_TEXMAP) { + face->tex_image = material->tex_image; + face->tex_vertex_count = 3; + face->tex_vertex_data = g_new0(G3DFloat, 3 * 2); + } + + for(j = 0; j < 3; j ++) { + for(item = inputs; item != NULL; item = item->next) { + input = (DaeInput *)item->data; + dae_xml_next_int(pnode, &nextp, &tmp); + switch(input->semantic) { + case SEM_VERTEX: + face->vertex_indices[j] = tmp; + if(face->vertex_indices[j] >= object->vertex_count) { + g_warning("triangles: [%s] face[%d] (%d) >= %d", + object->name, j, face->vertex_indices[j], + object->vertex_count); + face->vertex_indices[j] = 0; + } + break; + case SEM_NORMAL: + if(flags & G3D_FLAG_FAC_NORMALS) { + face->normals[j * 3 + 0] = + normal_data[tmp * 3 + 0]; + face->normals[j * 3 + 1] = + normal_data[tmp * 3 + 1]; + face->normals[j * 3 + 2] = + normal_data[tmp * 3 + 2]; + } + break; + case SEM_TEXCOORD: + if(flags & G3D_FLAG_FAC_TEXMAP) { + face->tex_vertex_data[j * 2 + 0] = + tex_data[tmp * 2 + 0]; + face->tex_vertex_data[j * 2 + 1] = 1.0 - + tex_data[tmp * 2 + 1]; + } + break; + case SEM_UNKNOWN: + break; + } + } /* inputs */ +#if DEBUG > 3 + g_debug("DAE: %-2i, %-2i, %-2i", + face->vertex_indices[0], + face->vertex_indices[1], + face->vertex_indices[2]); +#endif + } + } + if(tex_data) + g_free(tex_data); + if(normal_data) + g_free(normal_data); + dae_inputs_free(inputs); + + return TRUE; +} + +gboolean dae_cb_vertices(DaeGlobalData *global, DaeLocalData *local) +{ + return dae_xml_parse(global, local->node, dae_chunks_vertices, + local->level, local->user_data); +} + +gboolean dae_cb_vertices__input(DaeGlobalData *global, DaeLocalData *local) +{ + G3DObject *object = (G3DObject *)(local->user_data); + gchar *sid, *sem, *cnt, *next = NULL; + gboolean skip = FALSE; + xmlNodePtr snode, fanode; + gint i, j; + + g_return_val_if_fail(object != NULL, FALSE); + + sem = dae_xml_get_attr(local->node, "semantic"); + sid = dae_xml_get_attr(local->node, "source"); + g_return_val_if_fail((sem != NULL) && (sid != NULL), FALSE); + + /* get 'source' node, skip leading '#' from 'source' attribute */ + snode = dae_library_lookup(global->lib, "source", sid + 1); +#if DEBUG > 0 + g_debug("DAE: looking up source '%s' from library: %p", sid + 1, + (void *)snode); +#endif + g_return_val_if_fail(snode != NULL, FALSE); + + if(sem) + g_free(sem); + if(sid) + g_free(sid); + + /* TODO: check technique_common/accessor */ + + fanode = dae_xml_get_child_by_tagname(snode, "float_array"); + if(fanode) { + cnt = dae_xml_get_attr(fanode, "count"); +#if DEBUG > 0 + g_debug("DAE: float_array count=\"%s\"", cnt); +#endif + g_return_val_if_fail(cnt != NULL, FALSE); + + object->vertex_count = atoi(cnt); + g_return_val_if_fail(object->vertex_count != 0, FALSE); + + object->vertex_data = g_new0(G3DFloat, 3 * object->vertex_count); + for(i = 0; i < object->vertex_count / 3; i ++) + { + for(j = 0; j < 3; j ++) + { +#if G3D_FLOAT_IS_DOUBLE + if(!dae_xml_next_double(fanode, &next, &(object->vertex_data[i * 3 + j]))) +#else + if(!dae_xml_next_float(fanode, &next, &(object->vertex_data[i * 3 + j]))) +#endif + { + skip = TRUE; + break; + } + } +#if DEBUG > 3 + g_debug("DAE: %-3.2f, %-3.2f, %-3.2f", + object->vertex_data[i * 3 + 0], + object->vertex_data[i * 3 + 1], + object->vertex_data[i * 3 + 2]); +#endif + if(skip) + break; + } + } + + return TRUE; +} + +gboolean dae_cb_visual_scene(DaeGlobalData *global, DaeLocalData *local) +{ + return dae_xml_parse(global, local->node, dae_chunks_visual_scene, + local->level, NULL); +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_DAE_CB_H +#define _IMP_DAE_CB_H + +#include +#include + +#include "imp_dae_library.h" + +typedef struct { + G3DContext *context; + G3DStream *stream; + G3DModel *model; + DaeLibrary *lib; + xmlDocPtr xmldoc; +} DaeGlobalData; + +typedef struct { + xmlNodePtr parent; + xmlNodePtr node; + xmlNodePtr instance; + guint32 level; + gpointer user_data; +} DaeLocalData; + +typedef gboolean (* DaeCallback)(DaeGlobalData *global, DaeLocalData *local); + +typedef struct { + const gchar *name; + DaeCallback callback; +} DaeChunkDesc; + +gboolean dae_cb_bind_material(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_effect(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_geometry(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_matrix(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_mesh(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_newparam(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_node(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_phong(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_polylist(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_profile_COMMON(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_rotate(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_scale(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_source(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_technique(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_technique_common(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_translate(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_triangles(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_vertices(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_vertices__input(DaeGlobalData *global, DaeLocalData *local); +gboolean dae_cb_visual_scene(DaeGlobalData *global, DaeLocalData *local); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_DAE_CHUNKS_H +#define _IMP_DAE_CHUNKS_H + +#include "imp_dae_cb.h" + +static DaeChunkDesc dae_chunks_bind_material[] = { + { "technique_common", dae_cb_technique_common }, + { NULL, NULL } +}; + +static DaeChunkDesc dae_chunks_effect[] = { + { "profile_COMMON", dae_cb_profile_COMMON }, + { NULL, NULL } +}; + +static DaeChunkDesc dae_chunks_geometry[] = { + { "bind_material", dae_cb_bind_material }, + { "mesh", dae_cb_mesh }, + { NULL, NULL } +}; + +static DaeChunkDesc dae_chunks_material[] = { + { "effect", dae_cb_effect }, + { NULL, NULL } +}; + +static DaeChunkDesc dae_chunks_mesh[] = { + { "lines", NULL }, + { "polylist", dae_cb_polylist }, + { "source", dae_cb_source }, + { "triangles", dae_cb_triangles }, + { "vertices", dae_cb_vertices }, + { NULL, NULL } +}; + +static DaeChunkDesc dae_chunks_node[] = { + { "camera", NULL }, + { "controller", NULL }, + { "geometry", dae_cb_geometry }, + { "light", NULL }, + { "matrix", dae_cb_matrix }, + { "node", dae_cb_node }, + { "scale", dae_cb_scale }, + { "rotate", dae_cb_rotate }, + { "translate", dae_cb_translate }, + { NULL, NULL } +}; + +static DaeChunkDesc dae_chunks_profile_COMMON[] = { + { "extra", NULL }, + { "newparam", dae_cb_newparam }, + { "technique", dae_cb_technique }, + { NULL, NULL } +}; + +static DaeChunkDesc dae_chunks_technique[] = { + { "blinn", dae_cb_phong }, + { "lambert", dae_cb_phong }, + { "phong", dae_cb_phong }, + { NULL, NULL } +}; + +static DaeChunkDesc dae_chunks_vertices[] = { + { "input", dae_cb_vertices__input }, + { NULL, NULL } +}; + +static DaeChunkDesc dae_chunks_visual_scene[] = { + { "node", dae_cb_node }, + { NULL, NULL } +}; + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include "imp_dae_xml.h" +#include "imp_dae_library.h" + +struct _DaeLibrary { + GHashTable *ids; + GSList *libs; +}; + +typedef struct { + GHashTable *ids; + GSList *nodes; +} DaeLibraryNodes; + +static gchar *dae_library_names[][2] = { + { "library_animations", "animation" }, + { "library_cameras", "camera" }, + { "library_controllers", "controller" }, + { "library_effects", "effect" }, + { "library_geometries", "geometry" }, + { "library_images", "image" }, + { "library_lights", "light" }, + { "library_materials", "material" }, + { "library_nodes", "node" }, + { "library_physics_scenes", "physics_scene" }, + { "library_visual_scenes", "visual_scene" }, + { NULL, NULL } +}; + +static gboolean dae_add_library(DaeLibrary *lib, xmlNodePtr libnode, + guint32 entryid) +{ + xmlNodePtr node; + DaeLibraryNodes *nodelib; + gchar *id; + + nodelib = g_new0(DaeLibraryNodes, 1); + nodelib->ids = g_hash_table_new_full( + g_str_hash, g_str_equal, g_free, NULL); + g_hash_table_insert(lib->ids, g_strdup(dae_library_names[entryid][1]), + nodelib); + lib->libs = g_slist_append(lib->libs, nodelib); + + node = libnode->children; + while(node != NULL) { + if((node->type == XML_ELEMENT_NODE) && + (xmlStrcmp(node->name, + (const xmlChar *)dae_library_names[entryid][1]) == 0)) { + /* found library entry */ + id = dae_xml_get_attr(node, "id"); + if(id != NULL) { +#if DEBUG > 2 + g_debug("\t%s id=\"%s\"", dae_library_names[entryid][1], id); +#endif + g_hash_table_insert(nodelib->ids, id, node); + nodelib->nodes = g_slist_append(nodelib->nodes, node); + } + } + node = node->next; + } + return TRUE; +} + +gboolean dae_library_add(DaeLibrary *lib, const gchar *libname, + const gchar *id, xmlNodePtr node) +{ + DaeLibraryNodes *nodelib; + + g_return_val_if_fail(lib != NULL, FALSE); + + nodelib = g_hash_table_lookup(lib->ids, libname); + if(nodelib == NULL) { + nodelib = g_new0(DaeLibraryNodes, 1); + nodelib->ids = g_hash_table_new_full( + g_str_hash, g_str_equal, g_free, NULL); + g_hash_table_insert(lib->ids, g_strdup(libname), nodelib); + lib->libs = g_slist_append(lib->libs, nodelib); + } + g_hash_table_insert(nodelib->ids, g_strdup(id), node); + nodelib->nodes = g_slist_append(nodelib->nodes, node); + return TRUE; +} + +DaeLibrary *dae_library_load(xmlDocPtr xmldoc) +{ + DaeLibrary *lib; + gint i = 0; + xmlNodePtr rootnode, node; + + lib = g_new0(DaeLibrary, 1); + lib->ids = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); + + rootnode = xmlDocGetRootElement(xmldoc); + g_return_val_if_fail(rootnode != NULL, NULL); + + while(dae_library_names[i][0] != NULL) { +#if DEBUG > 2 + g_debug("loading library %s", dae_library_names[i][0]); +#endif + node = rootnode->children; + while(node != NULL) { + if((node->type == XML_ELEMENT_NODE) && + (xmlStrcmp(node->name, + (const xmlChar *)dae_library_names[i][0]) == 0)) { + dae_add_library(lib, node, i); + break; + } + node = node->next; + } + i ++; + } + return lib; +} + +xmlNodePtr dae_library_lookup(DaeLibrary *library, const gchar *tagname, + const gchar *id) +{ + DaeLibraryNodes *nodelib; + + nodelib = g_hash_table_lookup(library->ids, tagname); + if(nodelib == NULL) { + g_warning("DAE: failed to lookup library for '%s'", tagname); + return NULL; + } + return (xmlNodePtr)g_hash_table_lookup(nodelib->ids, id); +} + +void dae_library_cleanup(DaeLibrary *library) +{ + DaeLibraryNodes *nodelib; + GSList *item; + + for(item = library->libs; item != NULL; item = item->next) { + nodelib = (DaeLibraryNodes *)item->data; + g_hash_table_destroy(nodelib->ids); + g_slist_free(nodelib->nodes); + } + + g_hash_table_destroy(library->ids); + g_slist_free(library->libs); + g_free(library); +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_DAE_LIBRARY_H +#define _IMP_DAE_LIBRARY_H + +#include +#include + +typedef struct _DaeLibrary DaeLibrary; + +DaeLibrary *dae_library_load(xmlDocPtr xmldoc); +gboolean dae_library_add(DaeLibrary *lib, const gchar *libname, + const gchar *id, xmlNodePtr node); +xmlNodePtr dae_library_lookup(DaeLibrary *library, const gchar *tagname, + const gchar *id); +void dae_library_cleanup(DaeLibrary *library); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include +#include + +#include +#include + +#include "imp_dae_library.h" +#include "imp_dae_xml.h" +#include "imp_dae_cb.h" + +gchar *dae_xml_get_attr(xmlNodePtr node, const gchar *attrname) +{ + xmlAttrPtr attr; + gchar *val = NULL; + + g_return_val_if_fail(node != NULL, NULL); + g_return_val_if_fail(attrname != NULL, NULL); + + attr = node->properties; + while(attr != NULL) { + if(xmlStrcmp(attr->name, (xmlChar *)attrname) == 0) { + val = g_strdup((gchar *)attr->children->content); + break; + } + attr = attr->next; + } + + return val; +} + +xmlNodePtr dae_xml_get_child_by_tagname(xmlNodePtr parent, const gchar *tag) +{ + xmlNodePtr node; + + g_return_val_if_fail(parent != NULL, NULL); + + node = parent->children; + while(node != NULL) { + if((node->type == XML_ELEMENT_NODE) && + (xmlStrcmp(node->name, (const xmlChar *)tag) == 0)) { + return node; + } + node = node->next; + } + return NULL; +} + +xmlNodePtr dae_xml_next_child_by_tagname(xmlNodePtr parent, xmlNodePtr *node, + gchar *nodename) +{ + xmlNodePtr tmpnode; + gchar *name; + + do { + tmpnode = dae_xml_next_child(NULL, parent, node, NULL, &name); + if(tmpnode == NULL) + return NULL; + if(strcmp(name, nodename) == 0) { + g_free(name); + return tmpnode; + } + g_free(name); + } while(1); +} + +xmlNodePtr dae_xml_next_child(DaeLibrary *lib, xmlNodePtr parent, + xmlNodePtr *node, xmlNodePtr *instance, gchar **nodename) +{ + gchar *url, *name; + + g_return_val_if_fail(node != NULL, NULL); + g_return_val_if_fail(nodename != NULL, NULL); + *nodename = NULL; + + if(*node == NULL) + *node = parent->children; + else if(instance && *instance) + *node = (*instance)->next; + else + *node = (*node)->next; + + if(instance) + *instance = NULL; + + /* skip TEXT nodes */ + while(*node && ((*node)->type != XML_ELEMENT_NODE)) + *node = (*node)->next; + + if(*node == NULL) + return NULL; + + if(lib && instance && + (xmlStrncmp((*node)->name, (xmlChar *)"instance_", 9) == 0)) { + url = dae_xml_get_attr(*node, "url"); + if(url) { + /* skip 'instance_' part of node name */ + name = g_strdup((gchar *)((*node)->name + 9)); +#if DEBUG > 1 + g_debug("DAE: looking up '%s' in '%s'", url + 1, name); +#endif + *instance = *node; + *node = dae_library_lookup(lib, name, url + 1 /* skip '#' */); + g_free(url); + g_free(name); + } + } + if(*node == NULL) + return NULL; + + *nodename = g_strdup((gchar *)(*node)->name); + + return *node; +} + +gboolean dae_xml_parse(DaeGlobalData *global, xmlNodePtr parent, + DaeChunkDesc *chunks, guint32 level, gpointer user_data) +{ + DaeLocalData *local; + xmlNodePtr node = NULL, instance = NULL; + gchar *name; + gint i; + + g_return_val_if_fail(parent != NULL, FALSE); + + while(dae_xml_next_child(global->lib, parent, &node, &instance, &name)) { +#if DEBUG > 0 + g_debug("\\%s<%s>", debug_pad(level), name); +#endif + if(chunks) { + local = g_new0(DaeLocalData, 1); + local->parent = parent; + local->node = node; + local->instance = instance; + local->level = level + 1; + local->user_data = user_data; + + /* find callback */ + for(i = 0; chunks[i].name != NULL; i ++) { + if(strcmp(chunks[i].name, name) == 0) { + /* found chunk */ +#if DEBUG > 3 + g_debug("DAE: found chunk description for '%s'", name); +#endif + if(chunks[i].callback) + chunks[i].callback(global, local); + break; + } + } + + g_free(local); + + if(chunks[i].name == NULL) + g_debug("DAE: unhandled chunk '%s' in '%s'", name, + (gchar *)parent->name); + } + + g_free(name); + g3d_context_update_interface(global->context); + } + + return TRUE; +} + +gboolean dae_xml_next_int(xmlNodePtr node, gchar **nextp, gint *i) +{ + gchar *s, *err = NULL; + + s = *nextp; + + if(s == NULL) + s = (gchar *)node->children->content; + + /* skip leading whitespace */ + while(isspace(*s)) + s ++; + + *i = strtol(s, &err, 0); + if(s == err) { + g_debug("DAE: imp_xml_next_int: error at '%.*s...'", 5, s); + return FALSE; + } + + *nextp = err; + return TRUE; +} + +gboolean dae_xml_next_double(xmlNodePtr node, gchar **nextp, GLdouble *d) +{ + gchar *s, *err = NULL; + + s = *nextp; + + if(s == NULL) + s = (gchar *)node->children->content; + + /* skip leading whitespace */ + while(isspace(*s)) + s ++; + + *d = strtod(s, &err); + if(s == err) { + g_debug("DAE: imp_xml_next_float: error at '%.*s...'", 5, s); + return FALSE; + } + + *nextp = err; + return TRUE; +} + +gboolean dae_xml_next_float(xmlNodePtr node, gchar **nextp, GLfloat *f) +{ + gchar *s, *err = NULL; + + s = *nextp; + + if(s == NULL) + s = (gchar *)node->children->content; + + /* skip leading whitespace */ + while(isspace(*s)) + s ++; + + *f = strtof(s, &err); + if(s == err) { + g_debug("DAE: imp_xml_next_float: error at '%.*s...'", 5, s); + return FALSE; + } + + *nextp = err; + return TRUE; +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_DAE_XML_H +#define _IMP_DAE_XML_H + +#include +#include + +#include "imp_dae_library.h" +#include "imp_dae_cb.h" + +gchar *dae_xml_get_attr(xmlNodePtr node, const gchar *attrname); +xmlNodePtr dae_xml_get_child_by_tagname(xmlNodePtr parent, const gchar *tag); +xmlNodePtr dae_xml_next_child_by_tagname(xmlNodePtr parent, xmlNodePtr *node, + gchar *nodename); +xmlNodePtr dae_xml_next_child(DaeLibrary *lib, xmlNodePtr parent, + xmlNodePtr *node, xmlNodePtr *instance, gchar **nodename); +gboolean dae_xml_parse(DaeGlobalData *global, xmlNodePtr parent, + DaeChunkDesc *chunks, guint32 level, gpointer user_data); +gboolean dae_xml_next_int(xmlNodePtr node, gchar **nextp, gint *i); +gboolean dae_xml_next_double(xmlNodePtr node, gchar **nextp, GLdouble *d); +gboolean dae_xml_next_float(xmlNodePtr node, gchar **nextp, GLfloat *f); + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_dpm/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_dpm +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_dpm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_dpm_la_OBJECTS = imp_dpm.lo +imp_dpm_la_OBJECTS = $(am_imp_dpm_la_OBJECTS) +#am_imp_dpm_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_dpm_la_SOURCES) +DIST_SOURCES = $(imp_dpm_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_dpm.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_dpm_la_SOURCES = imp_dpm.c +imp_dpm_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_dpm.la: $(imp_dpm_la_OBJECTS) $(imp_dpm_la_DEPENDENCIES) + $(LINK) $(am_imp_dpm_la_rpath) $(imp_dpm_la_OBJECTS) $(imp_dpm_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_dpm.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_dpm.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_dpm_la_SOURCES = imp_dpm.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_dpm +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_dpm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_dpm_la_OBJECTS = imp_dpm.lo +imp_dpm_la_OBJECTS = $(am_imp_dpm_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_dpm_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_dpm_la_SOURCES) +DIST_SOURCES = $(imp_dpm_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_dpm.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_dpm_la_SOURCES = imp_dpm.c +imp_dpm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_dpm.la: $(imp_dpm_la_OBJECTS) $(imp_dpm_la_DEPENDENCIES) + $(LINK) $(am_imp_dpm_la_rpath) $(imp_dpm_la_OBJECTS) $(imp_dpm_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dpm.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + plugin by Martin Gerhardy +*/ + +#include +#include + +#include +#include +#include +#include +#include + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + G3DObject *object; + gchar magic[16], texture[32]; + guint32 type, filesize; + guint32 num_bones, num_meshs, num_frames; + guint32 ofs_bones, ofs_meshs, ofs_frames; + guint32 ofs_texcoords, ofs_verts, ofs_indices; + goffset off_start; + G3DImage *image = NULL; + G3DMaterial *material, *mat; + G3DFace *face; + GSList *mitem; + G3DFloat *normals; + int i; + + off_start = g3d_stream_tell(stream); + + g3d_stream_read(stream, magic, 16); + if(strcmp("DARKPLACESMODEL", magic)) { + g_warning("DPM: Unknown magic id: '%s'\n", magic); + return FALSE; + } + + object = g_new0(G3DObject, 1); + + /* read the header information */ + type = g3d_stream_read_int32_be(stream); + filesize = g3d_stream_read_int32_be(stream); + /* skip some floats */ + for (i = 0; i < 8; i++) + g3d_stream_read_float_le(stream); + num_bones = g3d_stream_read_int32_be(stream); + num_meshs = g3d_stream_read_int32_be(stream); + num_frames = g3d_stream_read_int32_be(stream); + ofs_bones = g3d_stream_read_int32_be(stream); + ofs_meshs = g3d_stream_read_int32_be(stream); + ofs_frames = g3d_stream_read_int32_be(stream); + + /* default material */ + material = g3d_material_new(); + material->name = g_strdup("default material"); + object->materials = g_slist_append(object->materials, material); + + num_meshs = 1; /* only load the first mesh */ + for (i = 0; i < num_meshs; i++) { + guint32 nvertex, ntris; + int j; + + g3d_stream_seek(stream, off_start + ofs_meshs, G_SEEK_SET); + g3d_stream_read(stream, texture, 32); + + /* read texture image */ + if(strlen(texture) > 0) { + image = g3d_texture_load_cached(context, model, texture); + if(image == NULL) { + /* try jpeg */ + char *strp = strrchr(texture, '.'); + if(strp) { + strcpy(strp, ".jpg"); + image = g3d_texture_load_cached(context, model, texture); + } + } + } + + if(image == NULL) { + mitem = model->materials; + while(mitem) { + mat = (G3DMaterial *)mitem->data; + if(strcmp(mat->name, object->name) == 0) { + image = mat->tex_image; + break; + } + mitem = mitem->next; + } + } + + nvertex = g3d_stream_read_int32_be(stream); + ntris = g3d_stream_read_int32_be(stream); + ofs_verts = g3d_stream_read_int32_be(stream); + ofs_texcoords = g3d_stream_read_int32_be(stream); + ofs_indices = g3d_stream_read_int32_be(stream); + + /* read vertex data */ + g3d_stream_seek(stream, off_start + ofs_verts, G_SEEK_SET); + object->vertex_count = nvertex; + object->vertex_data = g_new0(G3DFloat, nvertex * 3); + normals = g_new0(G3DFloat, nvertex * 3); + for(j = 0; j < nvertex; j++) { + + } + + /* read texture coords */ + g3d_stream_seek(stream, off_start + ofs_texcoords, G_SEEK_SET); + object->tex_vertex_data = g_new0(G3DFloat, nvertex * 2); + for(j = 0; j < nvertex; j++) { + object->tex_vertex_data[j * 2 + 0] = + g3d_stream_read_float_be(stream); + object->tex_vertex_data[j * 2 + 1] = + g3d_stream_read_float_be(stream); + } + + /* read triangles */ + /* TODO */ + } + + return TRUE; +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("Darkplaces engine models."); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g_strsplit("dpm", ":", 0); +} + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_dxf/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_dxf +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_dxf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_dxf_la_OBJECTS = imp_dxf.lo imp_dxf_callbacks.lo \ + imp_dxf_section.lo imp_dxf_color.lo imp_dxf_prop.lo +imp_dxf_la_OBJECTS = $(am_imp_dxf_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_dxf_la_SOURCES) +DIST_SOURCES = $(imp_dxf_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = \ + imp_dxf.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_dxf_la_SOURCES = imp_dxf.c imp_dxf.h \ + imp_dxf_types.h imp_dxf_def.h imp_dxf_vars.h \ + imp_dxf_entities.h imp_dxf_chunks.h \ + imp_dxf_callbacks.c imp_dxf_callbacks.h \ + imp_dxf_section.c imp_dxf_section.h \ + imp_dxf_color.c imp_dxf_color.h \ + imp_dxf_prop.c imp_dxf_prop.h + +imp_dxf_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_dxf.la: $(imp_dxf_la_OBJECTS) $(imp_dxf_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_dxf_la_OBJECTS) $(imp_dxf_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_dxf.Plo +include ./$(DEPDIR)/imp_dxf_callbacks.Plo +include ./$(DEPDIR)/imp_dxf_color.Plo +include ./$(DEPDIR)/imp_dxf_prop.Plo +include ./$(DEPDIR)/imp_dxf_section.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = \ + imp_dxf.la + +LIBTOOL += --quiet + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_dxf_la_SOURCES = imp_dxf.c imp_dxf.h \ + imp_dxf_types.h imp_dxf_def.h imp_dxf_vars.h \ + imp_dxf_entities.h imp_dxf_chunks.h \ + imp_dxf_callbacks.c imp_dxf_callbacks.h \ + imp_dxf_section.c imp_dxf_section.h \ + imp_dxf_color.c imp_dxf_color.h \ + imp_dxf_prop.c imp_dxf_prop.h +imp_dxf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_dxf +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_dxf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_dxf_la_OBJECTS = imp_dxf.lo imp_dxf_callbacks.lo \ + imp_dxf_section.lo imp_dxf_color.lo imp_dxf_prop.lo +imp_dxf_la_OBJECTS = $(am_imp_dxf_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_dxf_la_SOURCES) +DIST_SOURCES = $(imp_dxf_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = \ + imp_dxf.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_dxf_la_SOURCES = imp_dxf.c imp_dxf.h \ + imp_dxf_types.h imp_dxf_def.h imp_dxf_vars.h \ + imp_dxf_entities.h imp_dxf_chunks.h \ + imp_dxf_callbacks.c imp_dxf_callbacks.h \ + imp_dxf_section.c imp_dxf_section.h \ + imp_dxf_color.c imp_dxf_color.h \ + imp_dxf_prop.c imp_dxf_prop.h + +imp_dxf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_dxf.la: $(imp_dxf_la_OBJECTS) $(imp_dxf_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_dxf_la_OBJECTS) $(imp_dxf_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_callbacks.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_color.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_prop.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_section.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id: imp_dxf.c 256 2008-09-04 12:02:58Z mmmaddd $ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "imp_dxf.h" +#include "imp_dxf_section.h" +#include "imp_dxf_def.h" + +static void dxf_cleanup(DxfGlobalData *global); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + gchar binmagic[22]; + G3DObject *object; + G3DMaterial *material; + DxfGlobalData *global; + G3DMatrix rmatrix[16]; + + global = g_new0(DxfGlobalData, 1); + global->context = context; + global->model = model; + global->stream = stream; + global->blocks = g_hash_table_new(g_str_hash, g_str_equal); + + setlocale(LC_NUMERIC, "C"); + + if((g3d_stream_read(stream, binmagic, 22) == 22) && + (strncmp(binmagic, "AutoCAD Binary DXF", 18) == 0)) + global->binary = TRUE; + else { + setlocale(LC_NUMERIC, "C"); + g3d_stream_seek(stream, 0, G_SEEK_SET); + } + + object = g_new0(G3DObject, 1); + object->name = g_strdup("DXF Object"); + model->objects = g_slist_append(model->objects, object); + + material = g3d_material_new(); + material->name = g_strdup("default material"); + material->flags |= G3D_FLAG_MAT_TWOSIDE; + object->materials = g_slist_append(object->materials, material); + + while(!g3d_stream_eof(stream)) { + int retval = dxf_read_section(global, object); + if(retval != TRUE) { + if(retval == 0xE0F) { + g3d_matrix_identity(rmatrix); + g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix); + g3d_model_transform(model, rmatrix); + dxf_cleanup(global); + return TRUE; + } + g_printerr("error in section..\n"); + dxf_cleanup(global); + return FALSE; + } + } + + g3d_matrix_identity(rmatrix); + g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix); + g3d_model_transform(model, rmatrix); + dxf_cleanup(global); + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("AutoCAD models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("dxf", ":", 0); +} + +/*****************************************************************************/ + +static void dxf_cleanup(DxfGlobalData *global) +{ + g_hash_table_destroy(global->blocks); + g_free(global); +} + +gboolean dxf_read_section(DxfGlobalData *global, G3DObject *object) +{ + gint grpcode; + gchar val_str[DXF_MAX_LINE + 1]; + + grpcode = dxf_read_code(global); + if(grpcode != 0) { +#if DEBUG > 0 + g_printerr("unexpected group code: %d (0 expected)\n", grpcode); +#endif + return FALSE; + } + dxf_read_string(global, val_str); + if(strcmp("EOF", val_str) == 0) + return 0xE0F; + if(strcmp("SECTION", val_str) != 0) { +#if DEBUG > 0 + g_printerr("SECTION expected, found: %s\n", val_str); +#endif + return FALSE; + } + grpcode = dxf_read_code(global); + if(grpcode != 2) { +#if DEBUG > 0 + g_printerr("unexpected group code: %d (2 expected)\n", grpcode); +#endif + return FALSE; + } + dxf_read_string(global, val_str); + + if(strcmp(val_str, "HEADER") == 0) + return dxf_section_HEADER(global); + else if(strcmp(val_str, "TABLES") == 0) + return dxf_section_TABLES(global); + else if(strcmp(val_str, "ENTITIES") == 0) + return dxf_section_ENTITIES(global); + else if(strcmp(val_str, "BLOCKS") == 0) + return dxf_section_BLOCKS(global); + else if(strcmp(val_str, "OBJECTS") == 0) + return dxf_section_OBJECTS(global); + else if(strcmp(val_str, "CLASSES") == 0) + return dxf_section_CLASSES(global); + else { +#if DEBUG > 0 + g_printerr("unknown section '%s', skipping...\n", val_str); +#endif + dxf_skip_section(global); + } + return TRUE; +} + +gchar *dxf_read_string(DxfGlobalData *global, gchar *value) +{ + if(global->binary) { + int pos = 0; + int c; + do + { + c = g3d_stream_read_int8(global->stream); + value[pos] = (char)c; + pos++; + } while(c != '\0'); + return value; + } else { + gchar line[DXF_MAX_LINE + 1]; + + g3d_stream_read_line(global->stream, line, DXF_MAX_LINE); + line[DXF_MAX_LINE] = '\0'; + if(sscanf(line, "%s", value) == 1) + return g_strchomp(value); + if(sscanf(line, " %s", value) == 1) + return g_strchomp(value); + return NULL; + } +} + +gint32 dxf_read_code(DxfGlobalData *global) +{ + gint32 val = DXF_CODE_INVALID; + gchar line[DXF_MAX_LINE + 1]; + + if(global->binary) + return g3d_stream_read_int8(global->stream); + else { + g3d_stream_read_line(global->stream, line, DXF_MAX_LINE); + if((sscanf(line, "%d", &val) != 1) && + (sscanf(line, " %d", &val) != 1)) + return DXF_CODE_INVALID; + if(val == 999) { /* comment */ + g3d_stream_read_line(global->stream, line, DXF_MAX_LINE); + return dxf_read_code(global); + } + return val; + } +} + +gint32 dxf_read_int16(DxfGlobalData *global) +{ + if(global->binary) + return g3d_stream_read_int16_le(global->stream); + else + { + gint32 val; + gchar line[DXF_MAX_LINE]; + + g3d_stream_read_line(global->stream, line, DXF_MAX_LINE); + if(sscanf(line, "%i", &val) == 1) + return val; + if(sscanf(line, " %i", &val) == 1) + return val; + else + return DXF_CODE_INVALID; + } +} + +gint32 dxf_read_int32(DxfGlobalData *global) +{ + if(global->binary) + return g3d_stream_read_int32_le(global->stream); + else + { + gint32 val; + gchar line[DXF_MAX_LINE]; + + g3d_stream_read_line(global->stream, line, DXF_MAX_LINE); + if(sscanf(line, "%i", &val) == 1) + return val; + if(sscanf(line, " %i", &val) == 1) + return val; + else + return DXF_CODE_INVALID; + } +} + +gdouble dxf_read_float64(DxfGlobalData *global) +{ + if(global->binary) + return g3d_stream_read_double_le(global->stream); + else + { + gdouble val; + gchar line[DXF_MAX_LINE]; + + g3d_stream_read_line(global->stream, line, DXF_MAX_LINE); + if(sscanf(line, "%lf", &val) == 1) + return val; + if(sscanf(line, " %lf", &val) == 1) + return val; + else + return 0.0; + } +} + +gboolean dxf_skip_section(DxfGlobalData *global) +{ + gchar c, buf[7], line[DXF_MAX_LINE]; + gsize read; + + while(!g3d_stream_eof(global->stream)) + if(global->binary) { + do { c = g3d_stream_read_int8(global->stream); } while(c != 0); + read = g3d_stream_read(global->stream, buf, 7); + if((read == 7) && (strncmp(buf, "ENDSEC", 6) == 0)) + return TRUE; + else + g3d_stream_seek(global->stream, -read, G_SEEK_CUR); + } else { + g3d_stream_read_line(global->stream, line, DXF_MAX_LINE); + if(strncmp(line, "ENDSEC", 6) == 0) + return TRUE; + } + return TRUE; +} + 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_DXF_H +#define _IMP_DXF_H + +#include +#include + +#include "imp_dxf_types.h" + +#define DXF_TEST_ENDSEC(str) \ + if(strcmp((str), "ENDSEC") == 0) return TRUE; + +#define DXF_HANDLE_UNKNOWN(global, key, str, section) \ + if(global->binary) { \ + g_warning("imp_dxf: unhandled key %d in section %s @ %#x", \ + key, section, (guint32)g3d_stream_tell(global->stream)); \ + return FALSE; \ + } else { \ + g3d_stream_read_line(global->stream, str, DXF_MAX_LINE); \ + g_debug(\ + "imp_dxf: skipping line %d (section %s, key %d):\n\t\"%s\"\n", \ + g3d_stream_line(global->stream), section, key, str); \ + } + +gint32 dxf_read_section(DxfGlobalData *global, G3DObject *object); +gint32 dxf_read_code(DxfGlobalData *global); +gchar *dxf_read_string(DxfGlobalData *global, gchar *value); +gint32 dxf_read_int16(DxfGlobalData *global); +gint32 dxf_read_int32(DxfGlobalData *global); +gdouble dxf_read_float64(DxfGlobalData *global); +gboolean dxf_skip_section(DxfGlobalData *global); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include +#include + +/* need a way to detect non-set float values */ +#ifndef FP_NAN +# ifdef HUGE +# define FP_NAN HUGE +# else +# define FP_NAN 3.40282347e+38F +# endif +#endif + +#include +#include +#include +#include + +#include "imp_dxf.h" +#include "imp_dxf_callbacks.h" +#include "imp_dxf_vars.h" +#include "imp_dxf_def.h" +#include "imp_dxf_prop.h" +#include "imp_dxf_color.h" + +static gboolean dxf_str_in_array(gchar **array, const gchar *needle) +{ + gchar **p = array; + while(*p != NULL) { + if(strcmp(*p, needle) == 0) + return TRUE; + p ++; + } + return FALSE; +} + +#define DXF_VAR_DEBUG 2 + +gboolean dxf_debug_var(DxfGlobalData *global, DxfLocalData *local) +{ + gint32 key; + gint16 i16; + gchar str[DXF_MAX_LINE + 1], strval[DXF_MAX_LINE + 1]; + gdouble x, y, z; + + dxf_read_string(global, str); + if(dxf_str_in_array(dxf_vars_vector3d, str)) { + key = dxf_read_code(global); /* 10 */ + x = dxf_read_float64(global); + key = dxf_read_code(global); /* 20 */ + y = dxf_read_float64(global); + key = dxf_read_code(global); /* 30 */ + z = dxf_read_float64(global); +#if DEBUG > DXF_VAR_DEBUG + g_debug("DXF: [v3d] %s: %.2f, %.2f, %.2f", str, x, y, z); +#endif + } else if(dxf_str_in_array(dxf_vars_vector2d, str)) { + key = dxf_read_code(global); /* 10 */ + x = dxf_read_float64(global); + key = dxf_read_code(global); /* 20 */ + y = dxf_read_float64(global); +#if DEBUG > DXF_VAR_DEBUG + g_debug("DXF: [v2d] %s: %.2f, %.2f", str, x, y); +#endif + } else { + key = dxf_read_code(global); + switch(key) { + case 1: case 2: case 3: case 4: + case 5: case 6: case 7: case 8: + /* string */ + dxf_read_string(global, strval); +#if DEBUG > DXF_VAR_DEBUG + g_debug("DXF: [str] %s: %s", str, strval); +#endif + break; + case 40: + case 50: + x = dxf_read_float64(global); +#if DEBUG > DXF_VAR_DEBUG + g_debug("DXF: [dbl] %s: %.2f", str, x); +#endif + break; + case 62: + case 70: + case 280: + case 290: /* FIXME: boolean */ + case 370: + case 380: + /* 16-bit integer */ + i16 = dxf_read_int16(global); +#if DEBUG > DXF_VAR_DEBUG + g_debug("DXF: [i16] %s: %d", str, i16); +#endif + break; + default: + DXF_HANDLE_UNKNOWN(global, key, strval, "** VARIABLE **"); + break; + } + } + return TRUE; +} + +static inline void dxf_object_append(DxfGlobalData *global, + DxfLocalData *local, G3DObject *object) +{ + if(local->edata->block) + local->edata->block->objects = g_slist_append( + local->edata->block->objects, object); + else + global->model->objects = g_slist_append(global->model->objects, + object); +} + +gboolean dxf_e_3DFACE(DxfGlobalData *global, DxfLocalData *local) +{ + G3DObject *object; + G3DFace *face; + G3DMaterial *material; + gint32 key, i, j, col; + gboolean quad; + + col = dxf_prop_get_int(local->eprop, 62, 254); + material = dxf_color_get_material(global->model, col); + if(material == NULL) + material = local->edata->material; + + object = g_slist_nth_data(global->model->objects, 0); + local->edata->object = object; + local->edata->polyline_flags = 0; + + quad = (dxf_prop_get_dbl(local->eprop, 13, FP_NAN) != FP_NAN); + + face = g_new0(G3DFace, 1); + face->material = material; + face->vertex_count = quad ? 4 : 3; + face->vertex_indices = g_new0(guint32, face->vertex_count); + local->edata->vertex_offset = object->vertex_count; + for(i = 0; i < face->vertex_count; i ++) + face->vertex_indices[i] = local->edata->vertex_offset + i; + + object->vertex_count += face->vertex_count; + object->vertex_data = g_realloc(object->vertex_data, + object->vertex_count * 3 * sizeof(G3DFloat)); + object->faces = g_slist_prepend(object->faces, face); + + for(i = 0; i < face->vertex_count; i ++) { + for(j = 0; j < 3; j ++) { + key = (j + 1) * 10 + i; + object->vertex_data[(local->edata->vertex_offset + i) * 3 + j] = + dxf_prop_get_dbl(local->eprop, key, 0.0); +#if DEBUG > 2 + g_debug("| 3DFACE: data[%d = o + %d * 3 + %d] = prop[%d] = %.2f", + (local->edata->vertex_offset + i) * 3 + j, + i, j, key, + object->vertex_data[ + (local->edata->vertex_offset + i) * 3 + j]); +#endif + } + } + return TRUE; +} + +gboolean dxf_e_BLOCK(DxfGlobalData *global, DxfLocalData *local) +{ + G3DObject *object; + const gchar *name; + + name = dxf_prop_get_str(local->eprop, 2, NULL); + if(local->sid == DXF_ID_BLOCKS) { + object = g_new0(G3DObject, 1); + object->hide = TRUE; + object->name = name ? g_strdup(name) : + g_strdup_printf("unnamed block @ line %d", + g3d_stream_line(global->stream)); + local->edata->block = object; + global->model->objects = g_slist_append(global->model->objects, + object); + if(name) + g_hash_table_insert(global->blocks, object->name, object); + } + return TRUE; +} + +gboolean dxf_e_ENDBLK(DxfGlobalData *global, DxfLocalData *local) +{ + local->edata->block = NULL; + return TRUE; +} + +gboolean dxf_e_INSERT(DxfGlobalData *global, DxfLocalData *local) +{ + G3DObject *block, *object, *subobject; + GSList *item; + const gchar *name; + G3DFloat matrix[16]; + + name = dxf_prop_get_str(local->eprop, 2, "*** error ***"); + block = g_hash_table_lookup(global->blocks, name); + if(block) { + object = g_new0(G3DObject, 1); + object->name = g_strdup_printf("copy of %s", name); + for(item = block->objects; item != NULL; item = item->next) { + subobject = g3d_object_duplicate(item->data); + object->objects = g_slist_append(object->objects, subobject); + } + global->model->objects = g_slist_append(global->model->objects, + object); + local->edata->object = object; + local->edata->vertex_offset = 0; + + /* scale */ + g3d_matrix_identity(matrix); + g3d_matrix_scale( + dxf_prop_get_dbl(local->eprop, 41, 1.0), + dxf_prop_get_dbl(local->eprop, 42, 1.0), + dxf_prop_get_dbl(local->eprop, 43, 1.0), + matrix); + g3d_object_transform(object, matrix); + + /* rotate */ + g3d_matrix_identity(matrix); + g3d_matrix_rotate( + dxf_prop_get_dbl(local->eprop, 50, 0.0), + dxf_prop_get_dbl(local->eprop, 210, 0.0), + dxf_prop_get_dbl(local->eprop, 220, 0.0), + dxf_prop_get_dbl(local->eprop, 230, 1.0), + matrix); + g3d_object_transform(object, matrix); + + /* translate */ + g3d_matrix_identity(matrix); + g3d_matrix_translate( + dxf_prop_get_dbl(local->eprop, 10, 0.0), + dxf_prop_get_dbl(local->eprop, 20, 0.0), + dxf_prop_get_dbl(local->eprop, 30, 0.0), + matrix); + g3d_object_transform(object, matrix); + } + return TRUE; +} + +gboolean dxf_e_POLYLINE(DxfGlobalData *global, DxfLocalData *local) +{ + G3DObject *object = NULL; + G3DMaterial *material; + guint32 flags; + gint32 m, n, col; + + col = dxf_prop_get_int(local->eprop, 62, 254); + material = dxf_color_get_material(global->model, col); + if(material == NULL) + material = local->edata->material; + + flags = dxf_prop_get_int(local->eprop, 70, 0); + if(flags & DXF_POLY_POLYFACE) { + object = g_new0(G3DObject, 1); + object->name = g_strdup_printf("POLYFACE @ line %d", + g3d_stream_line(global->stream)); + object->vertex_count = dxf_prop_get_int(local->eprop, 71, 0); + object->vertex_data = g_new0(G3DFloat, 3 * object->vertex_count); + } else if(flags & DXF_POLY_3D_POLYMESH) { + m = dxf_prop_get_int(local->eprop, 71, 0); + n = dxf_prop_get_int(local->eprop, 72, 0); + object = g3d_primitive_mesh(n, m, + (flags & DXF_POLY_CLOSED), + (flags & DXF_POLY_N_CLOSED), + material); + object->name = g_strdup_printf("3D POLYMESH %d x %d @ line %d", + m, n, g3d_stream_line(global->stream)); + } + + if(object) + dxf_object_append(global, local, object); + + local->edata->object = object; + local->edata->vertex_offset = 0; + local->edata->polyline_flags = flags; + local->edata->tmp_i1 = 0; + return TRUE; +} + +gboolean dxf_e_VERTEX(DxfGlobalData *global, DxfLocalData *local) +{ + G3DObject *object = local->edata->object; + G3DFace *face; + G3DMaterial *material; + guint32 index, flags; + gint32 i, col; + + if(object == NULL) + return TRUE; + + index = local->edata->vertex_offset + local->edata->tmp_i1; + + if(local->edata->polyline_flags & DXF_POLY_3D_POLYMESH) { + g_return_val_if_fail(index < object->vertex_count, FALSE); + for(i = 0; i < 3; i ++) + object->vertex_data[index * 3 + i] = dxf_prop_get_dbl(local->eprop, + 10 * (i + 1), 0.0); + local->edata->tmp_i1 ++; + } else if(local->edata->polyline_flags & DXF_POLY_POLYFACE) { + flags = dxf_prop_get_int(local->eprop, 70, 0); + if(flags & 64) { /* vertex coords */ + g_return_val_if_fail(index < object->vertex_count, FALSE); + for(i = 0; i < 3; i ++) + object->vertex_data[index * 3 + i] = dxf_prop_get_dbl( + local->eprop, 10 * (i + 1), 0.0); + local->edata->tmp_i1 ++; + } + if(flags & 128) { + col = dxf_prop_get_int(local->eprop, 62, 254); + material = dxf_color_get_material(global->model, col); + if(material == NULL) + material = local->edata->material; + + face = g_new0(G3DFace, 1); + face->material = material; + face->vertex_count = + dxf_prop_get_int(local->eprop, 74, 0) ? 4 : 3; + face->vertex_indices = g_new0(guint32, face->vertex_count); + for(i = 0; i < face->vertex_count; i ++) + face->vertex_indices[i] = + MAX(ABS(dxf_prop_get_int(local->eprop, 71 + i, 0)) - 1, 0); + object->faces = g_slist_prepend(object->faces, face); + } + } + + return TRUE; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_DXF_CALLBACKS_H +#define _IMP_DXF_CALLBACKS_H + +#include "imp_dxf_types.h" + +gboolean dxf_debug_var(DxfGlobalData *global, DxfLocalData *local); + +gboolean dxf_e_3DFACE(DxfGlobalData *global, DxfLocalData *local); +gboolean dxf_e_BLOCK(DxfGlobalData *global, DxfLocalData *local); +gboolean dxf_e_ENDBLK(DxfGlobalData *global, DxfLocalData *local); +gboolean dxf_e_INSERT(DxfGlobalData *global, DxfLocalData *local); +gboolean dxf_e_POLYLINE(DxfGlobalData *global, DxfLocalData *local); +gboolean dxf_e_VERTEX(DxfGlobalData *global, DxfLocalData *local); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_DXF_CHUNKS_H +#define _IMP_DXF_CHUNKS_H + +#include "imp_dxf_callbacks.h" +#include "imp_dxf_types.h" +#include "imp_dxf_def.h" + +static DxfChunkInfo dxf_chunks[] = { + /* app: <0 */ + /* string: 0-9 */ + { 0, "entity type", DXF_T_EMPTY }, + { 1, "primary text value", DXF_T_STRING }, + { 2, "name", DXF_T_STRING }, + { 3, "other text (3)", DXF_T_STRING }, + { 4, "other text (4)", DXF_T_STRING }, + { 5, "entity handle", DXF_T_STRING }, + { 6, "linetype name", DXF_T_STRING }, + { 7, "text style name", DXF_T_STRING }, + { 8, "layer name", DXF_T_STRING }, + { 9, "variable name identifier", DXF_T_UNKNOWN }, + /* double precision 3D point value: 10-39 */ + { 10, "primary point, X value", DXF_T_FLOAT64 }, + { 11, "point #2, X value", DXF_T_FLOAT64 }, + { 12, "point #3, X value", DXF_T_FLOAT64 }, + { 13, "point #4, X value", DXF_T_FLOAT64 }, + { 14, "point #5, X value", DXF_T_FLOAT64 }, + { 15, "point #6, X value", DXF_T_FLOAT64 }, + { 16, "point #7, X value", DXF_T_FLOAT64 }, + { 17, "point #8, X value", DXF_T_FLOAT64 }, + { 18, "point #9, X value", DXF_T_FLOAT64 }, + { 19, "point #10, X value", DXF_T_FLOAT64 }, + { 20, "primary point, Y value", DXF_T_FLOAT64 }, + { 21, "point #2, Y value", DXF_T_FLOAT64 }, + { 22, "point #3, Y value", DXF_T_FLOAT64 }, + { 23, "point #4, Y value", DXF_T_FLOAT64 }, + { 24, "point #5, Y value", DXF_T_FLOAT64 }, + { 25, "point #6, Y value", DXF_T_FLOAT64 }, + { 26, "point #7, Y value", DXF_T_FLOAT64 }, + { 27, "point #8, Y value", DXF_T_FLOAT64 }, + { 28, "point #9, Y value", DXF_T_FLOAT64 }, + { 29, "point #10, Y value", DXF_T_FLOAT64 }, + { 30, "primary point, Z value", DXF_T_FLOAT64 }, + { 31, "point #2, Z value", DXF_T_FLOAT64 }, + { 32, "point #3, Z value", DXF_T_FLOAT64 }, + { 33, "point #4, Z value", DXF_T_FLOAT64 }, + { 34, "point #5, Z value", DXF_T_FLOAT64 }, + { 35, "point #6, Z value", DXF_T_FLOAT64 }, + { 36, "point #7, Z value", DXF_T_FLOAT64 }, + { 37, "point #8, Z value", DXF_T_FLOAT64 }, + { 38, "point #9, Z value", DXF_T_FLOAT64 }, + { 39, "point #10, Z value", DXF_T_FLOAT64 }, + /* double precision floating-point value: 40-59 */ + { 40, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 41, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 42, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 43, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 44, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 45, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 46, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 47, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 48, "linetype scale dbl-prec fp value", DXF_T_FLOAT64 }, + { 49, "repeated dbl-prec fp value", DXF_T_FLOAT64 }, + { 50, "angle", DXF_T_FLOAT64 }, + { 51, "angle", DXF_T_FLOAT64 }, + { 52, "angle", DXF_T_FLOAT64 }, + /* 16-bit integer value: 60-79 */ + { 60, "entity visibility", DXF_T_INT16 }, + { 62, "color number", DXF_T_INT16 }, + { 65, "integer value, 16-bit", DXF_T_INT16 }, + { 66, "entities follow", DXF_T_INT16 }, + { 67, "space", DXF_T_INT16 }, + { 68, "APP: viewport not visible", DXF_T_INT16 }, + { 69, "APP: viewport identification number", DXF_T_INT16 }, + { 70, "integer value, 16-bit", DXF_T_INT16 }, + { 71, "integer value, 16-bit", DXF_T_INT16 }, + { 72, "integer value, 16-bit", DXF_T_INT16 }, + { 73, "integer value, 16-bit", DXF_T_INT16 }, + { 74, "integer value, 16-bit", DXF_T_INT16 }, + { 75, "integer value, 16-bit", DXF_T_INT16 }, + { 76, "integer value, 16-bit", DXF_T_INT16 }, + { 77, "integer value, 16-bit", DXF_T_INT16 }, + { 78, "integer value, 16-bit", DXF_T_INT16 }, + { 79, "integer value, 16-bit", DXF_T_INT16 }, + /* 32-bit integer value: 90-99 */ + { 90, "integer value, 32-bit", DXF_T_INT32 }, + { 91, "integer value, 32-bit", DXF_T_INT32 }, + + { 100, "subclass data marker", DXF_T_STRING }, + { 102, "control string", DXF_T_STRING }, + { 105, "DIMVAR object handle", DXF_T_STRING }, + + { 110, "UCS origin, X value", DXF_T_FLOAT64 }, + { 111, "UCS X-axis, X value", DXF_T_FLOAT64 }, + { 112, "UCS Y-axis, X value", DXF_T_FLOAT64 }, + { 120, "UCS origin, Y value", DXF_T_FLOAT64 }, + { 121, "UCS X-axis, Y value", DXF_T_FLOAT64 }, + { 122, "UCS Y-axis, Y value", DXF_T_FLOAT64 }, + { 130, "UCS origin, Z value", DXF_T_FLOAT64 }, + { 131, "UCS X-axis, Z value", DXF_T_FLOAT64 }, + { 132, "UCS Y-axis, Z value", DXF_T_FLOAT64 }, + + /* double precision floating-point value: 140-149 */ + { 140, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 141, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 142, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 143, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 144, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 145, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 146, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 147, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 148, "double-precision floating-point value", DXF_T_FLOAT64 }, + { 149, "double-precision floating-point value", DXF_T_FLOAT64 }, + /* 16-bit integer value: 170-179 */ + { 170, "integer value, 16-bit", DXF_T_INT16 }, + { 171, "integer value, 16-bit", DXF_T_INT16 }, + { 172, "integer value, 16-bit", DXF_T_INT16 }, + + { 210, "extrusion direction, X value", DXF_T_FLOAT64 }, + { 220, "extrusion direction, Y value", DXF_T_FLOAT64 }, + { 230, "extrusion direction, Z value", DXF_T_FLOAT64 }, + /* 16-bit integer value: 270-279 */ + { 270, "integer value, 16-bit", DXF_T_INT16 }, + { 271, "integer value, 16-bit", DXF_T_INT16 }, + { 272, "integer value, 16-bit", DXF_T_INT16 }, + { 273, "integer value, 16-bit", DXF_T_INT16 }, + { 274, "integer value, 16-bit", DXF_T_INT16 }, + { 275, "integer value, 16-bit", DXF_T_INT16 }, + { 276, "integer value, 16-bit", DXF_T_INT16 }, + { 277, "integer value, 16-bit", DXF_T_INT16 }, + { 278, "integer value, 16-bit", DXF_T_INT16 }, + { 279, "integer value, 16-bit", DXF_T_INT16 }, + /* 16-bit integer value: 280-289 */ + { 280, "integer value, 16-bit", DXF_T_INT16 }, + { 281, "integer value, 16-bit", DXF_T_INT16 }, + { 282, "integer value, 16-bit", DXF_T_INT16 }, + { 283, "integer value, 16-bit", DXF_T_INT16 }, + { 284, "integer value, 16-bit", DXF_T_INT16 }, + { 285, "integer value, 16-bit", DXF_T_INT16 }, + { 286, "integer value, 16-bit", DXF_T_INT16 }, + { 287, "integer value, 16-bit", DXF_T_INT16 }, + { 288, "integer value, 16-bit", DXF_T_INT16 }, + { 289, "integer value, 16-bit", DXF_T_INT16 }, + + /* boolean flag value: 290-299 */ + + { 330, "softpointer handle", DXF_T_STRING }, + { 331, "softpointer handle", DXF_T_STRING }, + { 340, "hardpointer handle", DXF_T_STRING }, + { 350, "softowner handle", DXF_T_STRING }, + + { 370, "lineweight enum value", DXF_T_INT16 }, + + { 390, "PlotStyleName handle", DXF_T_STRING }, + + { 420, "integer value, 32-bit", DXF_T_INT32 }, + + { 1000, "ASCII string", DXF_T_STRING }, + { 1001, "registered application name", DXF_T_STRING }, + { 1002, "extended data control string", DXF_T_STRING }, + + { 1010, "extended data point, X value", DXF_T_FLOAT64 }, + { 1011, "extended 3D world space, X value", DXF_T_FLOAT64 }, + { 1020, "extended data point, Y value", DXF_T_FLOAT64 }, + { 1021, "extended 3D world space, Y value", DXF_T_FLOAT64 }, + { 1030, "extended data point, Z value", DXF_T_FLOAT64 }, + { 1031, "extended 3D world space, Z value", DXF_T_FLOAT64 }, + { 1040, "extended data dbl-prec fp value", DXF_T_FLOAT64 }, + { 1041, "extended data distance value", DXF_T_FLOAT64 }, + { 1070, "extended data 16-bit integer", DXF_T_INT16 }, + { 1071, "extended data 32-bit integer", DXF_T_INT32 }, + + { DXF_CODE_INVALID, NULL, DXF_T_UNKNOWN }, +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include +#include + +static G3DMaterial *get_material(G3DModel *model, const gchar *cname) +{ + G3DMaterial *material; + GSList *item; + + for(item = model->materials; item != NULL; item = item->next) { + material = item->data; + if(strcmp(material->name, cname) == 0) + return material; + } + return NULL; +} + +#define DXF_COL_SET(rx, gx, bx) \ + material->r = ((G3DFloat)(rx) / 255.0); \ + material->g = ((G3DFloat)(gx) / 255.0); \ + material->b = ((G3DFloat)(bx) / 255.0); + +/* + * based on GPL code from + * http://wiki.inkscape.org/wiki/index.php/SOC_Accepted_Proposals + */ +static gboolean set_aci(G3DMaterial *material, gint32 aci) +{ + G3DFloat r, g, b, h, s, l, m; + gint32 mod10; + + if((aci < 10) || (aci > 249)) { + switch(aci) { + case 0: DXF_COL_SET(0x00, 0x00, 0x00); break; + case 1: DXF_COL_SET(0xFF, 0x00, 0x00); break; + case 2: DXF_COL_SET(0xFF, 0xFF, 0x00); break; + case 3: DXF_COL_SET(0x00, 0xFF, 0x00); break; + case 4: DXF_COL_SET(0x00, 0xFF, 0xFF); break; + case 5: DXF_COL_SET(0x00, 0x00, 0xFF); break; + case 6: DXF_COL_SET(0xFF, 0x00, 0xFF); break; + case 7: DXF_COL_SET(0xFF, 0xFF, 0xFF); break; + case 8: DXF_COL_SET(0x80, 0x80, 0x80); break; + case 9: DXF_COL_SET(0xC0, 0xC0, 0xC0); break; + + case 250: DXF_COL_SET(0x33, 0x33, 0x33); break; + case 251: DXF_COL_SET(0x5B, 0x5B, 0x5B); break; + case 252: DXF_COL_SET(0x84, 0x84, 0x84); break; + case 253: DXF_COL_SET(0xAD, 0xAD, 0xAD); break; + case 254: DXF_COL_SET(0xD6, 0xD6, 0xD6); break; + case 255: DXF_COL_SET(0xFF, 0xFF, 0xFF); break; + default: break; + } + } else { + mod10 = aci % 10; + h = 1.5 * (aci - mod10 - 10); + s = ((aci % 2) ? 0.5 : 1.0); + if(mod10 < 2) l = 1.0; + else if(mod10 < 4) l = 0.8; + else if(mod10 < 6) l = 0.6; + else if(mod10 < 8) l = 0.5; + else l = 0.3; + + if(h <= 120) { + r = (120 - h) / 60; + g = h / 60; + b = 0; + } else if(h <= 240) { + r = 0; + g = (240 - h) / 60; + b = (h - 120) / 60; + } else if(h <= 360) { + r = (h - 240) / 60; + g = 0; + b = (360 - h) / 60; + } + r = MIN(r, 1.0); + g = MIN(g, 1.0); + b = MIN(b, 1.0); + m = MAX(r, MAX(g, b)); + material->r = (m - s * (m - r)) * l; + material->g = (m - s * (m - g)) * l; + material->b = (m - s * (m - b)) * l; + } + return TRUE; +} + +G3DMaterial *dxf_color_get_material(G3DModel *model, gint32 aci) +{ + gchar *cname; + G3DMaterial *material; + + cname = g_strdup_printf("color #%d", ABS(aci)); + material = get_material(model, cname); + if(material != NULL) { + g_free(cname); + return material; + } + material = g3d_material_new(); + material->name = cname; + model->materials = g_slist_append(model->materials, material); + set_aci(material, ABS(aci)); +#if DEBUG > 0 + g_debug("| color: %.2f %.2f %.2f", material->r, material->g, material->b); +#endif + + return material; +} + 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_DXF_COLOR_H +#define _IMP_DXF_COLOR_H + +#include + +G3DMaterial *dxf_color_get_material(G3DModel *model, gint32 aci); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_DXF_DEF_H +#define _IMP_DXF_DEF_H + +#define DXF_MAX_LINE 512 +#define DXF_CODE_INVALID 0xDEADBEEF + +#define DXF_ID_HEADER 0x00FF0000 +#define DXF_ID_TABLES 0x00FF0001 +#define DXF_ID_ENTITIES 0x00FF0002 +#define DXF_ID_BLOCKS 0x00FF0003 +#define DXF_ID_OBJECTS 0x00FF0004 +#define DXF_ID_CLASSES 0x00FF0005 + +#define DXF_E_3DFACE 0x0001 +#define DXF_E_POLYLINE 0x0002 +#define DXF_E_VERTEX 0x0003 +#define DXF_E_BLOCK 0x0004 +#define DXF_E_INSERT 0x0005 +#define DXF_E_OTHER 0xFFFF + +#define DXF_POLY_CLOSED 1 +#define DXF_POLY_CURVE_FIT_ADDED 2 +#define DXF_POLY_SPLINE_FIT_ADDED 4 +#define DXF_POLY_3D_POLYLINE 8 +#define DXF_POLY_3D_POLYMESH 16 +#define DXF_POLY_N_CLOSED 32 +#define DXF_POLY_POLYFACE 64 +#define DXF_POLY_LT_PATTERN 128 + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_DXF_ENTITIES_H +#define _IMP_DXF_ENTITIES_H + +#include "imp_dxf_types.h" +#include "imp_dxf_def.h" +#include "imp_dxf_callbacks.h" + +static DxfEntityInfo dxf_entities[] = { + { "3DFACE", "3D face", DXF_E_3DFACE, dxf_e_3DFACE }, + { "POLYLINE", "Polyline", DXF_E_POLYLINE, dxf_e_POLYLINE }, + { "VERTEX", "Vertex", DXF_E_VERTEX, dxf_e_VERTEX }, + + { "BLOCK", "block", DXF_E_BLOCK, dxf_e_BLOCK }, + { "ENDBLK", "end of block", DXF_E_OTHER, dxf_e_ENDBLK }, + { "INSERT", "insert block reference", DXF_E_INSERT, dxf_e_INSERT }, + + { "3DLINE", "3D line", DXF_E_OTHER, NULL }, + { "ACDBDICTIONARYWDFLT", "unknown", DXF_E_OTHER, NULL }, + { "ACDBPLACEHOLDER", "unknown", DXF_E_OTHER, NULL }, + { "APPID", "application ID", DXF_E_OTHER, NULL }, + { "ARC", "arc", DXF_E_OTHER, NULL }, + { "ATTDEF", "attribute definition", DXF_E_OTHER, NULL }, + { "ATTRIB", "attribute", DXF_E_OTHER, NULL }, + { "BLOCK_RECORD", "block record", DXF_E_OTHER, NULL }, + { "CIRCLE", "circle", DXF_E_OTHER, NULL }, + { "CLASS", "class", DXF_E_OTHER, NULL }, + { "DICTIONARY", "dictionary", DXF_E_OTHER, NULL }, + { "DIMSTYLE", "unknown", DXF_E_OTHER, NULL }, + { "ENDTAB", "end of table", DXF_E_OTHER, NULL }, + { "LAYER", "layer", DXF_E_OTHER, NULL }, + { "LAYOUT", "layout", DXF_E_OTHER, NULL }, + { "LINE", "line", DXF_E_OTHER, NULL }, + { "LTYPE", "line type", DXF_E_OTHER, NULL }, + { "LWPOLYLINE", "unknown", DXF_E_OTHER, NULL }, + { "MLINESTYLE", "unknown", DXF_E_OTHER, NULL }, + { "POINT", "point", DXF_E_OTHER, NULL }, + { "SEQEND", "end of sequence", DXF_E_OTHER, NULL }, + { "SPLINE", "spline curve", DXF_E_OTHER, NULL }, + { "STYLE", "style", DXF_E_OTHER, NULL }, + { "TABLE", "table", DXF_E_OTHER, NULL }, + { "UCS", "UCS", DXF_E_OTHER, NULL }, + { "VIEW", "view", DXF_E_OTHER, NULL }, + { "VIEWPORT", "viewport", DXF_E_OTHER, NULL }, + { "VPORT", "viewport", DXF_E_OTHER, NULL }, + + { NULL, NULL, 0, NULL } +}; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include "imp_dxf_types.h" + +struct _DxfEntityProps { + GHashTable *hash; +}; + +typedef struct { + gint32 key; + DxfChunkType type; + union { + gint32 ival; + gdouble dval; + gchar *strval; + } u; +} DxfEProp; + +DxfEntityProps *dxf_prop_create(void) +{ + DxfEntityProps *eprop; + + eprop = g_new0(DxfEntityProps, 1); + eprop->hash = g_hash_table_new(g_int_hash, g_int_equal); + + return eprop; +} + +static gboolean remove_p(gpointer key, gpointer value, gpointer user_data) +{ + DxfEProp *p = value; + if(p->type == DXF_T_STRING) + g_free(p->u.strval); + g_free(p); + return TRUE; +} + +void dxf_prop_cleanup(DxfEntityProps *eprop) +{ + g_hash_table_foreach_remove(eprop->hash, remove_p, NULL); + g_hash_table_destroy(eprop->hash); + g_free(eprop); +} + +static DxfEProp *prop_get(DxfEntityProps *eprop, gint32 key) +{ + DxfEProp *p; + + p = g_hash_table_lookup(eprop->hash, &key); + if(p) + return p; + p = g_new0(DxfEProp, 1); + p->key = key; + g_hash_table_insert(eprop->hash, &(p->key), p); + return p; +} + +gboolean dxf_prop_set_int(DxfEntityProps *eprop, gint32 key, gint32 i) +{ + DxfEProp *p = prop_get(eprop, key); + p->type = DXF_T_INT32; + p->u.ival = i; + return TRUE; +} + +gboolean dxf_prop_set_dbl(DxfEntityProps *eprop, gint32 key, gdouble dbl) +{ + DxfEProp *p = prop_get(eprop, key); + p->type = DXF_T_FLOAT64; + p->u.dval = dbl; + return TRUE; +} + +gboolean dxf_prop_set_str(DxfEntityProps *eprop, gint32 key, + const gchar *str) +{ + DxfEProp *p = prop_get(eprop, key); + p->type = DXF_T_STRING; + if(p->u.strval) + g_free(p->u.strval); + p->u.strval = g_strdup(str); + return TRUE; +} + +gint32 dxf_prop_get_int(DxfEntityProps *eprop, gint32 key, gint32 dfl) +{ + DxfEProp *p = g_hash_table_lookup(eprop->hash, &key); + if(p) + return p->u.ival; + return dfl; +} + +gdouble dxf_prop_get_dbl(DxfEntityProps *eprop, gint32 key, gdouble dfl) +{ + DxfEProp *p = g_hash_table_lookup(eprop->hash, &key); + if(p) + return p->u.dval; + return dfl; +} + +const gchar *dxf_prop_get_str(DxfEntityProps *eprop, gint32 key, + const gchar *dfl) +{ + DxfEProp *p = g_hash_table_lookup(eprop->hash, &key); + if(p) + return p->u.strval; + return dfl; +} + 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_DXF_PROP_H +#define _IMP_DXF_PROP_H + +#include "imp_dxf_types.h" + +DxfEntityProps *dxf_prop_create(void); +void dxf_prop_cleanup(DxfEntityProps *eprop); + +gboolean dxf_prop_set_int(DxfEntityProps *eprop, gint32 key, gint32 i); +gboolean dxf_prop_set_dbl(DxfEntityProps *eprop, gint32 key, gdouble dbl); +gboolean dxf_prop_set_str(DxfEntityProps *eprop, gint32 key, + const gchar *str); + +gint32 dxf_prop_get_int(DxfEntityProps *eprop, gint32 key, gint32 dfl); +gdouble dxf_prop_get_dbl(DxfEntityProps *eprop, gint32 key, gdouble dfl); +const gchar *dxf_prop_get_str(DxfEntityProps *eprop, gint32 key, + const gchar *dfl); + +#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 @@ +/* $Id: imp_dxf_section.c 312 2008-11-17 18:28:56Z mmmaddd $ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include +#include + +#include + +#include "imp_dxf.h" +#include "imp_dxf_prop.h" +#include "imp_dxf_chunks.h" +#include "imp_dxf_entities.h" + +static DxfChunkInfo *dxf_get_chunk_info(DxfChunkInfo *chunks, gint32 id) +{ + guint32 i; + + for(i = 0; chunks[i].id != DXF_CODE_INVALID; i ++) + if(chunks[i].id == id) + return &(chunks[i]); + return NULL; +} + +static DxfEntityInfo *dxf_get_entity_info(const gchar *str) +{ + guint32 i; + + for(i = 0; dxf_entities[i].name != NULL; i ++) + if(strcmp(dxf_entities[i].name, str) == 0) + return &(dxf_entities[i]); +#if DEBUG > 0 + g_debug("unknown entity: %s", str); +#endif + return NULL; +} + +static gboolean dxf_entity_finalize(DxfGlobalData *global, guint32 sid, + DxfEntityData *edata, DxfEntityInfo *einfo, DxfEntityProps *eprop) +{ + DxfLocalData *local; + + if(einfo->callback) { + local = g_new0(DxfLocalData, 1); + local->sid = sid; + local->eid = einfo->id; + local->edata = edata; + local->eprop = eprop; + + einfo->callback(global, local); + + g_free(local); + } + return TRUE; +} + +static gboolean dxf_read_chunk(DxfGlobalData *global, DxfChunkInfo *cinfo, + DxfEntityProps *eprop) +{ + gint32 i; + gdouble dbl; + gchar str[DXF_MAX_LINE + 1]; + + switch(cinfo->type) { + case DXF_T_UNKNOWN: + if(cinfo->id == 9) /* variable name */ + return dxf_debug_var(global, NULL); + break; + case DXF_T_EMPTY: + return TRUE; + break; + case DXF_T_INT16: + i = dxf_read_int16(global); + dxf_prop_set_int(eprop, cinfo->id, i); + break; + case DXF_T_INT32: + i = dxf_read_int32(global); + dxf_prop_set_int(eprop, cinfo->id, i); + break; + case DXF_T_FLOAT64: + dbl = dxf_read_float64(global); + dxf_prop_set_dbl(eprop, cinfo->id, dbl); + break; + case DXF_T_STRING: + dxf_read_string(global, str); + dxf_prop_set_str(eprop, cinfo->id, str); + break; + } + return TRUE; +} + +static gboolean dxf_parse_chunks(DxfGlobalData *global, DxfChunkInfo *chunks, + gint32 parentid, const gchar *section) +{ + gint32 key; + DxfChunkInfo *chunk_info; + DxfEntityData *edata; + DxfEntityInfo *einfo = NULL; + DxfEntityProps *eprop = NULL; + gchar str[DXF_MAX_LINE + 1]; + G3DFloat pcnt, prev_pcnt = 0.0; + +#if DEBUG > 0 + g_debug("\\[%s]", section); +#endif + + edata = g_new0(DxfEntityData, 1); + + if((strcmp(section, "ENTITIES") == 0) || + (strcmp(section, "BLOCKS") == 0)) { + edata->object = g_slist_nth_data(global->model->objects, 0); + edata->material = g_slist_nth_data(edata->object->materials, 0); + } + + while(TRUE) { + key = dxf_read_code(global); + chunk_info = dxf_get_chunk_info(chunks, key); + + if(key == DXF_CODE_INVALID) { + g_free(edata); + return FALSE; + } + + if(key == 0) { /* new entity or end of section */ + if(einfo) { + dxf_entity_finalize(global, parentid, edata, einfo, eprop); + dxf_prop_cleanup(eprop); + eprop = NULL; + } + dxf_read_string(global, str); + DXF_TEST_ENDSEC(str); + einfo = dxf_get_entity_info(str); + eprop = dxf_prop_create(); +#if DEBUG > 0 + g_debug("| entity: %s", str); +#endif + } + +#if DEBUG > 0 + if(chunk_info) + g_debug("\\ %s[%+4d]: %s%s%s (line %d)", + key ? " " : "", + key, chunk_info->description, + key ? "" : ": ", + key ? "" : str, + g3d_stream_line(global->stream)); + else + g_warning("unknown chunk type %d in line %d", key, + g3d_stream_line(global->stream)); +#endif + + if(chunk_info) { + dxf_read_chunk(global, chunk_info, eprop); + } /* chunk_info */ + else { + DXF_HANDLE_UNKNOWN(global, key, str, section); + } + + pcnt = (G3DFloat)g3d_stream_tell(global->stream) / + (G3DFloat)g3d_stream_size(global->stream); + if((pcnt - prev_pcnt) > 0.01) { + prev_pcnt = pcnt; + g3d_context_update_progress_bar(global->context, pcnt, TRUE); + } + g3d_context_update_interface(global->context); + } /* endless loop */ + + g_free(edata); + return FALSE; +} + +gboolean dxf_section_HEADER(DxfGlobalData *global) +{ +#if 0 + return dxf_parse_chunks(global, dxf_chunks, DXF_ID_HEADER, "HEADER"); +#else + return dxf_skip_section(global); +#endif +} + +gboolean dxf_section_ENTITIES(DxfGlobalData *global) +{ + return dxf_parse_chunks(global, dxf_chunks, DXF_ID_ENTITIES, "ENTITIES"); +} + +gboolean dxf_section_BLOCKS(DxfGlobalData *global) +{ + return dxf_parse_chunks(global, dxf_chunks, DXF_ID_BLOCKS, "BLOCKS"); +} + +gboolean dxf_section_TABLES(DxfGlobalData *global) +{ +#if 0 + return dxf_parse_chunks(global, dxf_chunks, DXF_ID_TABLES, "TABLES"); +#else + return dxf_skip_section(global); +#endif +} + +gboolean dxf_section_OBJECTS(DxfGlobalData *global) +{ +#if 0 + return dxf_parse_chunks(global, dxf_chunks, DXF_ID_OBJECTS, "OBJECTS"); +#else + return dxf_skip_section(global); +#endif +} + +gboolean dxf_section_CLASSES(DxfGlobalData *global) +{ +#if 0 + return dxf_parse_chunks(global, dxf_chunks, DXF_ID_CLASSES, "TABLES"); +#else + return dxf_skip_section(global); +#endif +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_DXF_SECTION_H +#define _IMP_DXF_SECTION_H + +#include "imp_dxf_types.h" + +gboolean dxf_section_HEADER(DxfGlobalData *global); +gboolean dxf_section_TABLES(DxfGlobalData *global); +gboolean dxf_section_BLOCKS(DxfGlobalData *global); +gboolean dxf_section_ENTITIES(DxfGlobalData *global); +gboolean dxf_section_OBJECTS(DxfGlobalData *global); +gboolean dxf_section_CLASSES(DxfGlobalData *global); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_DXF_TYPES_H +#define _IMP_DXF_TYPES_H + +#include + +typedef struct { + G3DContext *context; + G3DModel *model; + G3DStream *stream; + gboolean binary; + GHashTable *blocks; +} DxfGlobalData; + +typedef struct { + G3DObject *object; + G3DObject *block; + G3DMaterial *material; + guint32 vertex_offset; + guint32 tmp_i1; + guint32 polyline_flags; +} DxfEntityData; + +typedef struct _DxfEntityProps DxfEntityProps; + +typedef struct { + gint32 id; + guint32 sid; /* section id */ + guint32 eid; /* entity id */ + DxfEntityData *edata; + DxfEntityProps *eprop; +} DxfLocalData; + +typedef gboolean (* DxfCallback)(DxfGlobalData *, DxfLocalData *); + +typedef struct { + const gchar *name; + const gchar *description; + guint32 id; + DxfCallback callback; +} DxfEntityInfo; + +typedef enum { + DXF_T_UNKNOWN, + DXF_T_EMPTY, + DXF_T_INT16, + DXF_T_INT32, + DXF_T_FLOAT64, + DXF_T_STRING +} DxfChunkType; + +typedef struct { + gint32 id; + const gchar *description; + DxfChunkType type; +} DxfChunkInfo; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_DXF_VARS_H +#define _IMP_DXF_VARS_H + +#include + +static gchar *dxf_vars_vector2d[] = { + "$AXISUNIT", + "$LIMMAX", + "$LIMMIN", + "$PLIMMIN", + "$PLIMMAX", + NULL +}; + +static gchar *dxf_vars_vector3d[] = { + "$EXTMIN", + "$EXTMAX", + "$INSBASE", + "$PEXTMAX", + "$PEXTMIN", + "$PINSBASE", + "$PUCSORG", + "$PUCSORGBACK", + "$PUCSORGBOTTOM", + "$PUCSORGFRONT", + "$PUCSORGLEFT", + "$PUCSORGRIGHT", + "$PUCSORGTOP", + "$PUCSXDIR", + "$PUCSYDIR", + "$UCSORG", + "$UCSORGBACK", + "$UCSORGBOTTOM", + "$UCSORGFRONT", + "$UCSORGLEFT", + "$UCSORGRIGHT", + "$UCSORGTOP", + "$UCSXDIR", + "$UCSYDIR", + NULL +}; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_flt/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_flt +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_flt_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_flt_la_OBJECTS = imp_flt.lo imp_flt_callbacks.lo +imp_flt_la_OBJECTS = $(am_imp_flt_la_OBJECTS) +#am_imp_flt_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_flt_la_SOURCES) +DIST_SOURCES = $(imp_flt_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_flt.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_flt_la_SOURCES = imp_flt.c imp_flt.h \ + imp_flt_opcodes.h \ + imp_flt_callbacks.c imp_flt_callbacks.h + +imp_flt_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_flt.la: $(imp_flt_la_OBJECTS) $(imp_flt_la_DEPENDENCIES) + $(LINK) $(am_imp_flt_la_rpath) $(imp_flt_la_OBJECTS) $(imp_flt_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_flt.Plo +include ./$(DEPDIR)/imp_flt_callbacks.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_flt.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_flt_la_SOURCES = imp_flt.c imp_flt.h \ + imp_flt_opcodes.h \ + imp_flt_callbacks.c imp_flt_callbacks.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_flt +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_flt_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_flt_la_OBJECTS = imp_flt.lo imp_flt_callbacks.lo +imp_flt_la_OBJECTS = $(am_imp_flt_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_flt_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_flt_la_SOURCES) +DIST_SOURCES = $(imp_flt_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_flt.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_flt_la_SOURCES = imp_flt.c imp_flt.h \ + imp_flt_opcodes.h \ + imp_flt_callbacks.c imp_flt_callbacks.h + +imp_flt_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_flt.la: $(imp_flt_la_OBJECTS) $(imp_flt_la_DEPENDENCIES) + $(LINK) $(am_imp_flt_la_rpath) $(imp_flt_la_OBJECTS) $(imp_flt_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_flt.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_flt_callbacks.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include +#include +#include +#include + +#include "imp_flt_opcodes.h" + +FltOpcode *flt_opcode_info(guint32 opcode); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + guint16 opcode, rlen; + FltOpcode *oi; + FltGlobalData *gd; + FltLocalData *ld; + G3DObject *g3dobj = NULL; + gpointer level_object = NULL; + gchar *pad; + G3DFloat prev_pcnt = 0.0, pcnt; + G3DMatrix rmatrix[16]; + + gd = g_new0(FltGlobalData, 1); + gd->context = context; + gd->model = model; + gd->stream = stream; + gd->oqueue = g_queue_new(); + + while(!g3d_stream_eof(stream)) { + /* get record information */ + opcode = g3d_stream_read_int16_be(stream); + rlen = g3d_stream_read_int16_be(stream); + + /* create local data */ + ld = g_new0(FltLocalData, 1); + ld->opcode = opcode; + ld->nb = rlen - 4; + ld->g3dobj = g3dobj; + ld->level_object = level_object; + + if(opcode == 0) { + /* end of file or error */ + break; + } + + oi = flt_opcode_info(opcode); + + pad = g_strnfill(gd->level, ' '); + g_debug("\\%s[%04d][%c] %8d: %s", pad, opcode, + oi ? (oi->callback ? 'f' : ' ') : ' ', + rlen, + oi ? oi->description : "unknown"); + g_free(pad); + + if(oi && oi->callback) + oi->callback(gd, ld); + + /* skip remaining bytes */ + if(ld->nb > 0) + g3d_stream_skip(stream, ld->nb); + + /* free local data */ + g3dobj = ld->g3dobj; + level_object = ld->level_object; + g_free(ld); + + /* update caller */ + pcnt = (G3DFloat)g3d_stream_tell(stream) / + (G3DFloat)g3d_stream_size(stream); + if((pcnt - prev_pcnt) > 0.002) { + prev_pcnt = pcnt; + g3d_context_update_progress_bar(context, pcnt, TRUE); + } + g3d_context_update_interface(context); + } + + g_queue_free(gd->oqueue); + if(gd->vertex_palette) { + g_free(gd->vertex_palette->offsets); + g_free(gd->vertex_palette->flags); + g_free(gd->vertex_palette->vertex_data); + g_free(gd->vertex_palette->normal_data); + g_free(gd->vertex_palette->tex_vertex_data); + g_free(gd->vertex_palette->vertex_materials); + g_free(gd->vertex_palette); + } + if(gd->texture_palette) { + g_free(gd->texture_palette->offsets); + g_free(gd->texture_palette->textures); + g_free(gd->texture_palette); + } + g_free(gd); + + g3d_matrix_identity(rmatrix); + g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix); + g3d_model_transform(model, rmatrix); + + return TRUE; +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("OpenFlight models."); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g_strsplit("flt", ":", 0); +} + +/* + * FLT specific + */ + +FltOpcode *flt_opcode_info(guint32 opcode) +{ + guint32 i; + + for(i = 0; flt_opcodes[i].opcode != 0; i ++) + if(flt_opcodes[i].opcode == opcode) + return &(flt_opcodes[i]); + return NULL; +} + +guint32 flt_read_typed_index(G3DStream *stream, guint32 type, gint32 *len) +{ + guint32 val = 0; + + switch(type) { + case 1: + val = g3d_stream_read_int8(stream); + *len -= 1; + break; + case 2: + val = g3d_stream_read_int16_be(stream); + *len -= 2; + break; + case 4: + val = g3d_stream_read_int32_be(stream); + *len -= 4; + break; + default: + g_warning("FLT: unknown index type %d\n", type); + break; + } + return val; +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_FLT_H +#define _IMP_FLT_H + +#include +#include + +guint32 flt_read_typed_index(G3DStream *stream, guint32 type, gint32 *len); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include +#include +#include +#include + +#include "imp_flt.h" +#include "imp_flt_callbacks.h" + +/* header */ +gboolean flt_cb_0001(FltGlobalData *gd, FltLocalData *ld) +{ + gchar id[8]; + + g3d_stream_read(gd->stream, id, 8); + id[7] = '\0'; + ld->nb -= 8; + gd->fversion = g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + + g_debug("FLT: header: '%s' revision %u", id, gd->fversion); + + return TRUE; +} + +/* group */ +gboolean flt_cb_0002(FltGlobalData *gd, FltLocalData *ld) +{ + G3DObject *object, *pobj; + gchar namebuf[8]; + + object = g_new0(G3DObject, 1); + pobj = (G3DObject *)g_queue_peek_head(gd->oqueue); + if(pobj != NULL) + pobj->objects = g_slist_append(pobj->objects, object); + else + gd->model->objects = g_slist_append(gd->model->objects, object); + ld->g3dobj = object; + + /* group ID */ + g3d_stream_read(gd->stream, namebuf, 8); + ld->nb -= 8; + namebuf[7] = '\0'; + object->name = g_strdup_printf("group '%s'", namebuf); + + return TRUE; +} + +/* object */ +gboolean flt_cb_0004(FltGlobalData *gd, FltLocalData *ld) +{ + G3DObject *object, *pobj; + G3DMaterial *material; + gchar namebuf[8]; + + object = g_new0(G3DObject, 1); + pobj = (G3DObject *)g_queue_peek_head(gd->oqueue); + if(pobj != NULL) + pobj->objects = g_slist_append(pobj->objects, object); + else + gd->model->objects = g_slist_append(gd->model->objects, object); + ld->g3dobj = object; + + material = g3d_material_new(); + material->name = g_strdup("fallback material"); + object->materials = g_slist_append(object->materials, material); + + /* object ID */ + g3d_stream_read(gd->stream, namebuf, 8); + ld->nb -= 8; + namebuf[7] = '\0'; + object->name = g_strdup_printf("object '%s'", namebuf); + + /* flags */ + g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + + /* relative priority */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + + /* transparency */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + + /* special effect ID 1 */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + + /* special effect ID 2 */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + + /* significance */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + + /* reserved */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + + return TRUE; +} + +/* face */ +gboolean flt_cb_0005(FltGlobalData *gd, FltLocalData *ld) +{ + G3DObject *object = ld->g3dobj; + G3DMaterial *material; + G3DFace *face; + gint16 index; + guint32 flags; + G3DFloat r, g, b; + + g_return_val_if_fail(object != NULL, FALSE); + + if(object->materials == NULL) { + material = g3d_material_new(); + material->name = g_strdup("(default material)"); + object->materials = g_slist_append(object->materials, material); + } + + face = g_new0(G3DFace, 1); + face->material = g_slist_nth_data(object->materials, 0); + object->faces = g_slist_append(object->faces, face); + ld->level_object = face; + + if(object->vertex_count == 0) { + if(gd->vertex_palette) { + /* copy vertex palette to object */ + object->vertex_count = gd->vertex_palette->n_entries; + object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3); + memcpy(object->vertex_data, gd->vertex_palette->vertex_data, + object->vertex_count * 3 * sizeof(G3DFloat)); + } + } + + /* id */ + g3d_stream_skip(gd->stream, 8); + ld->nb -= 8; + /* IR color code */ + g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + /* relative priority */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + /* draw type */ + g3d_stream_read_int8(gd->stream); + ld->nb --; + /* texture white */ + g3d_stream_read_int8(gd->stream); + ld->nb --; + /* color name index */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + /* alternate color name index */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + /* reserved */ + g3d_stream_read_int8(gd->stream); + ld->nb --; + /* template (billboard) */ + g3d_stream_read_int8(gd->stream); + ld->nb --; + /* detail texture pattern */ + index = g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + if(index != -1) + if(gd->texture_palette && (index < gd->texture_palette->size)) + face->tex_image = gd->texture_palette->textures[index]; + /* texture pattern */ + index = g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + if((face->tex_image == NULL) && (index != -1)) + if(gd->texture_palette && (index < gd->texture_palette->size)) + face->tex_image = gd->texture_palette->textures[index]; + + if(face->tex_image) + face->tex_image->tex_env = G3D_TEXENV_REPLACE; + + /* material index */ + index = g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + if(index != -1) { + material = g_slist_nth_data(gd->model->materials, index); + if(material) + face->material = material; + } + /* surface material code */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + /* feature ID */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + /* IR material code */ + g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + /* transparency */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + /* LOD generation control */ + g3d_stream_read_int8(gd->stream); + ld->nb --; + /* line style index */ + g3d_stream_read_int8(gd->stream); + ld->nb --; + /* flags */ + flags = g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + /* light mode */ + g3d_stream_read_int8(gd->stream); + ld->nb --; + /* reserved */ + g3d_stream_skip(gd->stream, 7); + ld->nb -= 7; + /* packed color, primary */ + if((flags & (1 << 1)) /* no color */ || + !(flags & (1 << 3))) /* packed color */ + g3d_stream_read_int32_be(gd->stream); + else { + g3d_stream_read_int8(gd->stream); /* alpha, unused */ + b = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0; + g = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0; + r = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0; + material = g3d_material_new(); + material->r = r; + material->g = g; + material->b = b; + material->a = 1.0; + face->material = material; + } + ld->nb -= 4; + /* packed color, alternate */ + g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + /* texture mapping index */ + index = g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + + return TRUE; +} + +/* push level */ +gboolean flt_cb_0010(FltGlobalData *gd, FltLocalData *ld) +{ + g_queue_push_head(gd->oqueue, ld->g3dobj); + + gd->level ++; + return TRUE; +} + +/* pop level */ +gboolean flt_cb_0011(FltGlobalData *gd, FltLocalData *ld) +{ + ld->g3dobj = g_queue_pop_head(gd->oqueue); + ld->level_object = NULL; + + if(gd->level > 0) + gd->level --; + return TRUE; +} + +/* color palette */ +gboolean flt_cb_0032(FltGlobalData *gd, FltLocalData *ld) +{ + G3DMaterial *material; + G3DObject *cobj; + gint32 i; + + cobj = g_new0(G3DObject, 1); + cobj->name = g_strdup("color palette"); + gd->model->objects = g_slist_append(gd->model->objects, cobj); + + /* skip reserved bytes */ + g3d_stream_skip(gd->stream, 128); + ld->nb -= 128; + + /* get colors */ + for(i = 0; i < 1024; i ++) { + material = g3d_material_new(); + material->name = g_strdup_printf("color %d", i); + cobj->materials = g_slist_append(cobj->materials, material); + + material->a = g3d_stream_read_int8(gd->stream) / 255.0; + material->b = g3d_stream_read_int8(gd->stream) / 255.0; + material->g = g3d_stream_read_int8(gd->stream) / 255.0; + material->r = g3d_stream_read_int8(gd->stream) / 255.0; + ld->nb -= 4; + } + + return TRUE; +} + +/* long ID */ +gboolean flt_cb_0033(FltGlobalData *gd, FltLocalData *ld) +{ + G3DObject *object = ld->g3dobj; + + g_return_val_if_fail(object != NULL, FALSE); + + g_free(object->name); + object->name = g_new0(gchar, ld->nb); + g3d_stream_read(gd->stream, object->name, ld->nb); + object->name[ld->nb - 1] = '\0'; + ld->nb = 0; + + return TRUE; +} + +/* texture palette */ +gboolean flt_cb_0064(FltGlobalData *gd, FltLocalData *ld) +{ + gchar fname[201]; + gint32 max, index, offx, offy; + + g3d_stream_read(gd->stream, fname, 200); + ld->nb -= 200; + + index = g3d_stream_read_int32_be(gd->stream); + offx = g3d_stream_read_int32_be(gd->stream); + offy = g3d_stream_read_int32_be(gd->stream); + ld->nb -= 12; + + if(gd->texture_palette == NULL) + gd->texture_palette = g_new0(FltTexturePalette, 1); + + max = MAX(index + 1, gd->texture_palette->size); + gd->texture_palette->size = max; + gd->texture_palette->offsets = g_realloc(gd->texture_palette->offsets, + max * 2 * sizeof(gint32)); + gd->texture_palette->textures = g_realloc(gd->texture_palette->textures, + max * sizeof(G3DImage *)); + gd->texture_palette->offsets[index * 2 + 0] = offx; + gd->texture_palette->offsets[index * 2 + 1] = offy; + +#if DEBUG > 2 + g_debug("FLT: 0064: %s (index %d @ %d, %d)", fname, index, offx, offy); +#endif + + gd->texture_palette->textures[index] = + g3d_texture_load_cached(gd->context, gd->model, fname); + + return TRUE; +} + +static gboolean flt_inc_vertex_palette(FltGlobalData *gd) +{ + g_return_val_if_fail(gd->vertex_palette != NULL, FALSE); + + gd->vertex_palette->n_entries ++; + gd->vertex_palette->offsets = g_realloc( + gd->vertex_palette->offsets, + gd->vertex_palette->n_entries * sizeof(goffset)); + gd->vertex_palette->flags = g_realloc( + gd->vertex_palette->flags, + gd->vertex_palette->n_entries * sizeof(guint32)); + gd->vertex_palette->vertex_data = g_realloc( + gd->vertex_palette->vertex_data, + gd->vertex_palette->n_entries * 3 * sizeof(G3DFloat)); + gd->vertex_palette->normal_data = g_realloc( + gd->vertex_palette->normal_data, + gd->vertex_palette->n_entries * 3 * sizeof(G3DFloat)); + gd->vertex_palette->tex_vertex_data = g_realloc( + gd->vertex_palette->tex_vertex_data, + gd->vertex_palette->n_entries * 2 * sizeof(G3DFloat)); + gd->vertex_palette->vertex_materials = g_realloc( + gd->vertex_palette->vertex_materials, + gd->vertex_palette->n_entries * sizeof(G3DMaterial *)); + return TRUE; +} + +/* vertex palette */ +gboolean flt_cb_0067(FltGlobalData *gd, FltLocalData *ld) +{ + gd->vertex_palette = g_new0(FltVertexPalette, 1); + gd->vertex_palette->offset = 8; + return TRUE; +} + +static G3DMaterial *flt_material_by_index(FltGlobalData *gd, guint32 i) +{ + G3DObject *colobj; + + colobj = g3d_model_get_object_by_name(gd->model, "color palette"); + if(colobj == NULL) + return NULL; + + return g_slist_nth_data(colobj->materials, i); +} + +#define FLOAT_EQUALS(a, b) (fabs((a) - (b)) < 0.001) + +static G3DMaterial *flt_find_color(G3DObject *pobj, + G3DFloat r, G3DFloat g, G3DFloat b, G3DFloat a) +{ + GSList *item; + G3DMaterial *material; + + for(item = pobj->materials; item != NULL; item = item->next) { + material = item->data; + if(FLOAT_EQUALS(material->r, r) && FLOAT_EQUALS(material->g, g) && + FLOAT_EQUALS(material->b, b) && FLOAT_EQUALS(material->a, a)) + return material; + } + g_debug("did not find material"); + return NULL; +} + +static gboolean flt_handle_vertex_color(FltGlobalData *gd, FltLocalData *ld, + guint32 flags) +{ + G3DObject *vcolobj; + G3DMaterial *material; + G3DFloat r, g, b, a; + + if(flags & FLT_FLAG_NO_COLOR) + return TRUE; + + vcolobj = g3d_model_get_object_by_name(gd->model, "vertex colors"); + if(vcolobj == NULL) { + vcolobj = g_new0(G3DObject, 1); + vcolobj->name = g_strdup("vertex colors"); + gd->model->objects = g_slist_append(gd->model->objects, vcolobj); + } + a = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0; + b = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0; + g = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0; + r = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0; + ld->nb -= 4; + + if(flags & FLT_FLAG_PACKED_COLOR) { + material = flt_find_color(vcolobj, r, g, b, a); + if(material == NULL) { + material = g3d_material_new(); + material->r = r; + material->g = g; + material->b = b; + material->a = a; + material->name = g_strdup_printf( + "vertex material (%.2f, %.2f, %.2f, %.2f)", r, g, b, a); + vcolobj->materials = g_slist_prepend(vcolobj->materials, material); + } + } else { + /* color index */ + material = flt_material_by_index(gd, + g3d_stream_read_int32_be(gd->stream)); + ld->nb -= 4; + } + gd->vertex_palette->vertex_materials[gd->vertex_palette->n_entries - 1] = + material; + return TRUE; +} + +/* vertex with color record */ +gboolean flt_cb_0068(FltGlobalData *gd, FltLocalData *ld) +{ + gint32 i, index; + guint32 flags; + + if(!flt_inc_vertex_palette(gd)) + return FALSE; + + index = gd->vertex_palette->n_entries - 1; + gd->vertex_palette->offsets[index] = gd->vertex_palette->offset; + gd->vertex_palette->offset += ld->nb + 4; + gd->vertex_palette->flags[index] = 0; + + /* color name index */ + gd->vertex_palette->vertex_materials[index] = + flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream)); + ld->nb -= 2; + + /* flags */ + flags = g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + + /* vertex coordinate */ + for(i = 0; i < 3; i ++) { + gd->vertex_palette->vertex_data[index * 3 + i] = + g3d_stream_read_double_be(gd->stream); + ld->nb -= 8; + } + + flt_handle_vertex_color(gd, ld, flags); + + return TRUE; +} + +/* vertex with color and normal record */ +gboolean flt_cb_0069(FltGlobalData *gd, FltLocalData *ld) +{ + gint32 i, index; + guint32 flags; + + if(!flt_inc_vertex_palette(gd)) + return FALSE; + + index = gd->vertex_palette->n_entries - 1; + gd->vertex_palette->offsets[index] = gd->vertex_palette->offset; + gd->vertex_palette->offset += ld->nb + 4; + gd->vertex_palette->flags[index] = G3D_FLAG_FAC_NORMALS; + + /* color name index */ + gd->vertex_palette->vertex_materials[index] = + flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream)); + ld->nb -= 2; + + /* flags */ + flags = g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + + /* vertex coordinate */ + for(i = 0; i < 3; i ++) { + gd->vertex_palette->vertex_data[index * 3 + i] = + g3d_stream_read_double_be(gd->stream); + ld->nb -= 8; + } + + /* vertex normal */ + for(i = 0; i < 3; i ++) { + gd->vertex_palette->normal_data[index * 3 + i] = + g3d_stream_read_float_be(gd->stream); + ld->nb -= 4; + } + + flt_handle_vertex_color(gd, ld, flags); + + return TRUE; +} + +/* vertex with color, normal and uv record */ +gboolean flt_cb_0070(FltGlobalData *gd, FltLocalData *ld) +{ + gint32 i, index; + guint32 flags; + + if(!flt_inc_vertex_palette(gd)) + return FALSE; + + index = gd->vertex_palette->n_entries - 1; + gd->vertex_palette->offsets[index] = gd->vertex_palette->offset; + gd->vertex_palette->offset += ld->nb + 4; + gd->vertex_palette->flags[index] = + G3D_FLAG_FAC_NORMALS | G3D_FLAG_FAC_TEXMAP; + + /* color name index */ + gd->vertex_palette->vertex_materials[index] = + flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream)); + ld->nb -= 2; + + /* flags */ + flags = g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + + /* vertex coordinate */ + for(i = 0; i < 3; i ++) { + gd->vertex_palette->vertex_data[index * 3 + i] = + g3d_stream_read_double_be(gd->stream); + ld->nb -= 8; + } + + /* vertex normal */ + for(i = 0; i < 3; i ++) { + gd->vertex_palette->normal_data[index * 3 + i] = + g3d_stream_read_float_be(gd->stream); + ld->nb -= 4; + } + + /* vertex texture coordinate */ + for(i = 0; i < 2; i ++) { + gd->vertex_palette->tex_vertex_data[index * 2 + i] = + g3d_stream_read_float_be(gd->stream); + ld->nb -= 4; + } + + flt_handle_vertex_color(gd, ld, flags); + + return TRUE; +} + +/* vertex with color and uv record */ +gboolean flt_cb_0071(FltGlobalData *gd, FltLocalData *ld) +{ + gint32 i, index; + guint32 flags; + + if(!flt_inc_vertex_palette(gd)) + return FALSE; + + index = gd->vertex_palette->n_entries - 1; + gd->vertex_palette->offsets[index] = gd->vertex_palette->offset; + gd->vertex_palette->offset += ld->nb + 4; + gd->vertex_palette->flags[index] = G3D_FLAG_FAC_TEXMAP; + + /* color name index */ + gd->vertex_palette->vertex_materials[index] = + flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream)); + ld->nb -= 2; + + /* flags */ + flags = g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + + /* vertex coordinate */ + for(i = 0; i < 3; i ++) { + gd->vertex_palette->vertex_data[index * 3 + i] = + g3d_stream_read_double_be(gd->stream); + ld->nb -= 8; + } + + /* vertex texture coordinate */ + for(i = 0; i < 2; i ++) { + gd->vertex_palette->tex_vertex_data[index * 2 + i] = + g3d_stream_read_float_be(gd->stream); + ld->nb -= 4; + } + + flt_handle_vertex_color(gd, ld, flags); + + return TRUE; +} + +static gint32 flt_vertex_palette_index_from_offset(FltGlobalData *gd, + goffset offset) +{ + FltVertexPalette *pal = gd->vertex_palette; + gint i; + + g_return_val_if_fail(pal != NULL, -1); + + for(i = 0; (i < pal->n_entries) && (pal->offsets[i] < offset); i ++); + if((i < pal->n_entries) && (pal->offsets[i] == offset)) + return i; + g_warning("FLT: flt_vertex_palette_index_from_offset: " + "could not get index for offset %li (i=%d)", (long int)offset, i); + return -1; +} + +/* vertex list */ +gboolean flt_cb_0072(FltGlobalData *gd, FltLocalData *ld) +{ + G3DFace *face = ld->level_object; + gint32 i, j, index; + guint32 n; + + g_return_val_if_fail(face != NULL, FALSE); + + n = ld->nb / 4; + face->vertex_count = n; + face->vertex_indices = g_new0(guint32, n); + + for(i = 0; i < n; i ++) { + j = g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + +#define FLT_SUPPORT_BROKEN_VERTEX_LIST 1 +#if FLT_SUPPORT_BROKEN_VERTEX_LIST + /* FIXME: there are some broken models which directly specify the + * index instead of a byte offset in the vertex palette */ + + if(gd->flags & FLT_FLAG_BROKEN_VERTEX_LIST) + index = j; + else + index = flt_vertex_palette_index_from_offset(gd, j); + if(index == -1) { + index = j; + gd->flags |= FLT_FLAG_BROKEN_VERTEX_LIST; + } +#else + index = flt_vertex_palette_index_from_offset(gd, j); +#endif + if(index == -1) + return FALSE; + face->vertex_indices[i] = index; + if(gd->vertex_palette->flags[index] & G3D_FLAG_FAC_NORMALS) { + /* copy normal data */ + if(face->normals == NULL) { + face->normals = g_new0(G3DFloat, n * 3); + face->flags |= G3D_FLAG_FAC_NORMALS; + } + for(j = 0; j < 3; j ++) + face->normals[i * 3 + j] = + gd->vertex_palette->normal_data[index * 3 + j]; + } + if(gd->vertex_palette->flags[index] & G3D_FLAG_FAC_TEXMAP) { + /* copy texture coordinate data */ + if(face->tex_vertex_data == NULL) { + face->tex_vertex_data = g_new0(G3DFloat, n * 2); + face->tex_vertex_count = n; + if(face->tex_image) + face->flags |= G3D_FLAG_FAC_TEXMAP; + } + for(j = 0; j < 2; j ++) + face->tex_vertex_data[i * 2 + j] = + gd->vertex_palette->tex_vertex_data[index * 2 + j]; + } + if(gd->vertex_palette->vertex_materials[index] != NULL) + face->material = gd->vertex_palette->vertex_materials[index]; + } + return TRUE; +} + +/* mesh */ +gboolean flt_cb_0084(FltGlobalData *gd, FltLocalData *ld) +{ + G3DObject *object; + gchar *namebuf[8]; + gint32 index; + + object = (G3DObject *)g_queue_peek_head(gd->oqueue); + g_return_val_if_fail(object != NULL, FALSE); + + /* ASCII ID */ + g3d_stream_read(gd->stream, namebuf, 8); + namebuf[7] = '\0'; + ld->nb -= 8; + + /* reserved */ + g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + /* IR color code */ + g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + /* priority */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + /* draw type */ + g3d_stream_read_int8(gd->stream); + ld->nb --; + /* texture white */ + g3d_stream_read_int8(gd->stream); + ld->nb --; + /* color name index */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + /* alternate color name index */ + g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + /* reserved */ + g3d_stream_read_int8(gd->stream); + ld->nb --; + /* template (billboard) */ + g3d_stream_read_int8(gd->stream); + ld->nb --; + /* detail texture pattern */ + index = g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + if(index > -1) + if(gd->texture_palette && (index < gd->texture_palette->size)) + object->tex_image = gd->texture_palette->textures[index]; + /* texture pattern */ + index = g3d_stream_read_int16_be(gd->stream); + ld->nb -= 2; + if((index > -1) && (object->tex_image == NULL)) + if(gd->texture_palette && (index < gd->texture_palette->size)) + object->tex_image = gd->texture_palette->textures[index]; + + return TRUE; +} + +/* local vertex pool */ +gboolean flt_cb_0085(FltGlobalData *gd, FltLocalData *ld) +{ + G3DObject *object; + guint32 nverts, attrmask; + gint32 i; + + object = (G3DObject *)g_queue_peek_head(gd->oqueue); + g_return_val_if_fail(object != NULL, FALSE); + + nverts = g3d_stream_read_int32_be(gd->stream); + attrmask = g3d_stream_read_int32_be(gd->stream); + ld->nb -= 8; + + object->vertex_count = nverts; + object->vertex_data = g_new0(G3DFloat, nverts * 3); + object->tex_vertex_count = nverts; + object->tex_vertex_data = g_new0(G3DFloat, nverts * 2); + + for(i = 0; i < nverts; i ++) { + if(attrmask & (1 << 31)) { /* has position */ + object->vertex_data[i * 3 + 0] = + g3d_stream_read_double_be(gd->stream); + object->vertex_data[i * 3 + 1] = + g3d_stream_read_double_be(gd->stream); + object->vertex_data[i * 3 + 2] = + g3d_stream_read_double_be(gd->stream); + ld->nb -= 24; + } + + if(attrmask & (1 << 30)) { /* has color index */ + g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + } + + if(attrmask & (1 << 29)) { /* has RGBA color */ + g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + } + + if(attrmask & (1 << 28)) { /* has normal */ + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + ld->nb -= 12; + } + + if(attrmask & (1 << 27)) { /* has base UV */ + object->tex_vertex_data[i * 2 + 0] = + g3d_stream_read_float_be(gd->stream); + object->tex_vertex_data[i * 2 + 1] = + g3d_stream_read_float_be(gd->stream); + ld->nb -= 8; + } + + if(attrmask & (1 << 26)) { /* has UV layer 1 */ + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + ld->nb -= 8; + } + + if(attrmask & (1 << 25)) { /* has UV layer 2 */ + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + ld->nb -= 8; + } + + if(attrmask & (1 << 24)) { /* has UV layer 3 */ + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + ld->nb -= 8; + } + + if(attrmask & (1 << 23)) { /* has UV layer 4 */ + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + ld->nb -= 8; + } + + if(attrmask & (1 << 22)) { /* has UV layer 5 */ + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + ld->nb -= 8; + } + + if(attrmask & (1 << 21)) { /* has UV layer 6 */ + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + ld->nb -= 8; + } + + if(attrmask & (1 << 20)) { /* has UV layer 7 */ + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + ld->nb -= 8; + } + } + + return TRUE; +} + +/* mesh primitive */ +gboolean flt_cb_0086(FltGlobalData *gd, FltLocalData *ld) +{ + guint32 type, isize, nverts; + gint32 i; + G3DFace *face; + G3DObject *object; + + object = (G3DObject *)g_queue_peek_head(gd->oqueue); + g_return_val_if_fail(object != NULL, FALSE); + + type = g3d_stream_read_int16_be(gd->stream); + isize = g3d_stream_read_int16_be(gd->stream); + nverts = g3d_stream_read_int32_be(gd->stream); + ld->nb -= 8; + + switch(type) { + case 1: /* triangle strip */ + g_debug("0086: triangle strip"); + break; + + case 2: /* triangle fan */ + g_debug("0086: triangle fan"); + break; + + case 3: /* quadriteral strip */ + g_debug("0086: quadriteral strip"); + break; + + case 4: /* indexed polygon */ + face = g_new0(G3DFace, 1); + face->material = (G3DMaterial *)g_slist_nth_data(object->materials, + 0); + face->vertex_count = nverts; + face->vertex_indices = g_new0(guint32, nverts); + for(i = 0; i < nverts; i ++) { + face->vertex_indices[i] = flt_read_typed_index( + gd->stream, isize, &(ld->nb)); + } + face->tex_image = object->tex_image; + if(face->tex_image != NULL) { + face->tex_vertex_count = nverts; + face->tex_vertex_data = g_new0(G3DFloat, nverts * 2); + for(i = 0; i < nverts; i ++) { + face->tex_vertex_data[i * 2 + 0] = + object->tex_vertex_data[ + face->vertex_indices[i] * 2 + 0]; + face->tex_vertex_data[i * 2 + 1] = + object->tex_vertex_data[ + face->vertex_indices[i] * 2 + 1]; + } + face->flags |= G3D_FLAG_FAC_TEXMAP; + } + object->faces = g_slist_append(object->faces, face); + break; + + default: + g_warning("FLT: mesh primitive: unknown type %d\n", type); + } + + return TRUE; +} + +/* material palette */ +gboolean flt_cb_0113(FltGlobalData *gd, FltLocalData *ld) +{ + G3DMaterial *material; + gchar name[13]; + + material = g3d_material_new(); + + /* material index */ + g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + /* material name */ + g3d_stream_read(gd->stream, name, 12); + ld->nb -= 12; + name[12] = '\0'; + material->name = g_strdup(name); + /* flags */ + g3d_stream_read_int32_be(gd->stream); + ld->nb -= 4; + /* ambient */ + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + ld->nb -= 12; + /* diffuse */ + material->r = g3d_stream_read_float_be(gd->stream); + material->g = g3d_stream_read_float_be(gd->stream); + material->b = g3d_stream_read_float_be(gd->stream); + ld->nb -= 12; + /* specular */ + material->specular[0] = g3d_stream_read_float_be(gd->stream); + material->specular[1] = g3d_stream_read_float_be(gd->stream); + material->specular[2] = g3d_stream_read_float_be(gd->stream); + ld->nb -= 12; + /* emissive */ + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + g3d_stream_read_float_be(gd->stream); + ld->nb -= 12; + /* shininess */ + material->shininess = g3d_stream_read_float_be(gd->stream); + ld->nb -= 4; + /* alpha */ + material->a = g3d_stream_read_float_be(gd->stream); + ld->nb -= 4; + + gd->model->materials = g_slist_append(gd->model->materials, material); + + return TRUE; +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_FLT_CALLBACKS_H +#define _IMP_FLT_CALLBACKS_H + +#include +#include +#include +#include + +typedef struct { + guint32 n_entries; + goffset offset; + + goffset *offsets; /* n * goffset */ + guint32 *flags; /* n * guint32 */ + G3DMaterial **vertex_materials; /* n * G3DMaterial* */ + G3DFloat *vertex_data; /* 3 x n * G3DFloat */ + G3DFloat *normal_data; /* 3 x n * G3DFloat */ + G3DFloat *tex_vertex_data; /* 2 x n * G3DFloat */ +} FltVertexPalette; + +typedef struct { + guint32 size; + G3DImage **textures; + gint32 *offsets; +} FltTexturePalette; + +#define FLT_FLAG_BROKEN_VERTEX_LIST (1 << 0) + +#define FLT_FLAG_NO_COLOR (1 << 2) +#define FLT_FLAG_PACKED_COLOR (1 << 3) + +typedef struct { + G3DContext *context; + G3DModel *model; + G3DStream *stream; + guint32 level; + GQueue *oqueue; + FltVertexPalette *vertex_palette; + FltTexturePalette *texture_palette; + guint32 fversion; /* format version */ + guint32 flags; +} FltGlobalData; + +typedef struct { + guint32 opcode; + G3DObject *g3dobj; + gpointer level_object; + gint32 nb; +} FltLocalData; + +typedef gboolean (*FltCallbackFunc)(FltGlobalData *gd, FltLocalData *ld); + +/* callback functions */ +gboolean flt_cb_0001(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0002(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0004(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0005(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0010(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0011(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0032(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0033(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0064(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0067(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0068(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0069(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0070(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0071(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0072(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0084(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0085(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0086(FltGlobalData *gd, FltLocalData *ld); +gboolean flt_cb_0113(FltGlobalData *gd, FltLocalData *ld); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_FLT_OPCODES_H +#define _IMP_FLT_OPCODES_H + +#include + +#include "imp_flt_callbacks.h" + +typedef struct { + guint32 opcode; + gchar *description; + gboolean container; + FltCallbackFunc callback; +} FltOpcode; + +static FltOpcode flt_opcodes[] = { + { 1, "header", 0, flt_cb_0001 }, + { 2, "group", 0, flt_cb_0002 }, + + { 4, "object", 0, flt_cb_0004 }, + { 5, "face", 0, flt_cb_0005 }, + + { 10, "push level", 0, flt_cb_0010 }, + { 11, "pop level", 0, flt_cb_0011 }, + + { 14, "degree of freedom", 0, NULL }, + + { 19, "push subface", 0, NULL }, + { 20, "pop subface", 0, NULL }, + { 21, "push extension", 0, NULL }, + { 22, "pop extension", 0, NULL }, + { 23, "continuation", 0, NULL }, + + { 31, "comment", 0, NULL }, + { 32, "color palette", 0, flt_cb_0032 }, + { 33, "long ID", 0, flt_cb_0033 }, + + { 49, "matrix", 0, NULL }, + { 50, "vector", 0, NULL }, + + { 52, "multitexture", 0, NULL }, + { 53, "UV list", 0, NULL }, + + { 55, "binary separating plane", 0, NULL }, + + { 60, "replicate", 0, NULL }, + { 61, "instance reference", 0, NULL }, + { 62, "instance definition", 0, NULL }, + { 63, "external reference", 0, NULL }, + { 64, "texture palette", 0, flt_cb_0064 }, + + { 67, "vertex palette", 0, flt_cb_0067 }, + { 68, "vertex with color", 0, flt_cb_0068 }, + { 69, "vertex with color and normal", 0, flt_cb_0069 }, + { 70, "vertex with color, normal and UV", 0, flt_cb_0070 }, + { 71, "vertex with color and UV", 0, flt_cb_0071 }, + { 72, "vertex list", 0, flt_cb_0072 }, + { 73, "level of detail", 0, NULL }, + { 74, "bounding box", 0, NULL }, + + { 76, "rotate about edge", 0, NULL }, + + { 78, "translate", 0, NULL }, + { 79, "scale", 0, NULL }, + { 80, "rotate about point", 0, NULL }, + { 81, "rotate and/or scale to point", 0, NULL }, + { 82, "put", 0, NULL }, + { 83, "eyepoint and trackplane palette", 0, NULL }, + { 84, "mesh", 0, flt_cb_0084 }, + { 85, "local vertex pool", 0, flt_cb_0085 }, + { 86, "mesh primitive", 0, flt_cb_0086 }, + { 87, "road segment", 0, NULL }, + { 88, "road zone", 0, NULL }, + { 89, "morph vertex list", 0, NULL }, + { 90, "linkage palette", 0, NULL }, + { 91, "sound node", 0, NULL }, + { 92, "road path", 0, NULL }, + { 93, "sound palette", 0, NULL }, + { 94, "general matrix", 0, NULL }, + { 95, "text", 0, NULL }, + { 96, "switch", 0, NULL }, + { 97, "line style palette", 0, NULL }, + { 98, "clip region", 0, NULL }, + + { 100, "extension", 0, NULL }, + { 101, "light source", 0, NULL }, + { 102, "light source palette", 0, NULL }, + + { 105, "bounding sphere", 0, NULL }, + { 106, "bounding cylinder", 0, NULL }, + { 107, "bounding convex hull", 0, NULL }, + { 108, "bounding volume center", 0, NULL }, + { 109, "bounding volume orientation", 0, NULL }, + + { 111, "light point", 0, NULL }, + { 112, "texture mapping palette", 0, NULL }, + { 113, "material palette", 0, flt_cb_0113 }, + { 114, "name table", 0, NULL }, + { 115, "continuously adaptive terrain (CAT)", 0, NULL }, + { 116, "CAT data", 0, NULL }, + + { 119, "bounding histogram", 0, NULL }, + + { 126, "curve", 0, NULL }, + { 127, "road construction", 0, NULL }, + { 128, "light point appearance palette", 0, NULL }, + { 129, "light point animation", 0, NULL }, + { 130, "indexed light point", 0, NULL }, + + { 132, "indexed string", 0, NULL }, + { 133, "shader", 0, NULL }, + + { 0, NULL, 0, NULL } +}; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_glb/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_glb +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_glb_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_glb_la_OBJECTS = imp_glb.lo +imp_glb_la_OBJECTS = $(am_imp_glb_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_glb_la_SOURCES) +DIST_SOURCES = $(imp_glb_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_glb.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_glb_la_SOURCES = imp_glb.c +imp_glb_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_glb.la: $(imp_glb_la_OBJECTS) $(imp_glb_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_glb_la_OBJECTS) $(imp_glb_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_glb.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_glb.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_glb_la_SOURCES = imp_glb.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_glb +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_glb_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_glb_la_OBJECTS = imp_glb.lo +imp_glb_la_OBJECTS = $(am_imp_glb_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_glb_la_SOURCES) +DIST_SOURCES = $(imp_glb_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_glb.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_glb_la_SOURCES = imp_glb.c +imp_glb_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_glb.la: $(imp_glb_la_OBJECTS) $(imp_glb_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_glb_la_OBJECTS) $(imp_glb_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_glb.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +static G3DObject *glb_load_object(G3DContext *context, G3DStream *stream, + G3DModel *model); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + return (glb_load_object(context, stream, model) != NULL); +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("UltimateStunts models."); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g_strsplit("glb", ":", 0); +} + +/*****************************************************************************/ +/* GLB specific */ + +static G3DFloat glb_get_float(G3DStream *stream) +{ + return 0.001 * ( + (float)((guint32)g3d_stream_read_int32_be(stream)) - (float)(0x7FFFFFFF)); +} + +static G3DObject *glb_load_object(G3DContext *context, G3DStream *stream, + G3DModel *model) +{ + G3DObject *pobject, *object; + G3DMaterial *material; + G3DFace *face; + guint32 magic, otype, index; + gint32 i, j, msize, namelen, datalen, nvertices, nindices; + gchar *name; + G3DFloat *normals = NULL, *texcoords = NULL; + + magic = g3d_stream_read_int32_be(stream); + if(magic != G3D_IFF_MKID('\0', 'G', 'L', 'B')) { + g_warning("%s is not a correct GLB file (wrong magic)\n", + stream->uri); + return NULL; + } + + pobject = g_new0(G3DObject, 1); + pobject->name = g_strdup(stream->uri); + model->objects = g_slist_append(model->objects, pobject); + + while(!g3d_stream_eof(stream)) { + otype = g3d_stream_read_int32_be(stream); + namelen = g3d_stream_read_int32_be(stream); + + if(namelen == 0) + break; + + name = g_new0(gchar, namelen + 1); + g3d_stream_read(stream, name, namelen); +#if DEBUG > 0 + printf("GLB: object named '%s'\n", name); +#endif + + object = g_new0(G3DObject, 1); + object->name = g_strdup(name); + g_free(name); + pobject->objects = g_slist_append(pobject->objects, object); + + /* hide collision planes by default */ + if(strncmp(object->name, "Collision plane", 15) == 0) + object->hide = TRUE; + + datalen = g3d_stream_read_int32_be(stream); + + if(otype != 0) { + /* skip */ + g3d_stream_skip(stream, datalen); + continue; + } + + /* object type 0 */ + msize = g3d_stream_read_int32_be(stream); + nvertices = g3d_stream_read_int32_be(stream); + nindices = g3d_stream_read_int32_be(stream); + +#if DEBUG > 0 + printf("GLB: material size: %d bytes, %d vertices, %d indices\n", + msize, nvertices, nindices); +#endif + if(msize > 0) { + /* material */ + material = g3d_material_new(); + material->name = g_strdup("default material"); + object->materials = g_slist_append(object->materials, material); + + material->r = (G3DFloat)g3d_stream_read_int8(stream) / 255.0; + material->g = (G3DFloat)g3d_stream_read_int8(stream) / 255.0; + material->b = (G3DFloat)g3d_stream_read_int8(stream) / 255.0; + material->a = (G3DFloat)g3d_stream_read_int8(stream) / 255.0; + + if(material->a == 0.0) + material->a = 1.0; + + /* replacement color */ + g3d_stream_read_int8(stream); + g3d_stream_read_int8(stream); + g3d_stream_read_int8(stream); + g3d_stream_read_int8(stream); /* unused */ + + g3d_stream_read_int8(stream); /* LODs */ + g3d_stream_read_int8(stream); /* reflectance */ + /* emissivity */ + material->shininess = (G3DFloat)g3d_stream_read_int8(stream) / 255.0; + g3d_stream_read_int8(stream); /* static friction */ + g3d_stream_read_int8(stream); /* dynamic friction */ + g3d_stream_read_int8(stream); /* unused */ + g3d_stream_read_int8(stream); /* unused */ + g3d_stream_read_int8(stream); /* unused */ + + /* texture name */ + namelen = msize - 16; + if(namelen > 0) { + name = g_new0(gchar, namelen + 1); + g3d_stream_read(stream, name, namelen); +#if DEBUG > 1 + printf("GLB: texture name: %s\n", name); +#endif + + /* texture name is something like "0", the real name is in + * "../$carname.conf"; try to load default texture */ + if(name[0] == '0') { + if(g_file_test("textures.jpg", G_FILE_TEST_EXISTS)) { + material->tex_image = g3d_texture_load_cached( + context, model, "textures.jpg"); + if(material->tex_image != NULL) + material->tex_image->tex_id = 1; + } + } + + g_free(name); + } + } + + /* vertices */ + if(nvertices > 0) { + object->vertex_count = nvertices; + object->vertex_data = g_new0(G3DFloat, nvertices * 3); + normals = g_new0(G3DFloat, nvertices * 3); + texcoords = g_new0(G3DFloat, nvertices * 2); + + for(i = 0; i < nvertices; i ++) { + object->vertex_data[i * 3 + 0] = glb_get_float(stream); + object->vertex_data[i * 3 + 1] = glb_get_float(stream); + object->vertex_data[i * 3 + 2] = glb_get_float(stream); + +#if DEBUG > 3 + printf("D: %f, %f, %f\n", + object->vertex_data[i * 3 + 0], + object->vertex_data[i * 3 + 1], + object->vertex_data[i * 3 + 2]); +#endif + + /* normal */ + normals[i * 3 + 0] = glb_get_float(stream); + normals[i * 3 + 1] = glb_get_float(stream); + normals[i * 3 + 2] = glb_get_float(stream); + g3d_vector_unify( + normals + i * 3 + 0, + normals + i * 3 + 1, + normals + i * 3 + 2); + + /* texture coordinates */ + texcoords[i * 2 + 0] = glb_get_float(stream) / 64; + texcoords[i * 2 + 1] = 1.0 - glb_get_float(stream) / 64; + } + } + + if(nindices > 0) { + for(i = 0; i < nindices; i += 3) { + face = g_new0(G3DFace, 1); + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + face->normals = g_new0(G3DFloat, 3 * 3); + face->flags |= G3D_FLAG_FAC_NORMALS; + for(j = 0; j < 3; j ++) { + face->vertex_indices[j] = g3d_stream_read_int32_be(stream); + + /* set normals */ + index = face->vertex_indices[j]; + face->normals[j * 3 + 0] = normals[index * 3 + 0]; + face->normals[j * 3 + 1] = normals[index * 3 + 1]; + face->normals[j * 3 + 2] = normals[index * 3 + 2]; + } + face->material = g_slist_nth_data(object->materials, 0); + + if(face->material->tex_image != NULL) { + face->tex_vertex_count = 3; + face->tex_vertex_data = g_new0(G3DFloat, 3 * 2); + face->tex_image = face->material->tex_image; + for(j = 0; j < 3; j ++) { + index = face->vertex_indices[j]; + + face->tex_vertex_data[j * 2 + 0] = + texcoords[index * 2 + 0]; + face->tex_vertex_data[j * 2 + 1] = + texcoords[index * 2 + 1]; + face->flags |= G3D_FLAG_FAC_TEXMAP; + } + } + + object->faces = g_slist_append(object->faces, face); + } + } + + if(normals != NULL) + g_free(normals); + if(texcoords != NULL) + g_free(texcoords); + } + + return pobject; +} 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_heightfield/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_heightfield +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_heightfield_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_heightfield_la_OBJECTS = imp_heightfield.lo +imp_heightfield_la_OBJECTS = $(am_imp_heightfield_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_heightfield_la_SOURCES) +DIST_SOURCES = $(imp_heightfield_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_heightfield.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_heightfield_la_SOURCES = imp_heightfield.c +imp_heightfield_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_heightfield.la: $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_heightfield.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_heightfield.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_heightfield_la_SOURCES = imp_heightfield.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_heightfield +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_heightfield_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_heightfield_la_OBJECTS = imp_heightfield.lo +imp_heightfield_la_OBJECTS = $(am_imp_heightfield_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_heightfield_la_SOURCES) +DIST_SOURCES = $(imp_heightfield_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_heightfield.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_heightfield_la_SOURCES = imp_heightfield.c +imp_heightfield_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_heightfield.la: $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_heightfield.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include +#include +#include +#include +#include + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + G3DImage *image = g_new0(G3DImage, 1); + G3DObject *object; + G3DMaterial *material; + guint32 x, y, index; + G3DFloat pcnt, prev_pcnt = 0.0; + + if(!g3d_plugins_load_image_from_stream(context, stream, image)) { + g_free(image); + return FALSE; + } + + material = g3d_material_new(); + material->name = g_strdup("default material"); + material->r = 0.4; + material->g = 0.4; + material->b = 0.4; + material->a = 1.0; + model->materials = g_slist_append(model->materials, material); + + object = g3d_primitive_mesh(image->width, image->height, FALSE, FALSE, + material); + object->name = g_strdup("height field"); + model->objects = g_slist_append(model->objects, object); + +#if DEBUG > 0 + g_debug("height field loader: image: %dx%dx%d", + image->width, image->height, image->depth); +#endif + + for(y = 0; y < image->height; y ++) { + for(x = 0; x < image->width; x ++) { + index = y * image->width + x; + + object->vertex_data[index * 3 + 0] = x; + object->vertex_data[index * 3 + 1] = y; + switch(image->depth) { + case 8: + object->vertex_data[index * 3 + 2] = 0.0 + + (G3DFloat)image->pixeldata[index] / 32.0; + break; + case 15: + case 16: + object->vertex_data[index*3+2] = 0.0 + + *((guint16*)&image->pixeldata[index]); + break; + case 24: + case 32: + object->vertex_data[index * 3 + 2] = 0.0 + + image->pixeldata[index * 4] / 32.0; + break; + default: + break; + } + + pcnt = (G3DFloat)(y * image->width + x) / + (G3DFloat)(image->width * image->height); + if((pcnt - prev_pcnt) > 0.01) { + prev_pcnt = pcnt; + g3d_context_update_progress_bar(context, pcnt, TRUE); + } + g3d_context_update_interface(context); + } /* for(x) */ + } /* for(y) */ + + return TRUE; +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("Generate height fields from images.\n" + "Author: Markus Dahms"); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g3d_plugins_get_image_extensions(context); +} + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_iob/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_iob +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_iob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_iob_la_OBJECTS = imp_iob.lo imp_iob_callbacks.lo +imp_iob_la_OBJECTS = $(am_imp_iob_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_iob_la_SOURCES) +DIST_SOURCES = $(imp_iob_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_iob.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \ + imp_iob_callbacks.c imp_iob_callbacks.h + +imp_iob_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_iob.la: $(imp_iob_la_OBJECTS) $(imp_iob_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_iob_la_OBJECTS) $(imp_iob_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_iob.Plo +include ./$(DEPDIR)/imp_iob_callbacks.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_iob.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \ + imp_iob_callbacks.c imp_iob_callbacks.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_iob +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_iob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_iob_la_OBJECTS = imp_iob.lo imp_iob_callbacks.lo +imp_iob_la_OBJECTS = $(am_imp_iob_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_iob_la_SOURCES) +DIST_SOURCES = $(imp_iob_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_iob.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \ + imp_iob_callbacks.c imp_iob_callbacks.h + +imp_iob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_iob.la: $(imp_iob_la_OBJECTS) $(imp_iob_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_iob_la_OBJECTS) $(imp_iob_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_iob.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_iob_callbacks.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include + +#include +#include +#include +#include +#include +#include +#include + +#include "imp_iob_chunks.h" + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + G3DIffGlobal *global; + G3DIffLocal *local; + guint32 id; + gsize len; + G3DMatrix rmatrix[16]; + + if(!g3d_iff_check(stream, &id, &len) || + (id != G3D_IFF_MKID('T','D','D','D'))) { + g_warning("file is not an .iob (TDDD) file %s", stream->uri); + return FALSE; + } + + local = g_new0(G3DIffLocal, 1); + global = g_new0(G3DIffGlobal, 1); + + global->context = context; + global->model = model; + global->stream = stream; + + local->parent_id = id; + local->nb = len; + + g3d_iff_read_ctnr(global, local, iob_chunks, G3D_IFF_PAD2); + + g3d_matrix_identity(rmatrix); + g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix); + g3d_model_transform(model, rmatrix); + + g_free(local); + g_free(global); + + return TRUE; +} + +EAPI +char *plugin_description(void) +{ + return g_strdup("Impulse Turbo Silver / Imagine models."); +} + +EAPI +char **plugin_extensions(void) +{ + return g_strsplit("iob", ":", 0); +} + + +/*****************************************************************************/ +/* IOB specific */ +/*****************************************************************************/ + +G3DFloat iob_read_fract(G3DStream *stream) +{ + gint32 i = g3d_stream_read_int32_be(stream); + return (G3DFloat)(i / 0xFFFF); +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_IOB_H +#define _IMP_IOB_H + +#include +#include + +#include + +G3DFloat iob_read_fract(G3DStream *stream); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include +#include +#include + +#include "imp_iob.h" + +gboolean iob_cb_xLSx(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DObject *object; + G3DMaterial *material; + G3DFace *face; + gint32 i, nitems; + + object = (G3DObject *)local->object; + g_return_val_if_fail(object != NULL, FALSE); + + if((local->id & 0xFF) == '2') + { + nitems = g3d_stream_read_int32_be(global->stream); + local->nb -= 4; + } + else + { + nitems = g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + } + + for(i = 0; i < nitems; i ++) + { + /* TODO: find material by parameters, don't create too much + * materials */ + + /* default material + nth */ + material = g_slist_nth_data(object->materials, i + 1); + if(material == NULL) + { + material = g3d_material_new(); + material->flags |= G3D_FLAG_MAT_TWOSIDE; + material->name = g_strdup_printf("per face material #%d", i); + object->materials = g_slist_append(object->materials, material); + + /* assign to face */ + face = g_slist_nth_data(object->faces, i); + if(face) + face->material = material; + } + + switch(local->id) + { + case G3D_IFF_MKID('C', 'L', 'S', 'T'): + case G3D_IFF_MKID('C', 'L', 'S', '2'): + material->r = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0; + material->g = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0; + material->b = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0; + break; + + case G3D_IFF_MKID('R', 'L', 'S', 'T'): + case G3D_IFF_MKID('R', 'L', 'S', '2'): + material->specular[0] = + (GLfloat)g3d_stream_read_int8(global->stream) / 255.0; + material->specular[1] = + (GLfloat)g3d_stream_read_int8(global->stream) / 255.0; + material->specular[2] = + (GLfloat)g3d_stream_read_int8(global->stream) / 255.0; + break; + + case G3D_IFF_MKID('T', 'L', 'S', 'T'): + case G3D_IFF_MKID('T', 'L', 'S', '2'): + material->a = 1.0 - ( + (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 + + (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 + + (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0) / 3.0; + break; + } + + local->nb -= 3; + } + + return TRUE; +} + +gboolean iob_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DObject *object; + G3DMaterial *material; + + object = (G3DObject *)local->object; + g_return_val_if_fail(object != NULL, FALSE); + + material = g_slist_nth_data(object->materials, 0); + g_return_val_if_fail(material != NULL, FALSE); + + g3d_stream_read_int8(global->stream); + material->r = (float)g3d_stream_read_int8(global->stream) / 255.0; + material->g = (float)g3d_stream_read_int8(global->stream) / 255.0; + material->b = (float)g3d_stream_read_int8(global->stream) / 255.0; + local->nb -= 4; + + return TRUE; +} + +gboolean iob_cb_DESC(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DObject *object; + G3DMaterial *material; + + if(local->finalize) return TRUE; + + object = g_new0(G3DObject, 1); + global->model->objects = g_slist_append(global->model->objects, object); + + material = g3d_material_new(); + material->flags |= G3D_FLAG_MAT_TWOSIDE; + material->name = g_strdup("(default material)"); + + object->materials = g_slist_append(object->materials, material); + + local->object = object; + + return TRUE; +} + +gboolean iob_cb_EDGx(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DObject *object; + gint32 i, nedges; + gint32 *edges; + + object = (G3DObject *)local->object; + g_return_val_if_fail(object != NULL, FALSE); + + if(local->id == G3D_IFF_MKID('E','D','G','E')) + { + nedges = g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + } + else + { + nedges = g3d_stream_read_int32_be(global->stream); + local->nb -= 4; + } + + edges = g_malloc(nedges * 2 * sizeof(gint32)); + for(i = 0; i < nedges; i ++) + { + if(local->id == G3D_IFF_MKID('E','D','G','E')) + { + edges[i * 2 + 0] = g3d_stream_read_int16_be(global->stream); + edges[i * 2 + 1] = g3d_stream_read_int16_be(global->stream); + local->nb -= 4; + } + else + { + edges[i * 2 + 0] = g3d_stream_read_int32_be(global->stream); + edges[i * 2 + 1] = g3d_stream_read_int32_be(global->stream); + local->nb -= 8; + } + } + + local->level_object = edges; + + return TRUE; +} + +gboolean iob_cb_FACx(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DObject *object; + gint32 *edges, e[3], v1, v2, v3; + gint32 i, nfaces; + + object = (G3DObject *)local->object; + g_return_val_if_fail(object != NULL, FALSE); + + /* edges are read in EDGE/EDG2 chunk */ + edges = (gint32 *)local->level_object; + g_return_val_if_fail(edges != NULL, FALSE); + + if(local->id == G3D_IFF_MKID('F','A','C','E')) + { + nfaces = g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + } + else + { + nfaces = g3d_stream_read_int32_be(global->stream); + local->nb -= 4; + } + + for(i = 0; i < nfaces; i ++) + { + G3DFace *face = g_new0(G3DFace, 1); + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + + if(local->id == G3D_IFF_MKID('F','A','C','E')) + { + e[0] = g3d_stream_read_int16_be(global->stream); + e[1] = g3d_stream_read_int16_be(global->stream); + e[2] = g3d_stream_read_int16_be(global->stream); + local->nb -= 6; + } + else + { + e[0] = g3d_stream_read_int32_be(global->stream); + e[1] = g3d_stream_read_int32_be(global->stream); + e[2] = g3d_stream_read_int32_be(global->stream); + local->nb -= 12; + } + + face->vertex_indices[0] = v1 = edges[e[0] * 2 + 0]; + face->vertex_indices[1] = v2 = edges[e[0] * 2 + 1]; + if((v1 != edges[e[1] * 2 + 0]) && (v2 != edges[e[1] * 2 + 0])) + v3 = edges[e[1] * 2 + 0]; + else if((v1 != edges[e[1] * 2 + 1]) && (v2 != edges[e[1] * 2 + 1])) + v3 = edges[e[1] * 2 + 1]; + else if((v1 != edges[e[2] * 2 + 0]) && (v2 != edges[e[2] * 2 + 0])) + v3 = edges[e[2] * 2 + 0]; + else + v3 = edges[e[2] * 2 + 1]; + + face->vertex_indices[2] = v3; + + face->material = g_slist_nth_data(object->materials, 0); + object->faces = g_slist_append(object->faces, face); + } + + /* free edges now */ + g_free(edges); + local->level_object = NULL; + + return TRUE; +} + +gboolean iob_cb_NAME(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DObject *object; + gchar buffer[512]; + + object = (G3DObject *)local->object; + g_return_val_if_fail(object != NULL, FALSE); + + g3d_stream_read(global->stream, buffer, local->nb); + + object->name = g_convert(buffer, local->nb, + "UTF-8", "ISO-8859-1", + NULL, NULL, NULL); + + local->nb = 0; + + return TRUE; +} + +gboolean iob_cb_PNTx(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DObject *object; + gint32 i; + + object = (G3DObject *)local->object; + g_return_val_if_fail(object != NULL, FALSE); + + if(local->id == G3D_IFF_MKID('P','N','T','S')) + { + object->vertex_count = g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + } + else + { + object->vertex_count = g3d_stream_read_int32_be(global->stream); + local->nb -= 4; + } + + object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3); + + for(i = 0; i < object->vertex_count; i ++) + { + object->vertex_data[i * 3 + 0] = iob_read_fract(global->stream); + object->vertex_data[i * 3 + 1] = iob_read_fract(global->stream); + object->vertex_data[i * 3 + 2] = iob_read_fract(global->stream); + local->nb -= 12; + } + + return TRUE; +} + +gboolean iob_cb_REFL(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DObject *object; + G3DMaterial *material; + gint32 i; + + object = (G3DObject *)local->object; + g_return_val_if_fail(object != NULL, FALSE); + + material = g_slist_nth_data(object->materials, 0); + g_return_val_if_fail(material != NULL, FALSE); + + g3d_stream_read_int8(global->stream); + for(i = 0; i < 3; i ++) + material->specular[i] = + (GLfloat)g3d_stream_read_int8(global->stream) / 255.0; + local->nb -= 4; + + return TRUE; +} + +gboolean iob_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DObject *object; + G3DMaterial *material; + + object = (G3DObject *)local->object; + g_return_val_if_fail(object != NULL, FALSE); + + material = g_slist_nth_data(object->materials, 0); + g_return_val_if_fail(material != NULL, FALSE); + + g3d_stream_read_int8(global->stream); + material->a = 1.0 - ( + (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 + + (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 + + (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0) / 3.0; + local->nb -= 4; + + return TRUE; +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_IOB_CALLBACKS_H +#define _IMP_IOB_CALLBACKS_H + +#include + +gboolean iob_cb_xLSx(G3DIffGlobal *global, G3DIffLocal *local); +gboolean iob_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local); +gboolean iob_cb_DESC(G3DIffGlobal *global, G3DIffLocal *local); +gboolean iob_cb_EDGx(G3DIffGlobal *global, G3DIffLocal *local); +gboolean iob_cb_FACx(G3DIffGlobal *global, G3DIffLocal *local); +gboolean iob_cb_NAME(G3DIffGlobal *global, G3DIffLocal *local); +gboolean iob_cb_PNTx(G3DIffGlobal *global, G3DIffLocal *local); +gboolean iob_cb_REFL(G3DIffGlobal *global, G3DIffLocal *local); +gboolean iob_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_IOB_CHUNKS_H +#define _IMP_IOB_CHUNKS_H + +#include + +#include "imp_iob_callbacks.h" + +static G3DIffChunkInfo iob_chunks[] = { + { "AXIS", "coordinate system", 0, NULL }, + { "BBOX", "bounding box data", 0, NULL }, + { "BRS4", "brush (4)", 0, NULL }, + { "BRS5", "brush (5)", 0, NULL }, + { "COLR", "color", 0, iob_cb_COLR }, + { "CLS2", "color list (2)", 0, iob_cb_xLSx }, + { "CLST", "color list", 0, iob_cb_xLSx }, + { "DESC", "object description", 1, iob_cb_DESC }, + { "EDG2", "edges", 0, iob_cb_EDGx }, + { "EDGE", "edges", 0, iob_cb_EDGx }, + { "EFLG", "edge flags", 0, NULL }, + { "FACE", "faces", 0, iob_cb_FACx }, + { "FAC2", "faces (2)", 0, iob_cb_FACx }, + { "FGR2", "face group (2)", 0, NULL }, + { "FGR3", "face group (3)", 0, NULL }, + { "FGR4", "face group (4)", 0, NULL }, + { "INT1", "light intensity (1)", 0, NULL }, + { "NAME", "name", 0, iob_cb_NAME }, + { "OBJ ", "object", 1, NULL }, + { "PART", "particle parameters", 0, NULL }, + { "PNT2", "points (2)", 0, iob_cb_PNTx }, + { "PNTS", "points", 0, iob_cb_PNTx }, + { "POSI", "position in world", 0, NULL }, + { "PRP1", "properties (1)", 0, NULL }, + { "PRP2", "properties (2)", 0, NULL }, + { "REFL", "reflection", 0, iob_cb_REFL }, + { "RLS2", "reflection list (2)", 0, iob_cb_xLSx }, + { "RLST", "reflection list", 0, iob_cb_xLSx }, + { "SPC1", "specularity (1)", 0, NULL }, + { "SPC2", "specularity (2)", 0, NULL }, + { "SHAP", "shape type", 0, NULL }, + { "SHP2", "shape type (2)", 0, NULL }, + { "SIZE", "size", 0, NULL }, + { "TLS2", "transparency list", 0, iob_cb_xLSx }, + { "TLST", "transparency list (2)", 0, iob_cb_xLSx }, + { "TOBJ", "end of object", 0, NULL }, + { "TRAN", "transparency", 0, iob_cb_TRAN }, + { "TXT3", "texture data (3)", 0, NULL }, + { "TXT4", "texture data (4)", 0, NULL }, + + { NULL, NULL, 0, NULL } +}; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_joe/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_joe +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_joe_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_joe_la_OBJECTS = imp_joe.lo +imp_joe_la_OBJECTS = $(am_imp_joe_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_joe_la_SOURCES) +DIST_SOURCES = $(imp_joe_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_joe.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_joe_la_SOURCES = imp_joe.c +imp_joe_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_joe.la: $(imp_joe_la_OBJECTS) $(imp_joe_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_joe_la_OBJECTS) $(imp_joe_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_joe.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_joe.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_joe_la_SOURCES = imp_joe.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_joe +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_joe_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_joe_la_OBJECTS = imp_joe.lo +imp_joe_la_OBJECTS = $(am_imp_joe_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_joe_la_SOURCES) +DIST_SOURCES = $(imp_joe_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_joe.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_joe_la_SOURCES = imp_joe.c +imp_joe_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_joe.la: $(imp_joe_la_OBJECTS) $(imp_joe_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_joe_la_OBJECTS) $(imp_joe_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_joe.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +G3DObject *joe_load_object(G3DContext *context, const gchar *filename, + G3DModel *model); +GHashTable *joe_load_car(const gchar *filename); +void joe_destroy_car(GHashTable *hashtable); +gboolean joe_parse_vertex(const gchar *text, G3DFloat *x, G3DFloat *y, G3DFloat *z); +void joe_object_flip_x(G3DObject *object); + +/*****************************************************************************/ +/* plugin interface */ +/*****************************************************************************/ + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer plugin_data) +{ + G3DObject *object; + GHashTable *cardata; + gchar *value; + G3DFloat x, y, z; + G3DMatrix matrix[16]; + gboolean rval = FALSE; + + if(g_strcasecmp(stream->uri + strlen(stream->uri) - 3, "car") == 0) + { + /* .car file */ + setlocale(LC_NUMERIC, "C"); + + cardata = joe_load_car(stream->uri); + + joe_load_object(context, "body.joe", model); + joe_load_object(context, "interior.joe", model); + joe_load_object(context, "glass.joe", model); + + /* wheels */ + object = joe_load_object(context, "wheel_front.joe", model); + joe_object_flip_x(object); + value = g_hash_table_lookup(cardata, "wheel-FL.position"); + if(value != NULL) + { + joe_parse_vertex(value, &x, &y, &z); + g3d_matrix_identity(matrix); + g3d_matrix_translate(y, x, z, matrix); + g3d_object_transform(object, matrix); + } + + object = joe_load_object(context, "wheel_front.joe", model); + value = g_hash_table_lookup(cardata, "wheel-FR.position"); + if(value != NULL) + { + joe_parse_vertex(value, &x, &y, &z); + g3d_matrix_identity(matrix); + g3d_matrix_translate(y, x, z, matrix); + g3d_object_transform(object, matrix); + } + + object = joe_load_object(context, "wheel_rear.joe", model); + joe_object_flip_x(object); + value = g_hash_table_lookup(cardata, "wheel-RL.position"); + if(value != NULL) + { + joe_parse_vertex(value, &x, &y, &z); + g3d_matrix_identity(matrix); + g3d_matrix_translate(y, x, z, matrix); + g3d_object_transform(object, matrix); + } + + object = joe_load_object(context, "wheel_rear.joe", model); + value = g_hash_table_lookup(cardata, "wheel-RR.position"); + if(value != NULL) + { + joe_parse_vertex(value, &x, &y, &z); + g3d_matrix_identity(matrix); + g3d_matrix_translate(y, x, z, matrix); + g3d_object_transform(object, matrix); + } + + joe_destroy_car(cardata); + rval = TRUE; + } + else + { + /* .joe file */ + rval = (joe_load_object(context, stream->uri, model) != NULL); + } + + g3d_matrix_identity(matrix); + g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, matrix); + g3d_model_transform(model, matrix); + + return rval; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("VDrift models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("joe:car", ":", 0); +} + +/*****************************************************************************/ + +G3DObject *joe_load_object(G3DContext *context, const gchar *filename, + G3DModel *model) +{ + G3DStream *stream; + gchar *basename, *texname; + G3DObject *object; + G3DMaterial *material; + G3DFace *face; + G3DImage *image; + GSList *item; + guint32 magic, version; + guint32 num_faces, num_frames, num_verts, num_texcoords, num_normals; + gint32 frame, i, j, index; + guint16 *tex_indices, *normal_indices; + G3DFloat *normals = NULL, *texcoords = NULL; + + stream = g3d_stream_open_file(filename, "rb"); + if(stream == NULL) { + g_critical("JOE: failed to read '%s'", filename); + return NULL; + } + + magic = g3d_stream_read_int32_be(stream); + if(magic != G3D_IFF_MKID('I','D','P','2')) { + g_critical("JOE: wrong magic in '%s'", filename); + g3d_stream_close(stream); + return NULL; + } + + /* base file name for object name & texture loading */ + basename = g_path_get_basename(filename); + + /* version 3 */ + + version = g3d_stream_read_int32_le(stream); + num_faces = g3d_stream_read_int32_le(stream); + num_frames = g3d_stream_read_int32_le(stream); + + printf("JOE: faces: %d, frames: %d\n", num_faces, num_frames); + + /* create object */ + object = g_new0(G3DObject, 1); + object->name = g_strdup(basename); + model->objects = g_slist_append(model->objects, object); + + /* load texture image */ + memcpy(basename + strlen(basename) - 3, "png", 3); + texname = g_strdup_printf("textures/%s", basename); + image = g3d_texture_load_cached(context, model, texname); + if(image == NULL) + g_warning("JOE: failed to load texture '%s'\n", texname); + else + image->tex_id = g_str_hash(texname); + g_free(texname); + + /* create default material */ + material = g3d_material_new(); + material->name = g_strdup("default material"); + material->tex_image = image; + object->materials = g_slist_append(object->materials, material); + + /* frames */ + for(frame = 0; frame < 1; frame ++) { + /* create temporary storage */ + tex_indices = g_new0(guint16, num_faces * 3 * 3); + normal_indices = g_new0(guint16, num_faces * 3 * 2); + + /* faces blob */ + for(i = 0; i < num_faces; i ++) { + face = g_new0(G3DFace, 1); + face->material = material; + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + + for(j = 0; j < 3; j ++) + face->vertex_indices[j] = g3d_stream_read_int16_le(stream); + + /* normalIndex */ + for(j = 0; j < 3; j ++) + normal_indices[i * 3 + j] = g3d_stream_read_int16_le(stream); + + /* textureIndex */ + /* JOE_MAX_TEXTURES times, 1x for version 3 */ + for(j = 0; j < 3; j ++) + tex_indices[i * 3 + j] = g3d_stream_read_int16_le(stream); + + object->faces = g_slist_append(object->faces, face); + } + + /* num_verts */ + num_verts = g3d_stream_read_int32_le(stream); + + /* num_texcoords */ + num_texcoords = g3d_stream_read_int32_le(stream); + if(num_texcoords != 0) + texcoords = g_new0(G3DFloat, num_texcoords * 2); + + /* num_normals */ + num_normals = g3d_stream_read_int32_le(stream); + if(num_normals != 0) + normals = g_new0(G3DFloat, num_normals * 3); + + g_debug("JOE: verts: %d, texcoords: %d, normals: %d\n", + num_verts, num_texcoords, num_normals); + + /* verts blob */ + object->vertex_count = num_verts; + object->vertex_data = g_new0(G3DFloat, num_verts * 3); + for(i = 0; i < num_verts; i ++) { + object->vertex_data[i * 3 + 0] = g3d_stream_read_float_le(stream); + object->vertex_data[i * 3 + 1] = g3d_stream_read_float_le(stream); + object->vertex_data[i * 3 + 2] = g3d_stream_read_float_le(stream); + } + + /* normals blob */ + for(i = 0; i < num_normals; i ++) { + normals[i * 3 + 0] = - g3d_stream_read_float_le(stream); + normals[i * 3 + 1] = - g3d_stream_read_float_le(stream); + normals[i * 3 + 2] = - g3d_stream_read_float_le(stream); + } + + /* texcoords blob */ + for(i = 0; i < num_texcoords; i ++) { + texcoords[i * 2 + 0] = g3d_stream_read_float_le(stream); + texcoords[i * 2 + 1] = g3d_stream_read_float_le(stream); + } + + /* fix faces */ + for(item = object->faces, i = 0; item != NULL; item = item->next, i ++) + { + face = (G3DFace *)item->data; + + face->flags |= G3D_FLAG_FAC_NORMALS; + if(image != NULL) face->flags |= G3D_FLAG_FAC_TEXMAP; + + face->normals = g_new0(G3DFloat, 3 * 3); + face->tex_image = image; + face->tex_vertex_count = 3; + face->tex_vertex_data = g_new0(G3DFloat, 3 * 2); + for(j = 0; j < 3; j ++) + { + index = normal_indices[i * 3 + j]; + face->normals[j * 3 + 0] = normals[index * 3 + 0]; + face->normals[j * 3 + 1] = normals[index * 3 + 1]; + face->normals[j * 3 + 2] = normals[index * 3 + 2]; + + index = tex_indices[i * 3 + j]; + face->tex_vertex_data[j * 2 + 0] = texcoords[index * 2 + 0]; + face->tex_vertex_data[j * 2 + 1] = texcoords[index * 2 + 1]; + } + } + + /* clear temporary storage */ + g_free(normal_indices); + g_free(tex_indices); + + if(normals != NULL) + { + g_free(normals); + normals = NULL; + } + + if(texcoords != NULL) + { + g_free(texcoords); + texcoords = NULL; + } + } + + /* clean up */ + g_free(basename); + g3d_stream_close(stream); + + return object; +} + +GHashTable *joe_load_car(const gchar *filename) +{ + G3DStream *stream; + GHashTable *ht; + gchar buffer[2048 + 1], section[256], varname[256], value[256]; + gchar *ep; + + stream = g3d_stream_open_file(filename, "r"); + if(stream == NULL) { + g_critical("JOE: failed to read '%s'", filename); + return NULL; + } + + ht = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); + + memset(section, 0, 256); + + while(!g3d_stream_eof(stream)) { + g3d_stream_read_line(stream, buffer, 2048); + if((buffer[0] == '\0') || (buffer[0] == '\n')) + continue; + + if(buffer[0] == '[') { + /* section title */ + if(sscanf(buffer, "[ %s ]", section) != 1) { + g_warning("JOE: CAR: failed to read section title '%s'\n", + buffer); + } + } else { + /* property */ + ep = strchr(buffer, '='); + if(ep != NULL) + { + memset(varname, 0, 256); + strncpy(varname, buffer, (ep - buffer)); + g_strstrip(varname); + + strcpy(value, ep + 1); + g_strstrip(value); +#if DEBUG > 0 + g_debug("JOE: %s.%s = %s", section, varname, value); +#endif + g_hash_table_insert(ht, + g_strdup_printf("%s.%s", section, varname), + g_strdup(value)); + } + } + } + + return ht; +} + +void joe_destroy_car(GHashTable *hashtable) +{ + g_hash_table_destroy(hashtable); +} + +gboolean joe_parse_vertex(const gchar *text, G3DFloat *x, G3DFloat *y, G3DFloat *z) +{ + return (sscanf(text, G3D_SCANF_FLOAT ", " G3D_SCANF_FLOAT ", " G3D_SCANF_FLOAT, x, y, z) == 3); +} + +void joe_object_flip_x(G3DObject *object) +{ + guint32 i; + + for(i = 0; i < object->vertex_count; i ++) + object->vertex_data[i * 3 + 0] *= -1; +} 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_kmz/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_kmz +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_kmz_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_kmz_la_OBJECTS = imp_kmz.lo +imp_kmz_la_OBJECTS = $(am_imp_kmz_la_OBJECTS) +am_imp_kmz_la_rpath = -rpath \ + $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_kmz_la_SOURCES) +DIST_SOURCES = $(imp_kmz_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_kmz.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 \ + -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 + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_kmz_la_SOURCES = imp_kmz.c +imp_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 \ + -L/usr/lib/x86_64-linux-gnu -lxml2 + +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_kmz.la: $(imp_kmz_la_OBJECTS) $(imp_kmz_la_DEPENDENCIES) + $(LINK) $(am_imp_kmz_la_rpath) $(imp_kmz_la_OBJECTS) $(imp_kmz_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_kmz.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if HAVE_LIBXML2 +if HAVE_LIBGSF +pluginimp_LTLIBRARIES = imp_kmz.la +endif +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ @LIBXML2_CFLAGS@ \ + @LIBGSF_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_kmz_la_SOURCES = imp_kmz.c +imp_kmz_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBGSF_LIBS@ \ + @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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_kmz +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_kmz_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_kmz_la_OBJECTS = imp_kmz.lo +imp_kmz_la_OBJECTS = $(am_imp_kmz_la_OBJECTS) +@HAVE_LIBGSF_TRUE@@HAVE_LIBXML2_TRUE@am_imp_kmz_la_rpath = -rpath \ +@HAVE_LIBGSF_TRUE@@HAVE_LIBXML2_TRUE@ $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_kmz_la_SOURCES) +DIST_SOURCES = $(imp_kmz_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@HAVE_LIBGSF_TRUE@@HAVE_LIBXML2_TRUE@pluginimp_LTLIBRARIES = imp_kmz.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ @LIBXML2_CFLAGS@ \ + @LIBGSF_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_kmz_la_SOURCES = imp_kmz.c +imp_kmz_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBGSF_LIBS@ \ + @LIBXML2_LIBS@ + +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_kmz.la: $(imp_kmz_la_OBJECTS) $(imp_kmz_la_DEPENDENCIES) + $(LINK) $(am_imp_kmz_la_rpath) $(imp_kmz_la_OBJECTS) $(imp_kmz_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_kmz.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +#include +#include + +#include +#include + +#include +#include +#include + +static gchar * kmz_find_model(xmlDocPtr xmldoc); + +static int kml_stream_read_cb(gpointer ctx, gchar *buffer, gint len) +{ + return g3d_stream_read((G3DStream *)ctx, buffer, len); +} + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model) +{ + G3DStream *stream_dockml, *stream_model; + gchar *daename; + xmlDocPtr xmldoc; + gboolean retval = FALSE, from_zip = TRUE; + + setlocale(LC_NUMERIC, "C"); + + xmlInitParser(); + + stream_dockml = g3d_stream_open_zip_from_stream(stream, "doc.kml"); + if(stream_dockml == NULL) { + g_debug("KMZ: failed to read 'doc.kml' from '%s', trying to " + "use input stream as 'doc.kml'", stream->uri); + stream_dockml = stream; + from_zip = FALSE; + } + + xmldoc = xmlReadIO(kml_stream_read_cb, NULL, + stream_dockml, "file:///tmp/doc.kml", NULL, 0); + if(xmldoc) { + g_debug("KMZ: parsed doc.kml"); + + daename = kmz_find_model(xmldoc); + if(daename != NULL) { +/*#if DEBUG > 1*/ + g_debug("KMZ: loading '%s' from '%s'", daename, stream->uri); +/*#endif*/ + if(from_zip) + stream_model = g3d_stream_open_zip_from_stream(stream, + daename); + else + stream_model = g3d_stream_open_file(daename, "r"); + + if(stream_model != NULL) { + retval = g3d_plugins_load_model_from_stream(context, + stream_model, model); + g3d_stream_close(stream_model); + } else { + g_warning("KMZ: failed to find '%s'%s%s%s", daename, + from_zip ? " in '" : "", + from_zip ? stream->uri : "", + from_zip ? "'" : ""); + } + } + + xmlFreeDoc(xmldoc); + } + + if(from_zip) + g3d_stream_close(stream_dockml); + xmlCleanupParser(); + + return retval; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("Keyhole Markup Language model containers."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("kmz:kml:zip", ":", 0); +} + +/*****************************************************************************/ + +static xmlNodePtr kmz_find_node(xmlNodePtr parentnode, const gchar *path) +{ + gchar *slash, *elem; + xmlNodePtr node, pathnode; + gboolean last = FALSE; + + slash = strchr(path, '/'); + if(slash) + elem = g_strndup(path, slash - path); + else { + elem = g_strdup(path); + last = TRUE; + } + + if(strlen(elem) == 0) + return NULL; + + for(node = parentnode->children; node != NULL; node = node->next) { + if(node->type != XML_ELEMENT_NODE) + continue; + if(xmlStrcmp(node->name, (xmlChar *)elem) == 0) { + if(last) { + g_free(elem); + return node; + } else { + pathnode = kmz_find_node(node, slash + 1); + if(pathnode != NULL) { + g_free(elem); + return pathnode; + } + } + } + } + g_free(elem); + return NULL; +} + +static gchar * kmz_find_model(xmlDocPtr xmldoc) +{ + xmlNodePtr rootnode, hrefnode; + + rootnode = xmlDocGetRootElement(xmldoc); + if(rootnode == NULL) + return NULL; + + hrefnode = kmz_find_node(rootnode, "Folder/Placemark/Model/Link/href"); + if(hrefnode) + return (gchar *)hrefnode->children->content; + hrefnode = kmz_find_node(rootnode, "Placemark/Model/Link/href"); + if(hrefnode) + return (gchar *)hrefnode->children->content; + return NULL; +} + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_ldraw/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_ldraw +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_ldraw_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_ldraw_la_OBJECTS = imp_ldraw.lo imp_ldraw_part.lo \ + imp_ldraw_library.lo imp_ldraw_color.lo imp_ldraw_mpd.lo +imp_ldraw_la_OBJECTS = $(am_imp_ldraw_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_ldraw_la_SOURCES) +DIST_SOURCES = $(imp_ldraw_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_ldraw.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_ldraw_la_SOURCES = imp_ldraw.c imp_ldraw_misc.h imp_ldraw_types.h \ + imp_ldraw_part.c imp_ldraw_part.h \ + imp_ldraw_library.c imp_ldraw_library.h \ + imp_ldraw_color.c imp_ldraw_color.h \ + imp_ldraw_mpd.c imp_ldraw_mpd.h + +imp_ldraw_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_ldraw.la: $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_ldraw.Plo +include ./$(DEPDIR)/imp_ldraw_color.Plo +include ./$(DEPDIR)/imp_ldraw_library.Plo +include ./$(DEPDIR)/imp_ldraw_mpd.Plo +include ./$(DEPDIR)/imp_ldraw_part.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_ldraw.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_ldraw_la_SOURCES = imp_ldraw.c imp_ldraw_misc.h imp_ldraw_types.h \ + imp_ldraw_part.c imp_ldraw_part.h \ + imp_ldraw_library.c imp_ldraw_library.h \ + imp_ldraw_color.c imp_ldraw_color.h \ + imp_ldraw_mpd.c imp_ldraw_mpd.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_ldraw +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_ldraw_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_ldraw_la_OBJECTS = imp_ldraw.lo imp_ldraw_part.lo \ + imp_ldraw_library.lo imp_ldraw_color.lo imp_ldraw_mpd.lo +imp_ldraw_la_OBJECTS = $(am_imp_ldraw_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_ldraw_la_SOURCES) +DIST_SOURCES = $(imp_ldraw_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_ldraw.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_ldraw_la_SOURCES = imp_ldraw.c imp_ldraw_misc.h imp_ldraw_types.h \ + imp_ldraw_part.c imp_ldraw_part.h \ + imp_ldraw_library.c imp_ldraw_library.h \ + imp_ldraw_color.c imp_ldraw_color.h \ + imp_ldraw_mpd.c imp_ldraw_mpd.h + +imp_ldraw_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_ldraw.la: $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_color.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_library.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_mpd.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_part.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include +#include +#include +#include + +#include "imp_ldraw_types.h" +#include "imp_ldraw_part.h" +#include "imp_ldraw_library.h" +#include "imp_ldraw_mpd.h" + +static gboolean ldraw_load_simple(G3DStream *stream, G3DModel *model, + LDrawLibrary *lib); + + +EAPI +gpointer plugin_init(G3DContext *context) +{ + return ldraw_library_init(); +} + +EAPI +void plugin_cleanup(gpointer user_data) +{ + LDrawLibrary *lib = user_data; + + ldraw_library_cleanup(lib); +} + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + LDrawLibrary *lib = user_data; + + g_return_val_if_fail(lib != NULL, FALSE); + if(lib->libdir == NULL) { + g_warning("LDraw: library not found, please set LDRAWDIR"); + return FALSE; + } + + lib->context = context; + + if(g_ascii_strcasecmp(stream->uri + strlen(stream->uri) - 4, ".mpd") == 0) + return ldraw_mpd_load(stream, model, lib); + else + return ldraw_load_simple(stream, model, lib); + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("LDraw models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("ldr:mpd:dat", ":", 0); +} + +/*****************************************************************************/ + +static gboolean ldraw_load_simple(G3DStream *stream, G3DModel *model, + LDrawLibrary *lib) +{ + LDrawPart *part; + G3DObject *object; + G3DFloat m[16]; + + part = g_new0(LDrawPart, 1); + part->name = g_path_get_basename(stream->uri); + part->stream = stream; + part->master = TRUE; + + object = ldraw_part_get_object(part, lib); + if(object == NULL) + return FALSE; + + g3d_matrix_identity(m); + g3d_matrix_rotate_xyz(0.0, 0.0, G_PI, m); + g3d_object_transform(object, m); + model->objects = g_slist_append(model->objects, object); + return TRUE; +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include "imp_ldraw_types.h" + +typedef struct { + gint32 id; + const gchar *name; + G3DFloat r; + G3DFloat g; + G3DFloat b; + G3DFloat a; +} LDrawColorDef; + +static LDrawColorDef ldraw_colors[] = { + { 0, "Black", 0.13, 0.13, 0.13, 1.0 }, + { 1, "Blue", 0.00, 0.20, 0.70, 1.0 }, + { 2, "Green", 0.00, 0.55, 0.08, 1.0 }, + { 3, "Teal", 0.00, 0.60, 0.62, 1.0 }, + { 4, "Red", 0.77, 0.00, 0.15, 1.0 }, + { 5, "Dark Pink", 0.87, 0.40, 0.58, 1.0 }, + { 6, "Brown", 0.36, 0.13, 0.00, 1.0 }, + { 7, "Gray", 0.76, 0.76, 0.76, 1.0 }, + { 8, "Dark Gray", 0.39, 0.37, 0.32, 1.0 }, + { 9, "Light Blue", 0.42, 0.67, 0.86, 1.0 }, + { 10, "Bright Green", 0.42, 0.93, 0.56, 1.0 }, + { 11, "Cyan", 0.20, 0.65, 0.65, 1.0 }, + { 12, "Light Red", 1.00, 0.52, 0.48, 1.0 }, + { 13, "Pink", 0.98, 0.64, 0.78, 1.0 }, + { 14, "Yellow", 1.00, 0.86, 0.00, 1.0 }, + { 15, "White", 1.00, 1.00, 1.00, 1.0 }, + + { 17, "Light Green", 0.73, 1.00, 0.81, 1.0 }, + { 18, "Light Yellow", 0.99, 0.91, 0.59, 1.0 }, + { 20, "Light Violet", 0.84, 0.77, 0.90, 1.0 }, + { 28, "Dark Tan", 0.77, 0.59, 0.31, 1.0 }, + { 32, "Trans Gray", 0.39, 0.37, 0.32, 0.9 }, + { 33, "Trans Blue", 0.00, 0.13, 0.63, 0.9 }, + { 36, "Trans Red", 0.77, 0.00, 0.15, 0.9 }, + { 39, "Trans Light Gray", 0.76, 0.76, 0.76, 0.9 }, /* FIXME */ + { 40, "Trans Gray", 0.39, 0.37, 0.32, 0.9 }, + { 41, "Trans Light Cyan", 0.68, 0.94, 0.93, 0.95 }, + { 46, "Trans Yellow", 0.79, 0.69, 0.00, 0.9 }, + { 47, "Clear (trans white)", 1.00, 1.00, 1.00, 0.9 }, + { 72, "Dark Stone Gray", 0.39, 0.37, 0.38, 1.0 }, + { 272, "Dark Blue", 0.00, 0.11, 0.41, 1.0 }, + { 288, "Dark Green", 0.15, 0.27, 0.17, 1.0 }, + { 320, "Dark Red", 0.47, 0.00, 0.11, 1.0 }, + { 334, "Chrome Gold", 0.88, 0.43, 0.07, 1.0 }, + { 336, "Earth Orange", 0.82, 0.51, 0.02, 1.0 }, + { 383, "Chrome Silver", 0.88, 0.88, 0.88, 1.0 }, + { 431, "Light Green", 0.73, 1.00, 0.81, 1.0 }, + { 463, "Light Red", 1.00, 0.52, 0.48, 1.0 }, + { 484, "Dark Orange", 0.70, 0.24, 0.00, 1.0 }, + { 494, "Electric Contact", 0.82, 0.82, 0.82, 1.0 }, + { 495, "Light Yellow", 0.99, 0.91, 0.59, 1.0 }, + { 503, "Light Gray", 0.90, 0.89, 0.85, 1.0 }, + + { -1, NULL, 0,0,0,0 } +}; + +gboolean ldraw_color_init(LDrawLibrary *lib) +{ + G3DMaterial *material; + gint32 i; + + lib->colordb = g_hash_table_new(g_int_hash, g_int_equal); + + for(i = 0; ldraw_colors[i].id >= 0; i ++) { + material = g3d_material_new(); + material->name = g_strdup(ldraw_colors[i].name); + material->r = ldraw_colors[i].r; + material->g = ldraw_colors[i].g; + material->b = ldraw_colors[i].b; + material->a = ldraw_colors[i].a; + g_hash_table_insert(lib->colordb, &(ldraw_colors[i].id), material); + lib->colorlist = g_slist_append(lib->colorlist, material); +#if DEBUG > 2 + g_debug("LDraw: adding color '%s' with id %d", + ldraw_colors[i].name, ldraw_colors[i].id); +#endif + } + return TRUE; +} + +G3DMaterial *ldraw_color_lookup(LDrawLibrary *lib, guint32 colid) +{ + G3DMaterial *material; + guint32 fbid = 0; + + /* current color */ + if(colid == 16) + return NULL; + + material = g_hash_table_lookup(lib->colordb, &colid); + if(material == NULL) { /* fall back */ +#if DEBUG > 0 + g_debug("LDraw: failed to lookup color %u", colid); +#endif + material = g_hash_table_lookup(lib->colordb, &fbid); + } + return material; +} + 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_LDRAW_COLOR_H +#define _IMP_LDRAW_COLOR_H + +#include "imp_ldraw_types.h" + +gboolean ldraw_color_init(LDrawLibrary *lib); +G3DMaterial *ldraw_color_lookup(LDrawLibrary *lib, guint32 colid); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include + +#include "imp_ldraw_types.h" +#include "imp_ldraw_part.h" +#include "imp_ldraw_color.h" +#include "imp_ldraw_misc.h" + +static gboolean ldraw_library_add_dir(LDrawLibrary *lib, const gchar *subdir) +{ + LDrawPart *part; + const gchar *filename; + gchar *partdir, *strup; + GDir *dir; + GError *error; + gboolean prefix = FALSE; + + partdir = g_strdup_printf("%s%c%s", lib->libdir, G_DIR_SEPARATOR, subdir); + dir = g_dir_open(partdir, 0, &error); + if(dir == NULL) { + g_warning("LDraw: failed to open directory '%s': %s", partdir, + error->message); + g_error_free(error); + g_free(partdir); + return FALSE; + } + + if(path_sep(subdir)) + prefix = TRUE; + + filename = g_dir_read_name(dir); + while(filename) { + if(g_ascii_strcasecmp(filename + strlen(filename) - 4, ".dat") == 0) { +#if DEBUG > 3 + g_debug("LDraw: Library: adding '%s'", filename); +#endif + part = g_new0(LDrawPart, 1); + part->filename = g_strdup_printf("%s%c%s", + partdir, G_DIR_SEPARATOR, filename); + strup = g_ascii_strup(filename, -1); + if(prefix) + part->name = g_strdup_printf("%s%c%s", + path_sep(subdir) + 1, + G_DIR_SEPARATOR, strup); + else + part->name = g_strdup(strup); + g_free(strup); + g_hash_table_insert(lib->partdb, part->name, part); + lib->partlist = g_slist_append(lib->partlist, part); + } + filename = g_dir_read_name(dir); + } + g_dir_close(dir); + g_free(partdir); + + return TRUE; +} + +LDrawLibrary *ldraw_library_init(void) +{ + LDrawLibrary *lib; + const gchar *lddir; + + lib = g_new0(LDrawLibrary, 1); + lib->partdb = g_hash_table_new(g_str_hash, g_str_equal); + + ldraw_color_init(lib); + + lddir = g_getenv("LDRAWDIR"); + if(lddir == NULL) /* warning is issued when trying to load a model */ + return lib; + + lib->libdir = g_strdup(lddir); + + ldraw_library_add_dir(lib, "PARTS"); + ldraw_library_add_dir(lib, "PARTS" G_DIR_SEPARATOR_S "S"); + ldraw_library_add_dir(lib, "P"); + ldraw_library_add_dir(lib, "P" G_DIR_SEPARATOR_S "48"); + + return lib; +} + +void ldraw_library_cleanup(LDrawLibrary *lib) +{ + GSList *item; + LDrawPart *part; + + item = lib->partlist; + while(item != NULL) { + part = item->data; + item = g_slist_remove(item, part); + ldraw_part_free(part); + } + g_hash_table_destroy(lib->partdb); + g_free(lib); +} + +void ldraw_library_insert(LDrawLibrary *lib, gchar *name, gpointer data) +{ + g_hash_table_insert(lib->partdb, name, data); +} + +G3DObject *ldraw_library_lookup(LDrawLibrary *lib, const gchar *name) +{ + LDrawPart *part; + gchar *strc; + + part = g_hash_table_lookup(lib->partdb, name); + if(part == NULL) { + strc = g_ascii_strup(name, -1); + g_strdelimit(strc, "/\\", G_DIR_SEPARATOR); + part = g_hash_table_lookup(lib->partdb, strc); + g_free(strc); + } +#if 0 + if(part == NULL) { + strc = g_ascii_strdown(name, -1); + g_strdelimit(strc, "/\\", G_DIR_SEPARATOR); + part = g_hash_table_lookup(lib->partdb, strc); + g_free(strc); + } +#endif + if(part == NULL) { + g_warning("LDraw: failed to find '%s' in library", name); + return NULL; + } + if(part->object == NULL) { + if(part->stream) { + /* MPD loader has a custom stream */ + part->object = ldraw_part_get_object(part, lib); + } else if(part->filename) { + /* try to load part from standard library */ + part->stream = g3d_stream_open_file(part->filename, "r"); + if(part->stream) { + part->object = ldraw_part_get_object(part, lib); + g3d_stream_close(part->stream); + part->stream = NULL; + } else { + g_warning("LDraw: failed to open stream for '%s'", + part->filename); + } + } else { + g_warning("LDraw: don't know how to open part '%s'", part->name); + } + + if(part->object == NULL) { + g_warning("LDraw: failed to load part '%s'", part->name); + return NULL; + } + } + return g3d_object_duplicate(part->object); +} + 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_LDRAW_LIBRARY_H +#define _IMP_LDRAW_LIBRARY_H + +#include "imp_ldraw_types.h" + +LDrawLibrary *ldraw_library_init(void); +void ldraw_library_cleanup(LDrawLibrary *lib); +void ldraw_library_insert(LDrawLibrary *lib, gchar *name, gpointer data); +G3DObject *ldraw_library_lookup(LDrawLibrary *lib, const gchar *name); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_LDRAW_MISC_H +#define _IMP_LDRAW_MISC_H + +#include +#include + +static inline gchar *path_sep(const gchar *text) +{ + gchar *p = strchr(text, '/'); + if(p != NULL) + return p; + return strchr(text, '\\'); +} + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include +#include + +#include +#include +#include + +#include "imp_ldraw_types.h" +#include "imp_ldraw_part.h" +#include "imp_ldraw_library.h" + +static inline void ldraw_create_subpart(LDrawLibrary *lib, gchar *name, + gchar *buffer, GSList **partsp) +{ + G3DStream *substream; + LDrawPart *part; + +#if DEBUG > 2 + g_debug("LDraw: adding sub-file %s to library", name); +#endif + + substream = g3d_stream_from_buffer((guint8 *)buffer, strlen(buffer), + name, TRUE); + if(substream == NULL) { + g_warning("LDraw: failed to create stream for %s", name); + return; + } + part = g_new0(LDrawPart, 1); + part->name = g_ascii_strup(name, -1); + part->stream = substream; + + ldraw_library_insert(lib, part->name, part); + *partsp = g_slist_append(*partsp, part); +} + +gboolean ldraw_mpd_load(G3DStream *stream, G3DModel *model, + LDrawLibrary *lib) +{ + G3DObject *object = NULL; + GSList *parts = NULL, *item; + LDrawPart *part; + gchar buffer[1024], name[256], *streambuf = NULL; + gsize size; + goffset off; + G3DFloat m[16]; + + while(!g3d_stream_eof(stream)) { + memset(buffer, 0, 1024); + g3d_stream_read_line(stream, buffer, 1023); + if(strncmp(buffer, "0 FILE ", 7) == 0) { + if(streambuf) { + ldraw_create_subpart(lib, name, streambuf, &parts); + streambuf = NULL; + } + memset(name, 0, 256); + if(sscanf(buffer + 7, "%255s", name) == 1) + streambuf = g_strdup(""); + } else if(strncmp(buffer, "0 NOFILE", 8) == 0) { + if(streambuf) { + ldraw_create_subpart(lib, name, streambuf, &parts); + streambuf = NULL; + } + break; + } else if(streambuf) { + /* append line to buffer */ + size = strlen(buffer) + strlen(streambuf) + 1; + off = strlen(streambuf); + streambuf = g_realloc(streambuf, size * sizeof(gchar)); + strcpy(streambuf + off, buffer); + } + } /* !eof */ + + if(streambuf) + ldraw_create_subpart(lib, name, streambuf, &parts); + + if(parts) { + part = parts->data; + part->master = TRUE; + object = ldraw_part_get_object(part, lib); + if(object != NULL) { + g3d_matrix_identity(m); + g3d_matrix_rotate_xyz(0.0, 0.0, G_PI, m); + g3d_object_transform(object, m); + model->objects = g_slist_append(model->objects, object); + } + } + +#if 1 + /* close open streams */ + for(item = parts; item != NULL; item = item->next) { + part = item->data; + if(part->stream) { + g3d_stream_close(part->stream); + part->stream = NULL; + } + } +#endif + return (object != NULL); +} + 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_LDRAW_MPD_H +#define _IMP_LDRAW_MPD_H + +#include +#include + +#include "imp_ldraw_types.h" + +gboolean ldraw_mpd_load(G3DStream *stream, G3DModel *model, + LDrawLibrary *lib); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include +#include + +#include +#include +#include +#include +#include +#include + +#include "imp_ldraw_types.h" +#include "imp_ldraw_part.h" +#include "imp_ldraw_library.h" +#include "imp_ldraw_color.h" +#include "imp_ldraw_misc.h" + +static gboolean ldraw_part_parse_meta(G3DObject *object, gchar *buffer) +{ + if(object->name == NULL) { + object->name = g_strdup(buffer); + return TRUE; + } +#if DEBUG > 2 + g_debug("META: %s", buffer); +#endif + return TRUE; +} + +static void ldraw_part_replace_material(G3DObject *object, + G3DMaterial *material) +{ + GSList *item; + G3DObject *sub; + G3DFace *face; + + for(item = object->faces; item != NULL; item = item->next) { + face = item->data; + if(face->material == NULL) + face->material = material; + } + for(item = object->objects; item != NULL; item = item->next) { + sub = item->data; + ldraw_part_replace_material(sub, material); + } +} + +static gboolean ldraw_part_parse_ref(G3DObject *object, gchar *buffer, + LDrawLibrary *lib) +{ + G3DObject *subobj; + G3DMaterial *material; + G3DFloat m[16], x, y, z; + guint32 colid; + gchar fname[256], *strp; + + g3d_matrix_identity(m); + memset(fname, 0, 256); + + if(sscanf(buffer, "%u " + G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " + G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " + G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " %255s", + &colid, &x, &y, &z, + m + 0 * 4 + 0, m + 1 * 4 + 0, m + 2 * 4 + 0, + m + 0 * 4 + 1, m + 1 * 4 + 1, m + 2 * 4 + 1, + m + 0 * 4 + 2, m + 1 * 4 + 2, m + 2 * 4 + 2, + fname) == 14) { + + strp = path_sep(fname); + if(strp != NULL) + strp[0] = G_DIR_SEPARATOR; + + subobj = ldraw_part_from_file(lib, fname); + if(!subobj) + subobj = ldraw_library_lookup(lib, fname); + if(subobj != NULL) { + g3d_object_transform(subobj, m); + g3d_matrix_identity(m); + g3d_matrix_translate(x, y, z, m); + g3d_object_transform(subobj, m); + if(colid != 16) { + material = ldraw_color_lookup(lib, colid); + ldraw_part_replace_material(subobj, material); + } + object->objects = g_slist_append(object->objects, subobj); + return TRUE; + } + } +#if DEBUG > 1 + g_warning("LDraw: failed to parse/process reference: %s", buffer); +#endif + return FALSE; +} + +static gboolean ldraw_part_parse_tri(G3DObject *object, gchar *buffer, + LDrawLibrary *lib) +{ + guint32 off, colid; + G3DFace *face; + + off = object->vertex_count; + object->vertex_count += 3; + object->vertex_data = g_realloc(object->vertex_data, + object->vertex_count * 3 * sizeof(G3DFloat)); + if(sscanf(buffer, "%u " + G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " + G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " + G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, + &colid, + object->vertex_data + (off + 0) * 3 + 0, + object->vertex_data + (off + 0) * 3 + 1, + object->vertex_data + (off + 0) * 3 + 2, + object->vertex_data + (off + 1) * 3 + 0, + object->vertex_data + (off + 1) * 3 + 1, + object->vertex_data + (off + 1) * 3 + 2, + object->vertex_data + (off + 2) * 3 + 0, + object->vertex_data + (off + 2) * 3 + 1, + object->vertex_data + (off + 2) * 3 + 2) == 10) { + + face = g_new0(G3DFace, 1); + face->material = ldraw_color_lookup(lib, colid); + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + face->vertex_indices[0] = off + 0; + face->vertex_indices[1] = off + 1; + face->vertex_indices[2] = off + 2; + object->faces = g_slist_append(object->faces, face); + return TRUE; + } + return FALSE; +} + +static gboolean ldraw_part_parse_quad(G3DObject *object, gchar *buffer, + LDrawLibrary *lib) +{ + guint32 off, colid; + G3DFace *face; + + off = object->vertex_count; + object->vertex_count += 4; + object->vertex_data = g_realloc(object->vertex_data, + object->vertex_count * 3 * sizeof(G3DFloat)); + if(sscanf(buffer, "%u " + G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " + G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " + G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, + &colid, + object->vertex_data + (off + 0) * 3 + 0, + object->vertex_data + (off + 0) * 3 + 1, + object->vertex_data + (off + 0) * 3 + 2, + object->vertex_data + (off + 1) * 3 + 0, + object->vertex_data + (off + 1) * 3 + 1, + object->vertex_data + (off + 1) * 3 + 2, + object->vertex_data + (off + 2) * 3 + 0, + object->vertex_data + (off + 2) * 3 + 1, + object->vertex_data + (off + 2) * 3 + 2, + object->vertex_data + (off + 3) * 3 + 0, + object->vertex_data + (off + 3) * 3 + 1, + object->vertex_data + (off + 3) * 3 + 2) == 13) { + + face = g_new0(G3DFace, 1); + face->material = ldraw_color_lookup(lib, colid); + face->vertex_count = 4; + face->vertex_indices = g_new0(guint32, 4); + face->vertex_indices[0] = off + 0; + face->vertex_indices[1] = off + 1; + face->vertex_indices[2] = off + 2; + face->vertex_indices[3] = off + 3; + object->faces = g_slist_append(object->faces, face); + return TRUE; + } + return FALSE; +} + +static inline G3DObject *ldraw_part_open_file(LDrawLibrary *lib, + const gchar *filename) +{ + LDrawPart *part; + + part = g_new0(LDrawPart, 1); + part->name = g_strdup(filename); + part->stream = g3d_stream_open_file(filename, "r"); + if(part->stream == NULL) { + g_free(part); + return NULL; + } + part->object = ldraw_part_get_object(part, lib); + g3d_stream_close(part->stream); + part->stream = NULL; + + ldraw_library_insert(lib, part->name, part); + + return part->object; +} + +G3DObject *ldraw_part_from_file(LDrawLibrary *lib, const gchar *filename) +{ + G3DObject *object; + gchar *path; + + if(g_file_test(filename, G_FILE_TEST_EXISTS)) + return ldraw_part_open_file(lib, filename); + path = g_ascii_strdown(filename, -1); + if(g_file_test(path, G_FILE_TEST_EXISTS)) { + object = ldraw_part_open_file(lib, path); + g_free(path); + return object; + } + g_free(path); + return NULL; +} + +G3DObject *ldraw_part_get_object(LDrawPart *part, LDrawLibrary *lib) +{ + G3DObject *object; + G3DMaterial *material; + gchar buffer[1024]; + + object = g_new0(G3DObject, 1); + material = g3d_material_new(); + material->name = g_strdup("default material"); + object->materials = g_slist_append(object->materials, material); + + while(!g3d_stream_eof(part->stream)) { + memset(buffer, 0, 1024); + g3d_stream_read_line(part->stream, buffer, 1023); + g_strstrip(buffer); + if(strlen(buffer) == 0) + continue; + switch(buffer[0] - 0x30) { + case 0: /* meta data */ + ldraw_part_parse_meta(object, buffer + 2); + break; + case 1: /* sub-file reference */ + ldraw_part_parse_ref(object, buffer + 2, lib); + break; + case 2: /* line */ + break; + case 3: /* triangle */ + ldraw_part_parse_tri(object, buffer + 2, lib); + break; + case 4: /* quadrilateral */ + ldraw_part_parse_quad(object, buffer + 2, lib); + break; + case 5: /* optional line */ + break; + default: + g_warning("LDraw: unknown type of line: %s", buffer); + break; + } + if(part->master) { + g3d_context_update_progress_bar(lib->context, + (G3DFloat)g3d_stream_tell(part->stream) / + (G3DFloat)g3d_stream_size(part->stream), TRUE); + g3d_context_update_interface(lib->context); + } + } + + return object; +} + +void ldraw_part_free(LDrawPart *part) +{ + if(part->stream) + g3d_stream_close(part->stream); + if(part->filename) + g_free(part->filename); + g_free(part->name); + g_free(part); +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_LDRAW_PART_H +#define _IMP_LDRAW_PART_H + +#include "imp_ldraw_types.h" + +G3DObject *ldraw_part_from_file(LDrawLibrary *lib, const gchar *filename); +G3DObject *ldraw_part_get_object(LDrawPart *part, LDrawLibrary *lib); +void ldraw_part_free(LDrawPart *part); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_LDRAW_TYPES_H +#define _IMP_LDRAW_TYPES_H + +#include + +#include +#include + +typedef struct { + gchar *name; + gchar *filename; + G3DObject *object; + G3DStream *stream; + gboolean failed; + gboolean master; +} LDrawPart; + +typedef struct { + G3DContext *context; + gchar *libdir; + GHashTable *partdb; + GSList *partlist; + GHashTable *colordb; + GSList *colorlist; +} LDrawLibrary; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_leocad/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_leocad +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_leocad_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_leocad_la_OBJECTS = imp_leocad.lo imp_leocad_library.lo +imp_leocad_la_OBJECTS = $(am_imp_leocad_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_leocad_la_SOURCES) +DIST_SOURCES = $(imp_leocad_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_leocad.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_leocad_la_SOURCES = imp_leocad.c imp_leocad_library.h imp_leocad_library.c +imp_leocad_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_leocad.la: $(imp_leocad_la_OBJECTS) $(imp_leocad_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_leocad_la_OBJECTS) $(imp_leocad_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_leocad.Plo +include ./$(DEPDIR)/imp_leocad_library.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_leocad.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_leocad_la_SOURCES = imp_leocad.c imp_leocad_library.h imp_leocad_library.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_leocad +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_leocad_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_leocad_la_OBJECTS = imp_leocad.lo imp_leocad_library.lo +imp_leocad_la_OBJECTS = $(am_imp_leocad_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_leocad_la_SOURCES) +DIST_SOURCES = $(imp_leocad_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_leocad.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_leocad_la_SOURCES = imp_leocad.c imp_leocad_library.h imp_leocad_library.c +imp_leocad_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_leocad.la: $(imp_leocad_la_OBJECTS) $(imp_leocad_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_leocad_la_OBJECTS) $(imp_leocad_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_leocad.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_leocad_library.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include + +#include + +#include +#include +#include +#include +#include +#include + +#include "imp_leocad_library.h" + +static int leocad_load_lcd(G3DStream *stream, G3DModel *model, + LeoCadLibrary *library, G3DContext *context); + +EAPI +gpointer plugin_init(G3DContext *context) +{ + LeoCadLibrary *library; + const gchar *libdir; + + libdir = g_getenv("LEOCAD_LIB"); + if(libdir == NULL) + libdir = "/usr/local/share/leocad"; + + library = leocad_library_load(libdir); + + if(library == NULL) + { +#if DEBUG > 1 + g_warning("LeoCAD: failed to load library"); +#endif + return NULL; + } + + return library; +} + +EAPI +void plugin_cleanup(gpointer user_data) +{ + LeoCadLibrary *library; + +#if DEBUG > 1 + g_debug("LeoCAD: cleaning up library\n"); +#endif + + library = (LeoCadLibrary *)user_data; + + if(library) + leocad_library_free(library); +} + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + LeoCadLibrary *library; + + library = (LeoCadLibrary *)user_data; + + if(library == NULL) + { + g_warning("LeoCAD: library not loaded"); + return FALSE; + } + + setlocale(LC_NUMERIC, "C"); + + return leocad_load_lcd(stream, model, library, context); +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("LeoCAD models."); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g_strsplit("lcd", ":", 0); +} + +/* + * LeoCAD specific stuff + */ + +static gboolean leocad_change_key(guint16 ktime, G3DFloat *param, guint8 ktype, + G3DFloat *matrix, G3DFloat *mloc, gboolean *valid_matrix) +{ + /* get first frame */ + if(ktime == 1) + { + switch(ktype) + { + case 0x00: /* translation */ + g3d_matrix_identity(mloc); + g3d_matrix_translate(param[0], param[1], param[2], mloc); + g3d_matrix_multiply(matrix, mloc, matrix); + *valid_matrix = TRUE; + break; + + case 0x01: /* rotation */ + g3d_matrix_rotate((G3DFloat)param[3] * G_PI / 180.0, + param[0], param[1], param[2], matrix); + g3d_matrix_multiply(mloc, matrix, matrix); + *valid_matrix = TRUE; + break; + + default: + break; + } + } +#if DEBUG > 0 + g_debug("LeoCAD: key 0x%02x (%d): %+2.2f %+2.2f %+2.2f %+2.2f", + ktype, ktime, param[0], param[1], param[2], param[3]); +#endif + return TRUE; +} + +static gboolean leocad_load_lcd_piece(G3DStream *stream, G3DModel *model, + LeoCadLibrary *library, G3DFloat lcdversion) +{ + guint32 i, j, k, nkeys, nobjs; + guint16 ktime; + guint8 pver, over, ktype, color = 0, len8; + gchar name[9]; + G3DFloat param[4], matrix[16], mloc[16]; + G3DFloat offx = 0.0, offy = 0.0, offz = 0.0; + G3DFloat rotx = 0.0, roty = 0.0, rotz = 0.0; + G3DObject *object; + G3DMaterial *mat_change; + G3DFace *face; + GSList *fitem; + gboolean valid_matrix = FALSE; + + g3d_matrix_identity(mloc); + g3d_matrix_identity(matrix); + + mat_change = leocad_library_get_nth_material(library, 0x10); + + if(lcdversion > 0.4) + { + pver = g3d_stream_read_int8(stream); + + if(pver >= 9) + { + /* object stuff */ + over = g3d_stream_read_int8(stream); + nobjs = g3d_stream_read_int32_le(stream); + for(i = 0; i < nobjs; i ++) + { + /* time */ + ktime = g3d_stream_read_int16_le(stream); + /* param */ + param[0] = g3d_stream_read_float_le(stream); + param[1] = g3d_stream_read_float_le(stream); + param[2] = g3d_stream_read_float_le(stream); + param[3] = g3d_stream_read_float_le(stream); + /* type */ + ktype = g3d_stream_read_int8(stream); + + leocad_change_key(ktime, param, ktype, matrix, mloc, + &valid_matrix); + } + + if(over == 1) + { + nobjs = g3d_stream_read_int32_le(stream); + for(i = 0; i < nobjs; i ++) + { + ktime = g3d_stream_read_int16_le(stream); + param[0] = g3d_stream_read_float_le(stream); + param[1] = g3d_stream_read_float_le(stream); + param[2] = g3d_stream_read_float_le(stream); + param[3] = g3d_stream_read_float_le(stream); + ktype = g3d_stream_read_int8(stream); + } + } + } + else /* pver < 9 */ + { + if(pver > 5) + { + nkeys = g3d_stream_read_int32_le(stream); + for(i = 0; i < nkeys; i ++) + { + /* param */ + param[0] = g3d_stream_read_float_le(stream); + param[1] = g3d_stream_read_float_le(stream); + param[2] = g3d_stream_read_float_le(stream); + param[3] = g3d_stream_read_float_le(stream); + + /* time */ + ktime = g3d_stream_read_int16_le(stream); + + /* type */ + ktype = g3d_stream_read_int8(stream); + + leocad_change_key(ktime, param, ktype, matrix, mloc, + &valid_matrix); + + } /* keys */ + + nkeys = g3d_stream_read_int32_le(stream); + for(i = 0; i < nkeys; i ++) + { + /* param */ + param[0] = g3d_stream_read_float_le(stream); + param[1] = g3d_stream_read_float_le(stream); + param[2] = g3d_stream_read_float_le(stream); + param[3] = g3d_stream_read_float_le(stream); + + /* time */ + ktime = g3d_stream_read_int16_le(stream); + + /* type */ + ktype = g3d_stream_read_int8(stream); + } + } /* pver > 5 */ + else /* pver <= 5 */ + { + if(pver > 2) + { + nkeys = g3d_stream_read_int8(stream); + for(i = 0; i < nkeys; i ++) + { + if(pver > 3) + { +#if DEBUG > 2 + g_debug("LeoCAD: matrix\n"); +#endif + /* matrix */ + for(j = 0; j < 4; j ++) + for(k = 0; k < 4; k ++) + matrix[j * 4 + k] = + g3d_stream_read_float_le(stream); + + valid_matrix = TRUE; + } + else + { + /* move: 3 x float */ + offx = g3d_stream_read_float_le(stream); + offy = g3d_stream_read_float_le(stream); + offz = g3d_stream_read_float_le(stream); + + /* rotate: 3 x float */ + rotx = g3d_stream_read_float_le(stream); + roty = g3d_stream_read_float_le(stream); + rotz = g3d_stream_read_float_le(stream); + } + + /* time */ + ktime = g3d_stream_read_int8(stream); + + /* bl? */ + g3d_stream_read_int32_le(stream); + } /* .. nkeys */ + } /* pver > 2 */ + else /* pver <= 2 */ + { + /* move: 3 x float */ + offx = g3d_stream_read_float_le(stream); + offy = g3d_stream_read_float_le(stream); + offz = g3d_stream_read_float_le(stream); + + /* rotate: 3 x float */ + rotx = g3d_stream_read_float_le(stream); + roty = g3d_stream_read_float_le(stream); + rotz = g3d_stream_read_float_le(stream); + } + } /* pver <= 5 */ + } /* pver < 9 */ + + /* common stuff */ + + /* name of piece */ + g3d_stream_read(stream, name, 9); + + /* color */ + color = g3d_stream_read_int8(stream); + + if(pver < 5) + color = leocad_library_convert_color(color); + +#if DEBUG > 0 + g_debug("LeoCAD: [%d]: '%-8s', color 0x%02x", pver, name, color); +#endif + + /* step show */ + g3d_stream_read_int8(stream); + + /* step hide */ + if(pver > 1) + g3d_stream_read_int8(stream); + + if(pver > 5) + { + /* frame show */ + g3d_stream_read_int16_le(stream); + /* frame hide */ + g3d_stream_read_int16_le(stream); + + if(pver > 7) { + /* state */ + g3d_stream_read_int8(stream); + + len8 = g3d_stream_read_int8(stream); + g3d_stream_skip(stream, len8); + } else { /* pver <= 7 */ + /* hide */ + g3d_stream_read_int32_le(stream); + g3d_stream_skip(stream, 81); + } /* pver <= 7 */ + + if(pver > 6) { + /* group pointer ?! */ + g3d_stream_read_int32_le(stream); + } + } /* pver > 5 */ + else /* pver <= 5 */ + { + /* group pointer ?! */ + g3d_stream_read_int8(stream); + + /* hide */ + g3d_stream_read_int8(stream); + } + + } /* lcdversion > 0.4 */ + + object = leocad_library_get_piece(library, name); + if(object == NULL) + { + g_warning("LeoCAD: failed to load piece '%s'", name); + return FALSE; + } + + /* matrix */ + if(!valid_matrix) + { + /* translation */ + g3d_matrix_identity(mloc); + g3d_matrix_translate(offx, offy, offz, mloc); + /* rotation */ + rotx = (G3DFloat)(rotx * G_PI) / 180.0; + roty = (G3DFloat)(roty * G_PI) / 180.0; + rotz = (G3DFloat)(rotz * G_PI) / 180.0; + g3d_matrix_identity(matrix); + g3d_matrix_rotate_xyz(rotx, roty, rotz, matrix); + + /* combine */ + g3d_matrix_multiply(mloc, matrix, matrix); + } + + /*g3d_matrix_dump(matrix);*/ + + /* transform vertices */ + for(i = 0; i < object->vertex_count; i ++) + g3d_vector_transform( + &(object->vertex_data[i * 3 + 0]), + &(object->vertex_data[i * 3 + 1]), + &(object->vertex_data[i * 3 + 2]), + matrix); + + /* change color */ + fitem = object->faces; + while(fitem) + { + face = (G3DFace *)fitem->data; + if(face->material == mat_change) + { + face->material = leocad_library_get_nth_material(library, color); + } + + if(face->material == NULL) + { + face->material = leocad_library_get_nth_material(library, 0); + } + + fitem = fitem->next; + } + + /* add to model object list */ + model->objects = g_slist_append(model->objects, object); + + return TRUE; +} + +static gboolean leocad_load_lcd(G3DStream *stream, G3DModel *model, + LeoCadLibrary *library, G3DContext *context) +{ + gchar magic[32]; + float version; + guint32 i, count; + G3DFloat r, g, b; + G3DMatrix rmatrix[16]; + + g3d_stream_read(stream, magic, 32); + if(strncmp(magic, "LeoCAD", 6) != 0) { + g_warning("LeoCAD: '%s' is not a valid LeoCAD project file", + stream->uri); + return FALSE; + } + + sscanf(&magic[7], "%f", &version); + + if(version > 0.4) { +#if DEBUG > 0 + g_debug("LeoCAD: file version %.1f, getting next float", version); +#endif + version = g3d_stream_read_float_le(stream); + } + +#if DEBUG > 0 + g_debug("LeoCAD: file version %.1f", version); +#endif + + r = g3d_stream_read_int8(stream) / 255.0; + g = g3d_stream_read_int8(stream) / 255.0; + b = g3d_stream_read_int8(stream) / 255.0; + /* background color */ + g3d_context_set_bgcolor(context, r, g, b, 1.0); + g3d_stream_read_int8(stream); + + /* view */ + if(version < 0.6) { + /* eye: 3 x double */ + g3d_stream_skip(stream, 24); + + /* target: 3 x double */ + g3d_stream_skip(stream, 24); + } + + /* angle snap */ + g3d_stream_read_int32_le(stream); + /* snap */ + g3d_stream_read_int32_le(stream); + /* line width */ + g3d_stream_read_float_le(stream); + /* detail */ + g3d_stream_read_int32_le(stream); + /* cur group */ + g3d_stream_read_int32_le(stream); + /* cur color */ + g3d_stream_read_int32_le(stream); + /* action */ + g3d_stream_read_int32_le(stream); + /* cur step */ + g3d_stream_read_int32_le(stream); + + if(version > 0.8) { + /* scene */ + g3d_stream_read_int32_le(stream); + } + + /* piece count */ + count = g3d_stream_read_int32_le(stream); + for(i = 0; i < count; i ++) { + /* load piece */ + leocad_load_lcd_piece(stream, model, library, version); + } + + g3d_matrix_identity(rmatrix); + g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix); + g3d_model_transform(model, rmatrix); + + return TRUE; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +#include + +#include + +#include +#include +#include +#include +#include +#include + +#include "imp_leocad_library.h" + +#define LEOCAD_FLAG_PIECE_COUNT 0x01 +#define LEOCAD_FLAG_PIECE_LONGDATA 0x02 +#define LEOCAD_FLAG_PIECE_CCW 0x04 +#define LEOCAD_FLAG_PIECE_SMALL 0x10 +#define LEOCAD_FLAG_PIECE_MEDIUM 0x20 +#define LEOCAD_FLAG_LONGDATA_RUNTIME 0x40 +#define LEOCAD_FLAG_PIECE_RENAMED 0x80 + +#define LEOCAD_TYPE_MESH 0x01 +#define LEOCAD_TYPE_STUD 0x02 +#define LEOCAD_TYPE_STUD2 0x03 +#define LEOCAD_TYPE_STUD3 0x04 +#define LEOCAD_TYPE_STUD4 0x05 + +static gboolean leocad_library_read_pieces_idx(LeoCadLibrary *library, + G3DStream *idx); +static gboolean leocad_create_materials(LeoCadLibrary *library); + +struct LeoCadConnection { + guint8 type; + G3DFloat center[3]; + G3DFloat normal[3]; +}; + +LeoCadLibrary *leocad_library_load(const gchar *libdir) +{ + LeoCadLibrary *library; + gchar filename[1025]; + G3DStream *idx, *bin; + + library = g_new0(LeoCadLibrary, 1); + + g_snprintf(filename, 1024, "%s/%s", libdir, "pieces.idx"); + idx = g3d_stream_open_file(filename, "rb"); + if(idx == NULL) { +#if DEBUG > 0 + g_warning("LeoCAD: failed to read '%s'", filename); +#endif + g_free(library); + return NULL; + } + + g_snprintf(filename, 1024, "%s/%s", libdir, "pieces.bin"); + bin = g3d_stream_open_file(filename, "rb"); + if(bin == NULL) { +#if DEBUG > 0 + g_debug("LeoCAD: failed to read '%s'", filename); +#endif + g3d_stream_close(idx); + g_free(library); + return NULL; + } + + library->pieces = g_hash_table_new(g_str_hash, g_str_equal); + library->pieces_bin = bin; + + leocad_library_read_pieces_idx(library, idx); + g3d_stream_close(idx); + + leocad_create_materials(library); + + return library; +} + +static gboolean leocad_free_piece_cb(gpointer key, gpointer value, + gpointer user_data) +{ + LeoCadPiece *piece; + + piece = (LeoCadPiece *)value; + +#if DEBUG > 3 + g_debug("D: freeing piece %s", piece->name); +#endif + + if(piece->name) g_free(piece->name); + if(piece->description) g_free(piece->description); + if(piece->moved_to) g_free(piece->moved_to); + + if(!(piece->flags & LEOCAD_FLAG_PIECE_RENAMED)) + if(piece->object) g3d_object_free(piece->object); + + g_free(piece); + + return TRUE; +} + +void leocad_library_free(LeoCadLibrary *library) +{ + GSList *mlist; + G3DMaterial *material; + + /* remove materials */ + mlist = library->materials; + while(mlist) + { + material = (G3DMaterial *)mlist->data; + mlist = g_slist_remove(mlist, material); + g3d_material_free(material); + } + + /* remove pieces */ + g_hash_table_foreach_remove(library->pieces, leocad_free_piece_cb, NULL); + g_hash_table_destroy(library->pieces); + + /* free library */ + g_free(library); +} + +static G3DFloat leocad_read_scaled16(G3DStream *stream, G3DFloat scale) +{ + gint16 x; + + x = g3d_stream_read_int16_le(stream); + + return (G3DFloat)(x / scale); +} + +static gboolean leocad_create_materials(LeoCadLibrary *library) +{ + const guint8 colors[] = { + 166, 25, 25, 255, /* 0 - Red */ + 255, 127, 51, 255, /* 1 - Orange */ + 25, 102, 25, 255, /* 2 - Green */ + 76, 153, 76, 255, /* 3 - Light Green */ + 0, 51, 178, 255, /* 4 - Blue */ + 51, 102, 229, 255, /* 5 - Light Blue */ + 204, 204, 0, 255, /* 6 - Yellow */ + 242, 242, 242, 255, /* 7 - White */ + 76, 76, 76, 255, /* 8 - Dark Gray */ + 25, 25, 25, 255, /* 9 - Black */ + 102, 51, 51, 255, /* 10 - Brown */ + 178, 76, 153, 255, /* 11 - Pink */ + 153, 51, 153, 255, /* 12 - Purple */ + 229, 178, 51, 255, /* 13 - Gold */ + 153, 25, 25, 153, /* 14 - Clear Red */ + 255, 153, 76, 153, /* 15 - Clear Orange */ + 25, 102, 25, 153, /* 16 - Clear Green */ + 153, 178, 76, 153, /* 17 - Clear Light Green */ + 0, 0, 127, 153, /* 18 - Clear Blue */ + 51, 102, 229, 153, /* 19 - Clear Light Blue */ + 229, 229, 0, 153, /* 20 - Clear Yellow */ + 229, 229, 229, 153, /* 21 - Clear White */ + 127, 127, 127, 255, /* 22 - Light Gray */ + 204, 204, 178, 255, /* 23 - Tan */ + 153, 102, 102, 255, /* 24 - Light Brown */ + 229, 178, 229, 255, /* 25 - Light Pink */ + 25, 178, 204, 255, /* 26 - Turquoise */ + 204, 204, 204, 255, /* 27 - Silver */ + 51, 51, 51, 255, /* 28 - Edges */ + 229, 76, 102, 255, /* 29 - Selected */ + 102, 76, 229, 255}; /* 30 - Focused */ + + G3DMaterial *material; + guint32 i; + + for(i = 0; i < 31; i ++) + { + material = g3d_material_new(); + material->r = (G3DFloat)colors[i * 4 + 0] / 255.0; + material->g = (G3DFloat)colors[i * 4 + 1] / 255.0; + material->b = (G3DFloat)colors[i * 4 + 2] / 255.0; + material->a = (G3DFloat)colors[i * 4 + 3] / 255.0; + + library->materials = g_slist_append(library->materials, material); + } + + return TRUE; +} + +guint8 leocad_library_convert_color(guint8 n) +{ + static guint8 converted_colors[20] = + { 0,2,4,9,7,6,22,8,10,11,14,16,18,9,21,20,22,8,10,11 }; + + if(n >= 20) + return 0; + + return converted_colors[n]; +} + +G3DMaterial *leocad_library_get_nth_material(LeoCadLibrary *library, guint8 n) +{ + return g_slist_nth_data(library->materials, n); +} + +G3DObject *leocad_library_get_piece(LeoCadLibrary *library, const gchar *name) +{ + LeoCadPiece *piece; + G3DObject *stud; + G3DFace *face; + guint32 i, j, k, nconn, ngrp, ntex, ngrpconn, ncol, nx, color = 0; + guint16 grp_type; + G3DFloat scale = 100.0; + G3DFloat matrix[16]; + G3DStream *bin; + struct LeoCadConnection *connections; + + piece = g_hash_table_lookup(library->pieces, name); + + if(piece == NULL) + { + g_warning("LeoCAD: failed to load piece '%s'", name); + return NULL; + } + + bin = library->pieces_bin; + + if(piece->object == NULL) + { + piece->object = g_new0(G3DObject, 1); + piece->object->name = g_strdup(piece->description); + + g3d_stream_seek(bin, piece->offset_bin, G_SEEK_SET); + piece->object->vertex_count = g3d_stream_read_int32_le(bin); + piece->object->vertex_data = g_new0(G3DFloat, + piece->object->vertex_count * 3); + + if(piece->flags & LEOCAD_FLAG_PIECE_SMALL) + scale = 10000.0; + else if(piece->flags & LEOCAD_FLAG_PIECE_MEDIUM) + scale = 1000.0; + + for(i = 0; i < piece->object->vertex_count; i ++) + { + piece->object->vertex_data[i * 3 + 0] = + leocad_read_scaled16(bin, scale); + piece->object->vertex_data[i * 3 + 1] = + leocad_read_scaled16(bin, scale); + piece->object->vertex_data[i * 3 + 2] = + leocad_read_scaled16(bin, scale); + } +#if DEBUG > 1 + g_debug("LeoCAD: piece '%s': flags 0x%02X", name, piece->flags); +#endif + +#if DEBUG > 1 + g_debug("LeoCAD: piece '%s': %d vertices", + name, piece->object->vertex_count); +#endif + + /* connections */ + nconn = g3d_stream_read_int16_le(bin); +#if DEBUG > 1 + g_debug("LeoCAD: piece '%s': %d connections", name, nconn); +#endif + connections = g_new0(struct LeoCadConnection, nconn); + for(i = 0; i < nconn; i ++) + { + connections[i].type = g3d_stream_read_int8(bin); + + /* center */ + connections[i].center[0] = leocad_read_scaled16(bin, scale); + connections[i].center[1] = leocad_read_scaled16(bin, scale); + connections[i].center[2] = leocad_read_scaled16(bin, scale); + + /* normal */ + connections[i].normal[0] = g3d_stream_read_int16_le(bin) / (1 << 14); + connections[i].normal[1] = g3d_stream_read_int16_le(bin) / (1 << 14); + connections[i].normal[2] = g3d_stream_read_int16_le(bin) / (1 << 14); + } + + /* textures */ + ntex = g3d_stream_read_int8(bin); +#if DEBUG > 0 + if(ntex > 0) + g_debug("LeoCAD: piece '%s': %d textures", name, ntex); +#endif + for(i = 0; i < ntex; i ++) + { + /* TODO: */ + } + + /* groups */ + ngrp = g3d_stream_read_int16_le(bin); +#if DEBUG > 1 + g_debug("LeoCAD: piece '%s': %d groups @ 0x%08lx", + name, ngrp, ftell(bin)); +#endif + for(i = 0; i < ngrp; i ++) + { + /* group connections */ + ngrpconn = g3d_stream_read_int8(bin); + for(j = 0; j < ngrpconn; j ++) + { + g3d_stream_read_int16_le(bin); + } + +#if 0 + while(1) + { +#endif + grp_type = g3d_stream_read_int8(bin); + if(grp_type == 0) + { + break; + } +#if DEBUG > 1 + g_debug("LeoCAD: piece '%s': grp %d: type 0x%02x @ 0x%08lx", + name, i, grp_type, ftell(bin)); +#endif + + switch(grp_type) + { + case LEOCAD_TYPE_MESH: + ncol = g3d_stream_read_int16_le(bin); +#if DEBUG > 1 + g_debug("LeoCAD: piece '%s': grp %d: %d colors " + "(@ 0x%08lx)", name, i, ncol, ftell(bin)); +#endif + for(j = 0; j < ncol; j ++) + { + /* color code */ + color = g3d_stream_read_int16_le(bin); +#if DEBUG > 1 + g_debug("LeoCAD: piece '%s': grp %d: color 0x%04x", + name, i, color); +#endif + /* quads? */ + nx = g3d_stream_read_int16_le(bin); + for(k = 0; k < nx / 4; k ++) + { + face = g_new0(G3DFace, 1); + face->material = + g_slist_nth_data( + library->materials, color); + face->vertex_count = 4; + face->vertex_indices = g_new0(guint32, 4); + + face->vertex_indices[0] = + g3d_stream_read_int16_le(bin); + face->vertex_indices[1] = + g3d_stream_read_int16_le(bin); + face->vertex_indices[2] = + g3d_stream_read_int16_le(bin); + face->vertex_indices[3] = + g3d_stream_read_int16_le(bin); + + piece->object->faces = g_slist_prepend( + piece->object->faces, face); + } +#if DEBUG > 1 + g_debug("LeoCAD: piece '%s': grp %d: " + "quads: %d bytes", name, i, nx * 2); +#endif + nx = g3d_stream_read_int16_le(bin); + for(k = 0; k < nx / 3; k ++) + { + face = g_new0(G3DFace, 1); + face->material = + g_slist_nth_data( + library->materials, color); + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + + face->vertex_indices[0] = + g3d_stream_read_int16_le(bin); + face->vertex_indices[1] = + g3d_stream_read_int16_le(bin); + face->vertex_indices[2] = + g3d_stream_read_int16_le(bin); + + piece->object->faces = g_slist_prepend( + piece->object->faces, face); + } + +#if DEBUG > 1 + g_debug("LeoCAD: piece '%s': grp %d: " + "triangles: %d bytes", + name, i, nx * 2); +#endif + nx = g3d_stream_read_int16_le(bin); +#if DEBUG > 1 + g_debug("LeoCAD: piece '%s': grp %d: " + "skipping %d bytes @ 0x%08lx", + name, i, nx * 2, ftell(bin)); +#endif + g3d_stream_skip(bin, nx * 2); + } + break; + + case LEOCAD_TYPE_STUD: + case LEOCAD_TYPE_STUD2: + case LEOCAD_TYPE_STUD3: + case LEOCAD_TYPE_STUD4: + stud = NULL; + color = g3d_stream_read_int8(bin); +#if DEBUG > 0 + g_debug("LeoCAD: piece '%s': stud 0x%02x", + name, grp_type); +#endif + if(grp_type == LEOCAD_TYPE_STUD4) + stud = g3d_primitive_tube( + 0.24, /* inner radius */ + 0.32, /* outer radius */ + 0.16, /* height */ + 16, /* sides */ + TRUE, FALSE, /* top, bottom */ + leocad_library_get_nth_material( + library, color)); + + g3d_matrix_identity(matrix); + for(j = 0; j < 12; j ++) +#if 1 + matrix[(j / 3) * 4 + (j % 3)] = + g3d_stream_read_float_le(bin); +#else + matrix[j] = g3d_stream_read_float_le(bin); +#endif + /* g3d_matrix_dump(matrix); */ + + if(stud && piece->object) + { + g3d_object_transform(stud, matrix); + g3d_object_merge(piece->object, stud); + stud = NULL; + } + + break; + + default: +#if DEBUG > 1 + g_debug( + "LeoCAD: piece '%s': unhandled group type 0x%02x " + "@ 0x%08lx", + name, grp_type, ftell(bin)); +#endif + break; + } /* grp_type */ +#if 0 + } /* grp_type != 0 */ +#endif + g3d_stream_read_int8(bin); + } /* ngrp */ + + /* generate studs */ + for(i = 0; i < nconn; i ++) + { +#if DEBUG > 4 + g_debug("LeoCAD: connection %d: type 0x%02x", + i, connections[i].type); +#endif + + switch(connections[i].type) + { + case 0: + stud = g3d_primitive_cylinder( + 0.24, /* radius */ + 0.16, /* height */ + 16, /* sides */ + TRUE, FALSE, /* top, bottom */ + leocad_library_get_nth_material(library, color)); + break; + + case 2: + stud = g3d_primitive_tube( + 0.24, /* inner radius */ + 0.32, /* outer radius */ + 0.16, /* height */ + 16, /* sides */ + FALSE, TRUE, /* top, bottom */ + leocad_library_get_nth_material(library, color)); + break; + + default: + stud = NULL; + break; + } + + if(stud) + { +#if DEBUG > 5 + g_debug("LeoCAD: stud"); +#endif + /* transform stud */ + for(j = 0; j < stud->vertex_count; j ++) + { +#if 0 + g3d_vector_transform( + &(stud->vertices[j * 3 + 0]), + &(stud->vertices[j * 3 + 1]), + &(stud->vertices[j * 3 + 2]), + matrix); +#endif + + stud->vertex_data[j * 3 + 0] += connections[i].center[0]; + stud->vertex_data[j * 3 + 1] += connections[i].center[1]; + stud->vertex_data[j * 3 + 2] += connections[i].center[2]; + } + + /* merge stud */ + g3d_object_merge(piece->object, stud); + } /* stud */ + } /* nconn */ + + if(connections) + g_free(connections); + } + + return g3d_object_duplicate(piece->object); +} + +static gboolean leocad_library_read_piece(LeoCadLibrary *library, + G3DStream *idx) +{ + gchar buffer[128]; + guint32 i; + LeoCadPiece *piece; + + piece = g_new0(LeoCadPiece, 1); + + g3d_stream_read(idx, buffer, 8); + buffer[8] = '\0'; + piece->name = g_strdup(buffer); + + g3d_stream_read(idx, buffer, 64); + buffer[64] = '\0'; + piece->description = g_strdup(buffer); + + for(i = 0; i < 6; i ++) + piece->bounding_box[i] = g3d_stream_read_int16_le(idx); + + piece->flags = g3d_stream_read_int8(idx); + piece->default_group = g3d_stream_read_int32_le(idx); + piece->offset_bin = g3d_stream_read_int32_le(idx); + piece->info_size = g3d_stream_read_int32_le(idx); + +#if DEBUG > 1 + g_debug("LeoCAD: %-8s: @ 0x%08x, %s", + piece->name, piece->offset_bin, piece->description); +#endif + + g_hash_table_insert(library->pieces, piece->name, piece); + + return TRUE; +} + +static gboolean leocad_library_read_pieces_idx(LeoCadLibrary *library, + G3DStream *idx) +{ + gchar magic[32], nameold[9], namenew[9]; + guint8 version, lastupdate; + guint32 nmoved, nbinsize, npieces, i; + LeoCadPiece *piece, *newpiece; + + g3d_stream_read(idx, magic, 32); + if(strncmp(magic, "LeoCAD piece library index file", 31) != 0) + { + g_debug("LeoCAD: pieces.idx: wrong magic"); + return FALSE; + } + + version = g3d_stream_read_int8(idx); + lastupdate = g3d_stream_read_int8(idx); + + g3d_stream_seek(idx, -8, G_SEEK_END); + nmoved = g3d_stream_read_int16_le(idx); + nbinsize = g3d_stream_read_int32_le(idx); + npieces = g3d_stream_read_int16_le(idx); + + g3d_stream_seek(idx, 34, G_SEEK_SET); + +#if DEBUG > 0 + g_debug("LeoCAD: pieces.idx: version %d, last update %d", + version, lastupdate); + g_debug("LeoCAD: pieces.idx: %d pieces, %d moves, pieces.bin %d bytes", + npieces, nmoved, nbinsize); +#endif + + for(i = 0; i < npieces; i ++) + leocad_library_read_piece(library, idx); + + for(i = 0; i < nmoved; i ++) { + memset(nameold, 0, 9); + memset(namenew, 0, 9); + + g3d_stream_read(idx, nameold, 8); + g3d_stream_read(idx, namenew, 8); + + piece = g_hash_table_lookup(library->pieces, namenew); + if(piece) { + newpiece = g_new0(LeoCadPiece, 1); + memcpy(newpiece, piece, sizeof(LeoCadPiece)); + newpiece->name = g_strdup(nameold); + newpiece->description = g_strdup(piece->description); + newpiece->moved_to = g_strdup(namenew); + newpiece->object = piece->object; + newpiece->flags |= LEOCAD_FLAG_PIECE_RENAMED; + + g_hash_table_insert(library->pieces, piece->name, newpiece); + } + } + + return TRUE; +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef IMP_LEOCAD_LIBRARY_H +#define IMP_LEOCAD_LIBRARY_H + +#include + +#include +#include + +typedef struct +{ + gchar *name; + gchar *description; + gchar *moved_to; + + guint16 bounding_box[6]; + guint8 flags; + guint32 default_group; + guint32 offset_bin; + guint32 info_size; + + G3DObject *object; +} +LeoCadPiece; + +typedef struct +{ + G3DStream *pieces_bin; + GHashTable *pieces; + GSList *materials; +} +LeoCadLibrary; + +LeoCadLibrary *leocad_library_load(const gchar *libdir); +void leocad_library_free(LeoCadLibrary *library); +guint8 leocad_library_convert_color(guint8 n); +G3DObject *leocad_library_get_piece(LeoCadLibrary *library, const gchar *name); +G3DMaterial *leocad_library_get_nth_material(LeoCadLibrary *library, guint8 n); + +#endif /* IMP_LEOCAD_LIBRARY_H */ + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_lwo/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_lwo +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_lwo_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_lwo_la_OBJECTS = imp_lwo.lo imp_lwo_callbacks.lo +imp_lwo_la_OBJECTS = $(am_imp_lwo_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_lwo_la_SOURCES) +DIST_SOURCES = $(imp_lwo_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_lwo.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_lwo_la_SOURCES = imp_lwo.c imp_lwo.h imp_lwo_chunks.h \ + imp_lwo_callbacks.c imp_lwo_callbacks.h + +imp_lwo_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_lwo.la: $(imp_lwo_la_OBJECTS) $(imp_lwo_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_lwo_la_OBJECTS) $(imp_lwo_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_lwo.Plo +include ./$(DEPDIR)/imp_lwo_callbacks.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_lwo.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_lwo_la_SOURCES = imp_lwo.c imp_lwo.h imp_lwo_chunks.h \ + imp_lwo_callbacks.c imp_lwo_callbacks.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_lwo +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_lwo_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_lwo_la_OBJECTS = imp_lwo.lo imp_lwo_callbacks.lo +imp_lwo_la_OBJECTS = $(am_imp_lwo_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_lwo_la_SOURCES) +DIST_SOURCES = $(imp_lwo_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_lwo.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_lwo_la_SOURCES = imp_lwo.c imp_lwo.h imp_lwo_chunks.h \ + imp_lwo_callbacks.c imp_lwo_callbacks.h + +imp_lwo_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_lwo.la: $(imp_lwo_la_OBJECTS) $(imp_lwo_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_lwo_la_OBJECTS) $(imp_lwo_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_lwo.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_lwo_callbacks.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +/* + * imp_lwo.c - LightWave import plugin + * + * (C) 2005,2006 Markus Dahms + * + * based on gtkglarea example viewlw: + * Copyright (C) 1998 Janne Löf + */ + +#include + +#include +#include +#include +#include +#include + +#define LW_MAX_POINTS 200 +#define LW_MAX_NAME_LEN 500 +#define LW_F_LWO2 1 + +#include "imp_lwo.h" +#include "imp_lwo_chunks.h" + +/*****************************************************************************/ +/* plugin interface */ +/*****************************************************************************/ + +static void lwo_fix_texfaces(G3DModel *model); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + LwoObject *obj; + G3DMaterial *material; + guint32 id; + gsize len; + G3DIffGlobal *global; + G3DIffLocal *local; + + if(!g3d_iff_check(stream, &id, &len)) + return FALSE; + + if((id != G3D_IFF_MKID('L','W','O','B')) && + (id != G3D_IFF_MKID('L','W','O','2'))) { + g_warning("'%s' is not a LightWave object", stream->uri); + return FALSE; + } + + obj = g_new0(LwoObject, 1); + + global = g_new0(G3DIffGlobal, 1); + global->stream = stream; + global->context = context; + global->model = model; + if(id == G3D_IFF_MKID('L','W','O','2')) + global->flags |= LWO_FLAG_LWO2; + global->user_data = obj; + + local = g_new0(G3DIffLocal, 1); + local->id = id; + local->nb = len; + + material = g3d_material_new(); + material->name = g_strdup("fallback material"); + model->materials = g_slist_append(model->materials, material); + + g3d_iff_read_ctnr(global, local, lwo_chunks, + G3D_IFF_PAD2 | G3D_IFF_SUBCHUNK_LEN16); + + lwo_fix_texfaces(model); + + /* cleanup */ + if(obj->ntags) + g_strfreev(obj->tags); + + if(obj->nclips) + { + g_free(obj->clips); + g_strfreev(obj->clipfiles); + } + + if(obj->tex_vertices) + g_free(obj->tex_vertices); + + g_free(obj); + + g_free(local); + g_free(global); + + g3d_context_update_progress_bar(context, 0.0, FALSE); + + return TRUE; +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("LightWave models.\n" + "Author: Markus Dahms."); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g_strsplit("lwo:lwb:lw", ":", 0); +} + +/*****************************************************************************/ +/* private */ +/*****************************************************************************/ + +G3DObject *lwo_create_object(G3DStream *stream, G3DModel *model, guint32 flags) +{ + G3DObject *object = g_new0(G3DObject, 1); + object->name = g_strdup_printf("LWO%c object @ 0x%08x", + (flags & LW_F_LWO2) ? '2' : 'B', (guint32)g3d_stream_tell(stream) - 8); + model->objects = g_slist_append(model->objects, object); + +#if 0 + /* LWO files should have correct faces */ + model->glflags &= ~G3D_FLAG_GL_ALLTWOSIDE; +#endif + + return object; +} + +/*****************************************************************************/ +/* LWO specific */ +/*****************************************************************************/ + +gint lwo_read_string(G3DStream *stream, char *s) +{ + gint c; + gint cnt = 0; + do { + c = g3d_stream_read_int8(stream); + if (cnt < LW_MAX_NAME_LEN) + s[cnt] = c; + else + s[LW_MAX_NAME_LEN-1] = 0; + cnt++; + } while (c != 0); + /* if length of string (including \0) is odd skip another byte */ + if (cnt%2) { + g3d_stream_read_int8(stream); + cnt++; + } + return cnt; +} + +guint32 lwo_read_vx(G3DStream *stream, guint *index) +{ + *index = g3d_stream_read_int16_be(stream); + if((*index & 0xFF00) == 0xFF00) { + *index <<= 16; + *index += g3d_stream_read_int16_be(stream); + *index &= 0x00FFFFFF; + return 4; + } else { + return 2; + } +} + +static void lwo_fix_texfaces(G3DModel *model) +{ + GSList *olist, *flist; + G3DObject *object; + G3DFace *face; + + olist = model->objects; + while(olist) + { + object = (G3DObject *)olist->data; + olist = olist->next; + + flist = object->faces; + while(flist) + { + face = (G3DFace *)flist->data; + flist = flist->next; + + if(face->flags & G3D_FLAG_FAC_TEXMAP) + { + face->tex_image = face->material->tex_image; + if(face->tex_image == NULL) + { + face->flags &= ~G3D_FLAG_FAC_TEXMAP; + } + } + } + } +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_LWO_H +#define _IMP_LWO_H + +#include +#include + +#define LWO_FLAG_LWO2 (1 << 0) + +typedef struct { + gint32 ntags; + gchar **tags; + + gint32 nclips; + guint32 *clips; + gchar **clipfiles; + + G3DFloat *tex_vertices; + + G3DObject *object; +} LwoObject; + +G3DObject *lwo_create_object(G3DStream *stream, G3DModel *model, + guint32 flags); +gint lwo_read_string(G3DStream *stream, gchar *s); +guint32 lwo_read_vx(G3DStream *stream, guint *index); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +#include + +#include +#include +#include +#include +#include +#include + +#include "imp_lwo.h" + +gboolean lwo_cb_CLIP(G3DIffGlobal *global, G3DIffLocal *local) +{ + LwoObject *obj; + guint32 index; + + obj = (LwoObject *)global->user_data; + g_return_val_if_fail(obj != NULL, FALSE); + + if(!local->finalize) + { + index = g3d_stream_read_int32_be(global->stream); + local->nb -= 4; + + obj->nclips ++; + obj->clips = g_realloc(obj->clips, obj->nclips * sizeof(guint32)); + obj->clipfiles = g_realloc(obj->clipfiles, + (obj->nclips + 1) * sizeof(gchar *)); + + obj->clips[obj->nclips - 1] = index; + obj->clipfiles[obj->nclips - 1] = g_strdup("undef"); + obj->clipfiles[obj->nclips] = NULL; + } + + return TRUE; +} + +gboolean lwo_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DMaterial *material; + + material = (G3DMaterial *)local->object; + g_return_val_if_fail(material != NULL, FALSE); + + if(global->flags & LWO_FLAG_LWO2) + { + material->r = g3d_stream_read_float_be(global->stream); + material->g = g3d_stream_read_float_be(global->stream); + material->b = g3d_stream_read_float_be(global->stream); + local->nb -= 12; + g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + } + else + { + material->r = g3d_stream_read_int8(global->stream) / 255.0; + material->g = g3d_stream_read_int8(global->stream) / 255.0; + material->b = g3d_stream_read_int8(global->stream) / 255.0; + g3d_stream_read_int8(global->stream); + local->nb -= 4; + } + + return TRUE; +} + +/* image index */ +gboolean lwo_cb_IMAG(G3DIffGlobal *global, G3DIffLocal *local) +{ + LwoObject *obj; + G3DMaterial *material; + guint32 index, i; + + obj = (LwoObject *)global->user_data; + g_return_val_if_fail(obj != NULL, FALSE); + + material = (G3DMaterial *)local->object; + g_return_val_if_fail(material != NULL, FALSE); + + local->nb -= lwo_read_vx(global->stream, &index); + + for(i = 0; i < obj->nclips; i ++) + { + if(obj->clips[i] == index) + break; + } + + if((i < obj->nclips) && (obj->clips[i] == index)) + { + material->tex_image = g3d_texture_load_cached( + global->context, global->model, obj->clipfiles[i]); + } + + return TRUE; +} + +/* points */ +gboolean lwo_cb_PNTS(G3DIffGlobal *global, G3DIffLocal *local) +{ + LwoObject *obj; + G3DObject *object; + gint32 i, off; + + obj = (LwoObject *)global->user_data; + g_return_val_if_fail(obj != NULL, FALSE); + + if(global->flags & LWO_FLAG_LWO2) { + object = lwo_create_object(global->stream, global->model, + global->flags); + obj->object = object; + + if(obj->tex_vertices) { + g_free(obj->tex_vertices); + obj->tex_vertices = NULL; + } + } else { + object = (G3DObject *)obj->object; + if(object == NULL) { + object = lwo_create_object(global->stream, global->model, + global->flags); + obj->object = object; + } + } + off = object->vertex_count; + object->vertex_count += (local->nb / 12); + g_return_val_if_fail(object->vertex_count >= 3, FALSE); + + object->vertex_data = g_realloc(object->vertex_data, + sizeof(G3DFloat) * object->vertex_count * 3); + + for(i = off; i < object->vertex_count; i ++) { + object->vertex_data[i * 3 + 0] = + -g3d_stream_read_float_be(global->stream); + object->vertex_data[i * 3 + 1] = + g3d_stream_read_float_be(global->stream); + object->vertex_data[i * 3 + 2] = + g3d_stream_read_float_be(global->stream); + local->nb -= 12; + } + return TRUE; +} + +/* polygons */ +gboolean lwo_cb_POLS(G3DIffGlobal *global, G3DIffLocal *local) +{ + LwoObject *obj; + G3DObject *object; + G3DFace *face; + gboolean skip_face; + guint32 type; + gint32 n = 0, i, nmat, det_cnt, cnt; + gint16 index; + gchar *tmp; + + obj = (LwoObject *)global->user_data; + g_return_val_if_fail(obj != NULL, FALSE); + + object = (G3DObject *)obj->object; + g_return_val_if_fail(object != NULL, FALSE); + + if(global->flags & LWO_FLAG_LWO2) { + type = g3d_stream_read_int32_be(global->stream); + local->nb -= 4; + + switch(type) { + case G3D_IFF_MKID('F', 'A', 'C', 'E'): + case G3D_IFF_MKID('P', 'T', 'C', 'H'): + break; + default: + tmp = g3d_iff_id_to_text(type); + g_warning("[LWO] unhandled polygon type %s", tmp); + g_free(tmp); + return FALSE; + } + } + + while(local->nb > 0) { + n ++; + skip_face = FALSE; + face = g_new0(G3DFace, 1); + face->vertex_count = g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + + if(global->flags & LWO_FLAG_LWO2) + face->vertex_count &= 0x03FF; + + face->vertex_indices = g_new0(guint32, face->vertex_count); + + if(obj->tex_vertices) { + face->flags |= G3D_FLAG_FAC_TEXMAP; + face->tex_vertex_count = face->vertex_count; + face->tex_vertex_data = g_new0(G3DFloat, face->tex_vertex_count * 2); + } + + for(i = 0; i < face->vertex_count; i ++) { + if(global->flags & LWO_FLAG_LWO2) { + local->nb -= lwo_read_vx(global->stream, + &(face->vertex_indices[i])); + } else { + index = g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + if(index < 0) { + skip_face = TRUE; + } else + face->vertex_indices[i] = index; + } + + if(obj->tex_vertices) { + face->tex_vertex_data[i * 2 + 0] = + obj->tex_vertices[face->vertex_indices[i] * 2 + 0]; + face->tex_vertex_data[i * 2 + 1] = + obj->tex_vertices[face->vertex_indices[i] * 2 + 1]; + } + } /* i: 0..face->vertex_count */ + + if(!(global->flags & LWO_FLAG_LWO2)) { + nmat = g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + + if(nmat < 0) { + /* detail polygons, skipped */ + det_cnt = g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + nmat *= -1; + while(det_cnt-- > 0) { + cnt = g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + g3d_stream_skip(global->stream, cnt * 2 + 2); + local->nb -= cnt * 2 + 2; + } + } else if(nmat == 0) { + nmat = 1; + } + + face->material = g_slist_nth_data(global->model->materials, nmat); + + if(face->material == NULL) { +#if 0 + g_warning("[LWO] face->material is NULL (#%d)\n", nmat - 1); +#endif + face->material = g_slist_nth_data(global->model->materials, 0); + } + } /* !LWO2 */ else { + face->material = g_slist_nth_data(global->model->materials, 0); + } /* LWO2 */ + + if(skip_face || (face->vertex_count < 3)) { + if(face->tex_vertex_data) + g_free(face->tex_vertex_data); + g_free(face->vertex_indices); + g_free(face); + } else { + object->faces = g_slist_prepend(object->faces, face); + } + + g3d_context_update_interface(global->context); + } /* local->nb > 0 */ + + return TRUE; +} + +/* poly tag mapping */ +gboolean lwo_cb_PTAG(G3DIffGlobal *global, G3DIffLocal *local) +{ + LwoObject *obj; + G3DObject *object; + G3DMaterial *material, *tmat; + G3DFace *face; + GSList *mlist; + gint32 id, fmax; + guint32 poly, tag; + + obj = (LwoObject *)global->user_data; + g_return_val_if_fail(obj != NULL, FALSE); + + object = (G3DObject *)obj->object; + g_return_val_if_fail(object != NULL, FALSE); + + id = g3d_stream_read_int32_be(global->stream); + local->nb -= 4; + + if(id != G3D_IFF_MKID('S','U','R','F')) + return FALSE; + + fmax = g_slist_length(object->faces) - 1; + + while(local->nb > 0) + { + local->nb -= lwo_read_vx(global->stream, &poly); + tag = g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + + face = (G3DFace *)g_slist_nth_data(object->faces, fmax - poly); + g_return_val_if_fail(face != NULL, FALSE); + + if(tag > obj->ntags) + { + g_warning("[LWO] tag %d not listed (%d tags)", tag, obj->ntags); + continue; + } + + material = NULL; + mlist = global->model->materials; + while(mlist != NULL) + { + tmat = (G3DMaterial*)mlist->data; + if(strcmp(obj->tags[tag], tmat->name) == 0) + { + material = tmat; + break; + } + mlist = mlist->next; + } + + if(material) + face->material = material; + else + g_warning("[LWO] unknown material tag %s", obj->tags[tag]); + } + + return TRUE; +} + +/* specularity */ +gboolean lwo_cb_SPEC(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DMaterial *material; + GLfloat tmpf; + + material = (G3DMaterial *)local->object; + g_return_val_if_fail(material != NULL, FALSE); + + if(global->flags & LWO_FLAG_LWO2) + { + tmpf = 1.0 - g3d_stream_read_float_be(global->stream); + local->nb -= 4; + } + else + { + tmpf = 1.0 - (GLfloat)g3d_stream_read_int16_be(global->stream) / 256.0; + local->nb -= 2; + } + + material->specular[0] = material->r * tmpf; + material->specular[1] = material->g * tmpf; + material->specular[2] = material->b * tmpf; + + return TRUE; +} + +/* surfaces */ +gboolean lwo_cb_SRFS(G3DIffGlobal *global, G3DIffLocal *local) +{ + LwoObject *obj; + G3DMaterial *material; + gchar buffer[512]; + + obj = (LwoObject *)global->user_data; + g_return_val_if_fail(obj != NULL, FALSE); + + while(local->nb > 0) + { + material = g3d_material_new(); + local->nb -= lwo_read_string(global->stream, buffer); + material->name = g_strdup(buffer); + global->model->materials = g_slist_append(global->model->materials, + material); + + } + + return TRUE; +} + +/* still image */ +gboolean lwo_cb_STIL(G3DIffGlobal *global, G3DIffLocal *local) +{ + LwoObject *obj; + + gchar buffer[512]; + + obj = (LwoObject *)global->user_data; + g_return_val_if_fail(obj != NULL, FALSE); + + local->nb -= lwo_read_string(global->stream, buffer); + + g_free(obj->clipfiles[obj->nclips - 1]); + obj->clipfiles[obj->nclips - 1] = g_strdup(buffer); + obj->clipfiles[obj->nclips] = NULL; + + return TRUE; +} + +/* surface */ +gboolean lwo_cb_SURF(G3DIffGlobal *global, G3DIffLocal *local) +{ + LwoObject *obj; + G3DObject *object; + G3DMaterial *material = NULL, *tmat; + GSList *mlist; + gchar name[512]; + + obj = (LwoObject *)global->user_data; + g_return_val_if_fail(obj != NULL, FALSE); + + object = (G3DObject *)obj->object; + g_return_val_if_fail(object != NULL, FALSE); + + if(!local->finalize) + { + local->nb -= lwo_read_string(global->stream, name); + + if(global->flags & LWO_FLAG_LWO2) + { + g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + } + + mlist = global->model->materials; + while(mlist != NULL) + { + tmat = (G3DMaterial*)mlist->data; + if(strcmp(name, tmat->name) == 0) + { + material = tmat; + break; + } + mlist = mlist->next; + } + + if(material == NULL) + { + material = g3d_material_new(); + material->name = g_strdup(name); + global->model->materials = g_slist_append(global->model->materials, + material); + } + + local->object = material; + } + + return TRUE; +} + +/* tags */ +gboolean lwo_cb_TAGS(G3DIffGlobal *global, G3DIffLocal *local) +{ + LwoObject *obj; + G3DMaterial *material; + gchar buffer[512]; + + obj = (LwoObject *)global->user_data; + g_return_val_if_fail(obj != NULL, FALSE); + + if(obj->ntags) + { + g_strfreev(obj->tags); + obj->ntags = 0; + } + + /* read tags */ + while(local->nb > 0) + { + local->nb -= lwo_read_string(global->stream, buffer); + obj->ntags ++; + obj->tags = g_realloc(obj->tags, (1 + obj->ntags) * sizeof(gchar *)); + obj->tags[obj->ntags - 1] = g_strdup(buffer); + obj->tags[obj->ntags] = NULL; + + material = g3d_material_new(); + material->name = g_strdup(buffer); + global->model->materials = g_slist_append(global->model->materials, + material); + } + + return TRUE; +} + +/* transparency */ +gboolean lwo_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DMaterial *material; + + material = (G3DMaterial *)local->object; + g_return_val_if_fail(material != NULL, FALSE); + + if(global->flags & LWO_FLAG_LWO2) { + material->a = 1.0 - g3d_stream_read_float_be(global->stream); + local->nb -= 4; + } else { + material->a = 1.0 - + (G3DFloat)g3d_stream_read_int16_be(global->stream) / 256.0; + local->nb -= 2; + } + if(material->a < 0.1) + material->a = 0.1; + + return TRUE; +} + +/* vertex mapping */ +gboolean lwo_cb_VMAP(G3DIffGlobal *global, G3DIffLocal *local) +{ + LwoObject *obj; + guint32 index, type, dim; + gchar buffer[512], *tmp; + + obj = (LwoObject *)global->user_data; + g_return_val_if_fail(obj != NULL, FALSE); + + tmp = g3d_iff_id_to_text(local->parent_id); + g_debug("[LWO][VMAP] parent is %s", tmp); + g_free(tmp); + + if(local->parent_id == G3D_IFF_MKID('L','W','O','2')) + { + type = g3d_stream_read_int32_be(global->stream); + local->nb -= 4; + + dim = g3d_stream_read_int16_be(global->stream); + local->nb -= 2; + + local->nb -= lwo_read_string(global->stream, buffer); + + if(type == G3D_IFF_MKID('T','X','U','V')) + { + g_debug("[LWO][VMAP] **TXUV**"); + + g_return_val_if_fail(obj->tex_vertices == NULL, FALSE); + + obj->tex_vertices = g_new0(G3DFloat, + obj->object->vertex_count * 2); + + while(local->nb > 0) + { + local->nb -= lwo_read_vx(global->stream, &index); + g_return_val_if_fail(index < obj->object->vertex_count, FALSE); + + obj->tex_vertices[index * 2 + 0] = + g3d_stream_read_float_be(global->stream); + obj->tex_vertices[index * 2 + 1] = 1.0 - + g3d_stream_read_float_be(global->stream); +#if DEBUG > 0 + if((obj->tex_vertices[index * 2 + 0] > 1.0) || + (obj->tex_vertices[index * 2 + 1] > 1.0)) + g_debug("LWO: TXUV: %.2f, %.2f", + obj->tex_vertices[index * 2 + 0], + obj->tex_vertices[index * 2 + 1]); +#endif + local->nb -= 8; + } + } + else + { + tmp = g3d_iff_id_to_text(type); + g_warning("[LWO][VMAP] unhandled vertex mapping %s", tmp); + g_free(tmp); + } + } + + return TRUE; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_LWO_CALLBACKS_H +#define _IMP_LWO_CALLBACKS_H + +#include + +gboolean lwo_cb_CLIP(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_IMAG(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_PNTS(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_POLS(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_PTAG(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_SPEC(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_SRFS(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_STIL(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_SURF(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_TAGS(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local); +gboolean lwo_cb_VMAP(G3DIffGlobal *global, G3DIffLocal *local); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_LWO_CHUNKS_H +#define _IMP_LWO_CHUNKS_H + +#include + +#include "imp_lwo_callbacks.h" + +static G3DIffChunkInfo lwo_chunks[] = { + { "AAST", "antialiasing strength", 0, NULL }, + { "ADTR", "additive transparency", 0, NULL }, + { "ALPH", "alpha mode", 0, NULL }, + { "AXIS", "major axis", 0, NULL }, + { "BBOX", "bounding box", 0, NULL }, + { "BLOK", "block", 1, NULL }, + { "BTEX", "unknown", 0, NULL }, + { "BUMP", "bump intensity", 0, NULL }, + { "CLIP", "image or image sequence", 1, lwo_cb_CLIP }, + { "CLRF", "color filter", 0, NULL }, + { "CLRH", "color highlights", 0, NULL }, + { "CMNT", "unknown", 0, NULL }, + { "COLR", "color", 0, lwo_cb_COLR }, + { "CTEX", "unknown", 0, NULL }, + { "DESC", "description", 0, NULL }, + { "DIFF", "diffuse", 0, NULL }, + { "DTEX", "unknown", 0, NULL }, + { "FKEY", "gradient key values", 0, NULL }, + { "FLAG", "flags", 0, NULL }, + { "FUNC", "algorithm and parameters", 0, NULL }, + { "GLOS", "specular glossiness", 0, NULL }, + { "GRAD", "gradient texture (header)", 0, NULL }, + { "GREN", "gradient end", 0, NULL }, + { "GRPT", "gradient repeat mode", 0, NULL }, + { "GRST", "gradient start", 0, NULL }, + { "GVAL", "glow value", 0, NULL }, + { "ICON", "icon", 0, NULL }, + { "IKEY", "gradient key parameters", 0, NULL }, + { "IMAG", "image index", 0, lwo_cb_IMAG }, + { "IMAP", "image map (header)", 0, NULL }, + { "INAM", "item name", 0, NULL }, + { "LAYR", "layer", 0, NULL }, + { "LTEX", "unknown", 0, NULL }, + { "LUMI", "luminosity", 0, NULL }, + { "PIXB", "pixel blending", 0, NULL }, + { "PNAM", "parameter name", 0, NULL }, + { "PNTS", "points", 0, lwo_cb_PNTS }, + { "POLS", "polygons", 0, lwo_cb_POLS }, + { "PROC", "procedural texture (header)", 0, NULL }, + { "PROJ", "projection mode", 0, NULL }, + { "PTAG", "polygon tag mapping", 0, lwo_cb_PTAG }, + { "RBLR", "reflection blurring", 0, NULL }, + { "REFL", "reflection", 0, NULL }, + { "RFLT", "unknown", 0, NULL }, + { "RFOP", "reflection options", 0, NULL }, + { "RIMG", "reflection map image", 0, NULL }, + { "RIND", "refractive index", 0, NULL }, + { "RSAN", "reflection map seam angle", 0, NULL }, + { "SHDR", "shader", 0, NULL }, + { "SIDE", "polygon sidedness", 0, NULL }, + { "SMAN", "max smooting angle", 0, NULL }, + { "SPEC", "specular", 0, lwo_cb_SPEC }, + { "SRFS", "surface materials", 0, lwo_cb_SRFS }, + { "STEX", "unknown", 0, NULL }, + { "STIL", "still image", 0, lwo_cb_STIL }, + { "SURF", "surface material", 1, lwo_cb_SURF }, + { "TAAS", "unknown", 0, NULL }, + { "TAGS", "tags", 0, lwo_cb_TAGS }, + { "TAMP", "texture amplitude", 0, NULL }, + { "TCLR", "unknown", 0, NULL }, + { "TCTR", "unknown", 0, NULL }, + { "TEXT", "commentary text", 0, NULL }, + { "TFAL", "unknown", 0, NULL }, + { "TFLG", "unknown", 0, NULL }, + { "TFP0", "unknown", 0, NULL }, + { "TFP1", "unknown", 0, NULL }, + { "TFP2", "unknown", 0, NULL }, + { "TFP3", "unknown", 0, NULL }, + { "TFRQ", "unknown", 0, NULL }, + { "TIMG", "refraction map image", 0, NULL }, + { "TIP0", "unknown", 0, NULL }, + { "TMAP", "texture map", 0, NULL }, + { "TRAN", "transparency", 0, lwo_cb_TRAN }, + { "TRNL", "translucency", 0, NULL }, + { "TROP", "transparency options", 0, NULL }, + { "TSIZ", "unknown", 0, NULL }, + { "TSP0", "unknown", 0, NULL }, + { "TTEX", "unknown", 0, NULL }, + { "TVAL", "unknown", 0, NULL }, + { "VALU", "basic value", 0, NULL }, + { "VDIF", "unknown", 0, NULL }, + { "VMAD", "discontinuous vertex map", 0, NULL }, + { "VMAP", "uv vertex map", 0, lwo_cb_VMAP }, + { "VMPA", "vertex map parameters", 0, NULL }, + { "VRFL", "unknown", 0, NULL }, + { "VSPC", "unknown", 0, NULL }, + { "VTRN", "unknown", 0, NULL }, + { "WRAP", "image wrap options", 0, NULL }, + { "WRPH", "wrap amount (width)", 0, NULL }, + { "WRPW", "wrap amount (height)", 0, NULL }, + + { NULL, NULL, 0, NULL } +}; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_max/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_max +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_max_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_max_la_OBJECTS = imp_max.lo imp_max_callbacks.lo +imp_max_la_OBJECTS = $(am_imp_max_la_OBJECTS) +#am_imp_max_la_rpath = -rpath \ +# $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_max_la_SOURCES) +DIST_SOURCES = $(imp_max_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_max.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_max_la_SOURCES = imp_max.c \ + imp_max_chunks.h imp_max_callbacks.c imp_max_callbacks.h + +imp_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 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_max.la: $(imp_max_la_OBJECTS) $(imp_max_la_DEPENDENCIES) + $(LINK) $(am_imp_max_la_rpath) $(imp_max_la_OBJECTS) $(imp_max_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_max.Plo +include ./$(DEPDIR)/imp_max_callbacks.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + + -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 +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +if HAVE_LIBGSF +pluginimp_LTLIBRARIES = imp_max.la +endif +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + @LIBGSF_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_max_la_SOURCES = imp_max.c \ + imp_max_chunks.h imp_max_callbacks.c imp_max_callbacks.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_max +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_max_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_max_la_OBJECTS = imp_max.lo imp_max_callbacks.lo +imp_max_la_OBJECTS = $(am_imp_max_la_OBJECTS) +@EXPERIMENTAL_TRUE@@HAVE_LIBGSF_TRUE@am_imp_max_la_rpath = -rpath \ +@EXPERIMENTAL_TRUE@@HAVE_LIBGSF_TRUE@ $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_max_la_SOURCES) +DIST_SOURCES = $(imp_max_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@@HAVE_LIBGSF_TRUE@pluginimp_LTLIBRARIES = imp_max.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_max_la_SOURCES = imp_max.c \ + imp_max_chunks.h imp_max_callbacks.c imp_max_callbacks.h + +imp_max_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBGSF_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_max.la: $(imp_max_la_OBJECTS) $(imp_max_la_DEPENDENCIES) + $(LINK) $(am_imp_max_la_rpath) $(imp_max_la_OBJECTS) $(imp_max_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_max.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_max_callbacks.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + + @LIBGSF_CFLAGS@ +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +#include + +#include +#include +#include +#include +#include +#include + +#include "imp_max_chunks.h" + + + +static gboolean max_read_subfile(G3DContext *context, G3DModel *model, + G3DStream *stream, const gchar *subfile); +static gboolean max_read_chunk(MaxGlobalData *global, gint32 *nb, + guint32 level, gint32 parentid, gpointer object, guint32 *l2cnt, + GNode *tree); +static MaxChunk *max_get_chunk_desc(guint16 id, gint32 parentid, + gboolean container); + +static const gchar *max_subfiles[] = { +#if 0 + "Config", + "VideoPostQueue", + "ScriptedCustAttribDefs", + "DllDirectory", + "ClassDirectory", + "ClassDirectory2", + "ClassDirectory3", + "ClassData", +#endif + "Scene", + NULL +}; + +typedef enum { + MAX_ROOT_NODE, + MAX_L2_NODE, + MAX_CNT_NODE, + MAX_DATA_NODE +} MaxNodeType; + +typedef struct { + MaxNodeType type; + gchar *name; + guint32 cnt2034; + guint32 val2034; + gint32 data2034; + GSList *children; +} MaxNode; + +typedef struct { + guint32 l2id; + guint32 id; + gchar *text; + G3DObject *object; +} MaxTreeItem; + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model) +{ + gboolean retval = FALSE; + G3DMaterial *material; + const gchar **subfile = max_subfiles; + + /* create default material */ + material = g3d_material_new(); + material->name = g_strdup("default material"); + model->materials = g_slist_append(model->materials, material); + + /* debugging material */ + material = g3d_material_new(); + material->r = 1.0; + material->g = 0.2; + material->b = 0.1; + material->name = g_strdup("debugging material"); + model->materials = g_slist_append(model->materials, material); + + while(*subfile) { + retval = max_read_subfile(context, model, stream, *subfile); + subfile ++; + } + + g3d_context_update_progress_bar(context, 0.0, FALSE); + + return retval; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("3D Studio MAX models (EXPERIMENTAL)."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("max:gmax", ":", 0); +} + +/***************************************************************************** + * max specific + *****************************************************************************/ + +static void max_walk_tree(GNode *tree, guint32 level) +{ + GNode *node; + MaxTreeItem *mtitem; + + mtitem = (MaxTreeItem *)tree->data; + +#if DEBUG > 0 + g_debug("\\%s(%u)[0x%04X][0x%04X] %s", debug_pad(level), level, + mtitem->l2id, mtitem->id, mtitem->text); +#endif + + for(node = tree->children; node != NULL; node = node->next) { + max_walk_tree(node, level + 1); + } +} + +static gboolean max_read_subfile(G3DContext *context, G3DModel *model, + G3DStream *stream, const gchar *subfile) +{ + G3DStream *ssf; + MaxGlobalData *global; + gint32 fsize; + guint32 l2cnt = 0; + MaxTreeItem *rootitem; + GNode *tree; + + rootitem = g_new0(MaxTreeItem, 1); + rootitem->text = g_strdup("ROOT"); + tree = g_node_new(rootitem); + + ssf = g3d_stream_open_structured_file_from_stream(stream, subfile); + if(ssf == NULL) { + g_warning("MAX: failed to open '%s' in structured file '%s'", + subfile, stream->uri); + return FALSE; + } + + fsize = g3d_stream_size(ssf); + + g_debug("\\%s (%d bytes)", subfile, fsize); + + global = g_new0(MaxGlobalData, 1); + global->context = context; + global->model = model; + global->stream = ssf; + global->subfile = subfile; + + while(max_read_chunk(global, &fsize, 1 /* level */, IDNONE, NULL, &l2cnt, + tree)); + + g_debug("MAX tree:"); + max_walk_tree(tree, 0); + + g_free(global); + g3d_stream_close(ssf); + + return TRUE; +} + +static GNode *max_find_node(GNode *tree, guint32 id) +{ + GNode *node, *found; + MaxTreeItem *mtitem; + + mtitem = (MaxTreeItem *)tree->data; + if(mtitem->l2id == id) + return tree; + + for(node = tree->children; node != NULL; node = node->next) { + found = max_find_node(node, id); + if(found != NULL) + return found; + } + + return NULL; +} + +static gboolean max_create_l2_tree_object(MaxGlobalData *global, + MaxLocalData *local, G3DObject *parent) +{ + G3DObject *object; + + object = g_new0(G3DObject, 1); + object->name = g_strdup_printf("0x%04X object @ 0x%08x", + local->id, (guint32)g3d_stream_tell(global->stream)); + local->object = object; + if(parent) + parent->objects = g_slist_append(parent->objects, object); + else + global->model->objects = g_slist_append(global->model->objects, + object); + + global->object = object; + global->vertex_offset = 0; + + return TRUE; +} + +static gboolean max_read_chunk(MaxGlobalData *global, gint32 *nb, + guint32 level, gint32 parentid, gpointer object, guint32 *l2cnt, + GNode *tree) +{ + guint16 id; + guint32 length; + gboolean container; + MaxChunk *chunk; + MaxLocalData *local; + MaxTreeItem *mtitem; + GNode *pnode = NULL, *node; + + if(nb && (*nb < 6)) + return FALSE; + + id = g3d_stream_read_int16_le(global->stream); + length = g3d_stream_read_int32_le(global->stream); + container = (length & 0x80000000); + length &= 0x7FFFFFFF; + + if(nb && (length > *nb)) + return FALSE; + if(nb) + *nb -= length; + + if((level == 2) && l2cnt) + (*l2cnt) ++; + + chunk = max_get_chunk_desc(id, parentid, container); + +#if DEBUG > 0 + g_debug("\\%s(%d)[0x%04X][%c%c] %s -- %d (%d) bytes @ 0x%08x", + debug_pad(level), level, + id, (container ? 'c' : ' '), + (chunk && chunk->callback) ? 'f' : ' ', + chunk ? chunk->desc : (level == 2) ? "level 2 container" : "unknown", + length - 6, length, + (guint32)g3d_stream_tell(global->stream) - 6); +#endif + + node = tree; + if(level == 2) { + pnode = max_find_node(tree, id); + if(pnode != NULL) { + mtitem = g_new0(MaxTreeItem, 1); + mtitem->l2id = *l2cnt; + mtitem->id = id; + mtitem->text = g_strdup("L2ITEM"); + node = g_node_append_data(pnode, mtitem); + } else { + mtitem = g_new0(MaxTreeItem, 1); + mtitem->l2id = 0xFFFF; + mtitem->id = id; + mtitem->text = g_strdup_printf("OUTOFTREE: 0x%04X", id); + node = g_node_append_data(tree, mtitem); + } + } else if(level > 2) { + mtitem = g_new0(MaxTreeItem, 1); + mtitem->l2id = 0xFFFF; + mtitem->id = id; + mtitem->text = g_strdup_printf("REGITEM: 0x%04X: %s", + id, chunk ? chunk->desc : "unknown"); + node = g_node_append_data(tree, mtitem); + } + + local = g_new0(MaxLocalData, 1); + local->id = (level > 2) ? id : 0x0000; + local->parentid = parentid; + local->nb = length - 6; + local->level = level + 1; + local->object = object; + + if((level > 2) && chunk && chunk->callback) + chunk->callback(global, local); + if(level == 2) { + mtitem = pnode ? pnode->data : NULL; + max_create_l2_tree_object(global, local, + mtitem ? mtitem->object : NULL); + mtitem = node->data; + mtitem->object = local->object; + } + + if(container) + while(local->nb > 0) + if(!max_read_chunk(global, &(local->nb), level + 1, id, + local->object, l2cnt, node)) + return FALSE; + + if(local->nb > 0) + g3d_stream_skip(global->stream, local->nb); + + g_free(local); + + g3d_context_update_interface(global->context); + + if(level < 3) + g3d_context_update_progress_bar(global->context, + (G3DFloat)g3d_stream_tell(global->stream) / + (G3DFloat)g3d_stream_size(global->stream), + TRUE); + + return TRUE; +} + +static MaxChunk *max_get_chunk_desc(guint16 id, gint32 parentid, + gboolean container) +{ + MaxChunk *chunk, *chunks; + gint32 i; + + if(container) + chunks = max_cnt_chunks; + else + chunks = max_chunks; + + for(i = 0, chunk = &(chunks[i]); chunk->id != IDNONE; + i ++, chunk = &(chunks[i])) { + if((chunk->parentid == IDSOME) || (parentid == chunk->parentid) || + (parentid == IDSOME) || + ((chunk->parentid == IDROOT) && ID_IS_ROOT(parentid)) || + ((chunk->parentid == IDGEOM) && ID_IS_GEOM(parentid)) || + ((chunk->parentid == IDMATG) && ID_IS_MATG(parentid)) || + ((chunk->parentid == IDFILE) && ID_IS_FILE(parentid))) { + if(chunk->id == id) + return chunk; + } /* parentid */ + } + return NULL; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include +#include + +#include "imp_max_callbacks.h" + +static gchar *max_read_wchar(G3DStream *stream, guint32 n) +{ + gint32 i; + gunichar2 *u16text; + gchar *text; + GError *error = NULL; + + u16text = g_new0(gunichar2, n + 1); + for(i = 0; i < n; i ++) { + u16text[i] = g3d_stream_read_int16_le(stream); + } + + text = g_utf16_to_utf8(u16text, n, NULL, NULL, &error); + if(error != NULL) { + g_warning("UTF-16 to UTF-8 conversion failed: %s", + error->message); + g_error_free(error); + } + g_free(u16text); + + return text; +} + +gboolean max_cb_debug_int32(MaxGlobalData *global, MaxLocalData *local) +{ + union { + gint32 i; + G3DFloat f; + } u; + + while(local->nb >= 4) { + u.i = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; +#if DEBUG > 0 + g_debug("|%s[D32] 0x%08x, %d, %.2f", debug_pad(local->level), + u.i, u.i, u.f); +#endif + } + return TRUE; +} + +gboolean max_cb_debug_wchars(MaxGlobalData *global, MaxLocalData *local) +{ + gchar *str; + guint32 len; + + len = local->nb / 2; + str = max_read_wchar(global->stream, len); + local->nb -= len * 2; +#if DEBUG > 0 + g_debug("|%s[TEXT] %s (%d)", debug_pad(local->level), + str, len); +#endif + g_free(str); + + return TRUE; +} + +gboolean max_cb_debug_string(MaxGlobalData *global, MaxLocalData *local) +{ + gchar *str; + guint32 len; + + g_return_val_if_fail(local->nb >= 4, FALSE); + len = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + if(len > local->nb) + len = local->nb; + + str = g_new0(gchar, len + 1); + g3d_stream_read(global->stream, str, len); + local->nb -= len; +#if DEBUG > 0 + g_debug("|%s[TEXT] %s (%d)", debug_pad(local->level), + str, len); +#endif + g_free(str); + + return TRUE; +} + +gboolean max_cb_0x0001_0x0005(MaxGlobalData *global, MaxLocalData *local) +{ + gchar *str; + gint32 len, i, w3[3], cnt = 0; + + if(local->nb < 4) + return FALSE; + + /* flags? */ + i = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + +#if DEBUG > 0 + g_debug("|%s[PROP] 0x%08x", debug_pad(local->level), i); +#endif + + while(local->nb > 0) { + len = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + str = g_malloc0(len + 1); + g3d_stream_read(global->stream, str, len); + local->nb -= len; + for(i = 0; i < 3; i ++) + w3[i] = g3d_stream_read_int16_le(global->stream); + local->nb -= 6; + cnt ++; +#if DEBUG > 0 + g_debug("|%s[PROP] %04d: '%s' (%d bytes) [%d, %d, %d]", + debug_pad(local->level), + cnt, str, len, + w3[0], w3[1], w3[2]); +#endif + g_free(str); + } + return TRUE; +} + +gboolean max_cb_IDFILE_0x1201(MaxGlobalData *global, MaxLocalData *local) +{ + guint16 width, height; + + width = g3d_stream_read_int16_le(global->stream); + height = g3d_stream_read_int16_le(global->stream); + local->nb -= 4; +#if DEBUG > 0 + g_debug("|%s[IMG] %u x %u", debug_pad(local->level), width, height); +#endif + return TRUE; +} + +/* vertex data */ +gboolean max_cb_0x08FE_0x0100(MaxGlobalData *global, MaxLocalData *local) +{ + guint32 num; + gint i, j; + G3DObject *object; + + if(local->nb < 4) + return FALSE; + + /* vertices */ + num = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + object = (G3DObject *)local->object; + if(object == NULL) { + g_warning("MAX: 0x08FE::0x0100: no object"); + return FALSE; + } + +#if DEBUG > 0 + g_debug("|%s[VERT] %d vertices", debug_pad(local->level), num); +#endif + global->vertex_offset = object->vertex_count; + object->vertex_count += num; + object->vertex_data = g_realloc(object->vertex_data, + object->vertex_count * 3 * sizeof(G3DFloat)); + + for(i = 0; i < num; i ++) { + if(local->nb < 16) + return FALSE; + g3d_stream_read_int32_le(global->stream); /* always 0 */ + for(j = 0; j < 3; j ++) + object->vertex_data[(global->vertex_offset + i) * 3 + j] = + g3d_stream_read_float_le(global->stream); + local->nb -= 16; + } + return TRUE; +} + +/* lines (vertex indices) */ +gboolean max_cb_0x08FE_0x010A(MaxGlobalData *global, MaxLocalData *local) +{ + guint32 num; + gint i, j; + guint32 v[3]; + + if(local->nb < 4) + return FALSE; + + num = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + +#if DEBUG > 0 + g_debug("|%s[LINE] %d lines", debug_pad(local->level), num); +#endif + for(i = 0; i < num; i ++) { + if(local->nb < 12) + return FALSE; + for(j = 0; j < 3; j ++) { + v[j] = g3d_stream_read_int32_le(global->stream); + } + local->nb -= 12; + +#if DEBUG > 1 + g_debug("|%s[LINE] 0x%08x: (%d => %d)", debug_pad(local->level), + v[0], v[1], v[2]); +#endif + } + return TRUE; +} + +/* polygon data */ +gboolean max_cb_0x08FE_0x011A(MaxGlobalData *global, MaxLocalData *local) +{ + gint32 i; + guint32 numpoly, type, numvert, cntpoly = 0; + G3DObject *object = (G3DObject *)local->object; + G3DFace *face; + G3DMaterial *material; + + g_return_val_if_fail(local->nb >= 4, FALSE); + g_return_val_if_fail(object != NULL, FALSE); + + material = (G3DMaterial *)g_slist_nth_data(global->model->materials, + (global->vertex_offset ? 1 : 0)); + g_return_val_if_fail(material != NULL, FALSE); + + numpoly = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; +#if DEBUG > 0 + g_debug("|%s[POLY] %d polygons to read", debug_pad(local->level), + numpoly); +#endif + while(local->nb >= 4) { + numvert = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; +#if DEBUG > 0 + g_debug("|%s[POLY] %04d: %d vertices", debug_pad(local->level), + cntpoly, numvert); +#endif + g_return_val_if_fail(numvert >= 3, FALSE); + + face = g_new0(G3DFace, 1); + face->material = material; + face->vertex_count = numvert; + face->vertex_indices = g_new0(guint32, numvert); + object->faces = g_slist_append(object->faces, face); + for(i = 0; i < numvert; i ++) { + face->vertex_indices[i] = + global->vertex_offset + + g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + g_return_val_if_fail( + face->vertex_indices[i] < object->vertex_count, FALSE); + } + type = g3d_stream_read_int16_le(global->stream); + local->nb -= 2; + + if(type & 0xFFC6) { + g_warning("MAX: 0x011A: unhandled 0x%08x", type); +#if DEBUG > 0 + numvert = MIN(local->nb / 2, 20); + for(i = 0; i < numvert; i ++) { + g_debug("|%s[POLY] 0x%04x", debug_pad(local->level), + g3d_stream_read_int16_le(global->stream)); + local->nb -= 2; + } +#endif + return FALSE; + } + + /* FIXME: order of additional data most likely wrong */ + for(i = 3; i < numvert; i ++) { + g3d_stream_read_int32_le(global->stream); + g3d_stream_read_int32_le(global->stream); + local->nb -= 8; + } + if(type & 0x0001) { + g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + } + if(type & 0x0008) { + g3d_stream_read_int16_le(global->stream); + local->nb -= 2; + } + if(type & 0x0010) { + g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + } + cntpoly ++; + } +#if DEBUG > 0 + g_debug("|%s[POLY] %d faces added to object", debug_pad(local->level), + cntpoly); +#endif + return TRUE; +} + +/* texture vertices */ +gboolean max_cb_0x08FE_0x0128(MaxGlobalData *global, MaxLocalData *local) +{ + guint32 num; + G3DObject *object = (G3DObject *)local->object; + + g_return_val_if_fail(local->nb >= 4, FALSE); + g_return_val_if_fail(object != NULL, FALSE); + + num = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + +#if DEBUG > 0 + g_debug("|%s[TEXV] %d texture vertices", debug_pad(local->level), num); +#endif + return TRUE; +} + +/* texture indices */ +gboolean max_cb_0x08FE_0x012B(MaxGlobalData *global, MaxLocalData *local) +{ + gint i; + guint32 *vdata, vcnt, maxidx = 0, numpoly = 0, maxvcnt = 0; +#if 0 + G3DObject *object = (G3DObject *)local->object; + G3DFace *face; + + g_return_val_if_fail(object != NULL, FALSE); +#endif + + while(local->nb >= 4) { + vcnt = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + if(vcnt > maxvcnt) + maxvcnt = vcnt; +#if 0 + face = g_new0(G3DFace, 1); + face->vertex_count = vcnt; +#endif + if(local->nb < (vcnt * 4)) { +#if DEBUG > 0 + g_debug("|%s[TIDX] %d polygons, max index: %d, max vcnt: %d " + "(nb=%d, vcnt=%d)", debug_pad(local->level), + numpoly, maxidx, maxvcnt, local->nb, vcnt); +#endif + + return FALSE; + } + vdata = g_new0(guint32, vcnt); + numpoly ++; + for(i = 0; i < vcnt; i ++) { + vdata[i] = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + if(vdata[i] > maxidx) + maxidx = vdata[i]; + } +#if 1 + g_free(vdata); +#endif + } +#if DEBUG > 0 + g_debug("|%s[TIDX] %d polygons, max index: %d, max vcnt: %d", + debug_pad(local->level), numpoly, maxidx, maxvcnt); +#endif + return TRUE; +} + +/* geometric object */ +gboolean max_cb_IDROOT_IDGEOM(MaxGlobalData *global, MaxLocalData *local) +{ + G3DObject *object; + + object = g_new0(G3DObject, 1); + object->name = g_strdup_printf("0x%04X object @ 0x%08x", + local->id, (guint32)g3d_stream_tell(global->stream)); + local->object = object; + global->model->objects = g_slist_append(global->model->objects, object); + + global->object = object; + global->vertex_offset = 0; + + return TRUE; +} + +/* mesh */ +gboolean max_cb_IDGEOM_0x08FE(MaxGlobalData *global, MaxLocalData *local) +{ + g_return_val_if_fail(global->object != NULL, FALSE); + return TRUE; +} + +/* object name */ +gboolean max_cb_IDGEOM_0x0962(MaxGlobalData *global, MaxLocalData *local) +{ + G3DObject *object = (G3DObject *)local->object; + gchar *name; + gint32 len; + + g_return_val_if_fail(object != NULL, FALSE); + + g_free(object->name); + len = local->nb / 2; + name = max_read_wchar(global->stream, len); + object->name = g_strdup_printf("%s (0x%08x)", + name, (guint32)g3d_stream_tell(global->stream) - len - 6); + g_free(name); +#if DEBUG > 0 + g_debug("|%s[NAME] %s", debug_pad(local->level), object->name); +#endif + local->nb -= len * 2; + + return TRUE; +} + +/* single face */ +gboolean max_cb_0x0118_0x0110(MaxGlobalData *global, MaxLocalData *local) +{ + guint32 num; + gint i; + G3DObject *object = (G3DObject *)local->object; + G3DMaterial *mat; + G3DFace *face; + + g_return_val_if_fail(local->nb >= 4, FALSE); + g_return_val_if_fail(object != NULL, FALSE); + + mat = (G3DMaterial *)g_slist_nth_data(global->model->materials, + (global->vertex_offset ? 1 : 0)); + + num = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + + face = g_new0(G3DFace, 1); + face->vertex_count = num; + face->vertex_indices = g_new0(guint32, num); + face->material = mat; + object->faces = g_slist_append(object->faces, face); + + g_return_val_if_fail(local->nb >= (num * 4), FALSE); + for(i = 0; i < num; i ++) { + face->vertex_indices[i] = + global->vertex_offset + + g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + if(face->vertex_indices[i] >= object->vertex_count) { + g_warning("MAX: 0x0118::0x0110: vertex index (%d) >= " + "vertex count (%d)", + face->vertex_indices[i], + object->vertex_count); + face->vertex_indices[i] = 0; + } + } + return TRUE; +} + +/* triangles */ +gboolean max_cb_0x08FE_0x0912(MaxGlobalData *global, MaxLocalData *local) +{ + guint32 num; + gint i, j; + G3DObject *object; + G3DFace *face; + G3DMaterial *mat; + + mat = (G3DMaterial *)g_slist_nth_data(global->model->materials, + (global->vertex_offset ? 1 : 0)); + + if(local->nb < 4) + return FALSE; + + /* faces */ + num = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + object = (G3DObject *)local->object; + if(object == NULL) { + g_warning("MAX: 0x08FE::0x0912: no object"); + return FALSE; + } +#if DEBUG > 0 + g_debug("|%s[TRIS] %d triangles", debug_pad(local->level), num); +#endif + for(i = 0; i < num; i ++) { + face = g_new0(G3DFace, 1); + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + face->material = mat; + object->faces = g_slist_append(object->faces, face); + + if(local->nb < 20) + return FALSE; + for(j = 0; j < 3; j ++) { + face->vertex_indices[j] = + global->vertex_offset + + g3d_stream_read_int32_le(global->stream); + if(face->vertex_indices[j] >= object->vertex_count) { + g_warning("MAX: 0x08FE::0x0912: vertex index too high" + " (%d (0x%08x) >= %d)", + face->vertex_indices[j], face->vertex_indices[j], + object->vertex_count); + face->vertex_indices[j] = 0; + } + } + /* unknown for now */ + g3d_stream_read_int32_le(global->stream); + g3d_stream_read_int32_le(global->stream); + local->nb -= 20; + } + return TRUE; +} + +/* vertices */ +gboolean max_cb_0x08FE_0x0914(MaxGlobalData *global, MaxLocalData *local) +{ + guint32 num; + gint i, j; + G3DObject *object = (G3DObject *)local->object; + + g_return_val_if_fail(local->nb >= 4, FALSE); + g_return_val_if_fail(object != NULL, FALSE); + + /* vertices */ + num = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; +#if DEBUG > 0 + g_debug("|%s[VERT] %d vertices", debug_pad(local->level), num); +#endif + global->vertex_offset = object->vertex_count; + object->vertex_count += num; + object->vertex_data = g_realloc(object->vertex_data, + object->vertex_count * 3 * sizeof(G3DFloat)); + + for(i = 0; i < num; i ++) { + if(local->nb < 12) + return FALSE; + for(j = 0; j < 3; j ++) + object->vertex_data[(global->vertex_offset + i) * 3 + j] = + g3d_stream_read_float_le(global->stream); + local->nb -= 12; + } + return TRUE; +} + +/* texture vertices */ +gboolean max_cb_0x08FE_0x0916(MaxGlobalData *global, MaxLocalData *local) +{ + return max_cb_0x08FE_0x0128(global, local); +} + +/* texture triangles */ +gboolean max_cb_0x08FE_0x0918(MaxGlobalData *global, MaxLocalData *local) +{ + guint32 cnttris = 0; + + while(local->nb >= 12) { + cnttris ++; + + g3d_stream_read_int32_le(global->stream); + g3d_stream_read_int32_le(global->stream); + g3d_stream_read_int32_le(global->stream); + local->nb -= 12; + } + +#if DEBUG > 0 + g_debug("|%s[TEXI] %d textured triangles (%d bytes left)", + debug_pad(local->level), cnttris, local->nb); +#endif + return 0; +} + +/* vertices */ +gboolean max_cb_0x08FE_0x2394(MaxGlobalData *global, MaxLocalData *local) +{ + return max_cb_0x08FE_0x0914(global, local); +} + +/* triangles */ +gboolean max_cb_0x08FE_0x2396(MaxGlobalData *global, MaxLocalData *local) +{ + guint32 num; + gint32 i, j; + G3DObject *object = (G3DObject *)local->object; + G3DFace *face; + G3DMaterial *mat; + + mat = (G3DMaterial *)g_slist_nth_data(global->model->materials, + (global->vertex_offset ? 1 : 0)); + + g_return_val_if_fail(local->nb >= 4, FALSE); + g_return_val_if_fail(object != NULL, FALSE); + + /* faces */ + num = g3d_stream_read_int32_le(global->stream); + local->nb -= 4; +#if DEBUG > 0 + g_debug("|%s[TRIS] %d triangles", debug_pad(local->level), num); +#endif + for(i = 0; i < num; i ++) { + g_return_val_if_fail(local->nb >= 12, FALSE); + + face = g_new0(G3DFace, 1); + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + face->material = mat; + object->faces = g_slist_append(object->faces, face); + + g_return_val_if_fail(local->nb >= 12, FALSE); + for(j = 0; j < 3; j ++) { + face->vertex_indices[j] = + global->vertex_offset + + g3d_stream_read_int32_le(global->stream); + local->nb -= 4; + if(face->vertex_indices[j] >= object->vertex_count) { + g_warning("MAX: 0x08FE::0x2396: vertex index too high" + " (%d (0x%08x) >= %d)", + face->vertex_indices[j], face->vertex_indices[j], + object->vertex_count); + face->vertex_indices[j] = 0; + } + } + } + return TRUE; +} + +/* material */ +gboolean max_cb_IDMATG_0x4000(MaxGlobalData *global, MaxLocalData *local) +{ + G3DMaterial *material; + + if(strcmp(global->subfile, "Scene") != 0) + return FALSE; + + material = g3d_material_new(); + material->name = g_strdup_printf("0x4000 material @ 0x%08x", + (guint32)g3d_stream_tell(global->stream)); + local->object = material; + global->model->materials = g_slist_append(global->model->materials, + material); + return TRUE; +} + +/* material name */ +gboolean max_cb_0x4000_0x4001(MaxGlobalData *global, MaxLocalData *local) +{ + guint32 len; + G3DMaterial *material = (G3DMaterial *)local->object; + + g_return_val_if_fail(material != NULL, FALSE); + if(material->name) + g_free(material->name); + len = local->nb / 2; + material->name = max_read_wchar(global->stream, len); + local->nb -= len * 2; +#if DEBUG > 0 + g_debug("|%s[MATN] %s", debug_pad(local->level), material->name); +#endif + return TRUE; +} + +/* material color */ +gboolean max_cb_0x4000_0x4030(MaxGlobalData *global, MaxLocalData *local) +{ + G3DMaterial *material = (G3DMaterial *)local->object; + + g_return_val_if_fail(material != NULL, FALSE); + g_return_val_if_fail(local->nb >= 16, FALSE); + + material->r = g3d_stream_read_float_le(global->stream); + material->g = g3d_stream_read_float_le(global->stream); + material->b = g3d_stream_read_float_le(global->stream); + material->a = g3d_stream_read_float_le(global->stream); + local->nb -= 16; +#if DEBUG > 0 + g_debug("|%s[MATC] %.2f, %.2f, %.2f, %.2f", debug_pad(local->level), + material->r, material->g, material->b, material->a); +#endif + return TRUE; +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_MAX_CALLBACKS_H +#define _IMP_MAX_CALLBACKS_H + +#include +#include +#include + +typedef struct { + G3DContext *context; + G3DModel *model; + G3DStream *stream; + const gchar *subfile; + + G3DObject *object; + guint32 vertex_offset; +} MaxGlobalData; + +typedef struct { + guint16 id; + gint32 parentid; + guint16 level; + gint32 nb; + gpointer object; +} MaxLocalData; + +typedef gboolean (* MaxCallback)(MaxGlobalData *global, MaxLocalData *local); + +/* callbacks */ + +gboolean max_cb_debug_int32(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_debug_string(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_debug_wchars(MaxGlobalData *global, MaxLocalData *local); + +gboolean max_cb_IDROOT_IDGEOM(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_IDMATG_0x4000(MaxGlobalData *global, MaxLocalData *local); + +gboolean max_cb_IDGEOM_0x08FE(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_IDGEOM_0x0962(MaxGlobalData *global, MaxLocalData *local); + +gboolean max_cb_IDFILE_0x1201(MaxGlobalData *global, MaxLocalData *local); + +gboolean max_cb_0x0001_0x0005(MaxGlobalData *global, MaxLocalData *local); + +gboolean max_cb_0x0118_0x0110(MaxGlobalData *global, MaxLocalData *local); + +gboolean max_cb_0x08FE_0x0100(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_0x08FE_0x010A(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_0x08FE_0x011A(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_0x08FE_0x0128(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_0x08FE_0x012B(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_0x08FE_0x0912(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_0x08FE_0x0914(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_0x08FE_0x0916(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_0x08FE_0x0918(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_0x08FE_0x2394(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_0x08FE_0x2396(MaxGlobalData *global, MaxLocalData *local); + +gboolean max_cb_0x4000_0x4001(MaxGlobalData *global, MaxLocalData *local); +gboolean max_cb_0x4000_0x4030(MaxGlobalData *global, MaxLocalData *local); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_MAX_CHUNKS_H +#define _IMP_MAX_CHUNKS_H + +#include + +#include "imp_max_callbacks.h" + +#define IDNONE -1 +#define IDSOME -2 +#define IDROOT -3 +#define IDGEOM -4 +#define IDMATG -5 +#define IDFILE -6 + +#define ID_IS_ROOT(pid) \ + (((pid) == 0x2001) || ((pid) == 0x2003) || ((pid) == 0x2004) || \ + ((pid) == 0x2006) || ((pid) == 0x2008) || ((pid) == 0x2009) || \ + ((pid) == 0x200A) || ((pid) == 0x200B)) +#define ID_IS_GEOM(pid) \ + ((((pid) >= 0x0010) && ((pid) <= 0x0011)) || \ + (((pid) >= 0x0013) && ((pid) <= 0x0014)) || \ + (((pid) >= 0x0016) && ((pid) <= 0x001C)) || \ + ((pid) == 0x0023) || ((pid) == 0x0026)) +#define ID_IS_MATG(pid) \ + (((pid) == 0x0002) || \ + (((pid) >= 0x0004) && ((pid) <= 0x000F))) +#define ID_IS_FILE(pid) \ + (((pid) == 0x0003) || ((pid) == 0x0400)) + +typedef struct { + gint32 id; + gint32 parentid; + char *desc; + MaxCallback callback; +} MaxChunk; + +/* container chunks */ +static MaxChunk max_cnt_chunks[] = { + { 0x0118, 0x08FE, "face", NULL }, + + { 0x08FE, IDGEOM, "mesh", max_cb_IDGEOM_0x08FE }, + { 0x0901, IDGEOM, "matrix or not", NULL }, + { 0x0906, IDGEOM, "matrix or not", NULL }, + + { 0x092C, 0x08FE, "mesh bit map group", NULL }, + { 0x092D, 0x08FE, "mesh bit map group", NULL }, + { 0x092E, 0x08FE, "mesh bit map group", NULL }, + + { 0x2001, IDNONE, "3ds MAX x.x root node", NULL }, + { 0x2003, IDNONE, "3ds MAX x.x root node", NULL }, + { 0x2004, IDNONE, "3ds MAX 3.x root node", NULL }, + { 0x2006, IDNONE, "3ds MAX 4.x root node", NULL }, + { 0x2008, IDNONE, "3ds MAX 5.x root node", NULL }, + { 0x2009, IDNONE, "3ds MAX 6.x root node", NULL }, + { 0x200A, IDNONE, "3ds MAX 7.x root node", NULL }, + { 0x200B, IDNONE, "3ds MAX 8.x root node", NULL }, + { 0x2038, IDNONE, "DLL directory entry", NULL }, + { 0x2040, IDNONE, "class directory entry", NULL }, + { 0x2100, IDNONE, "class data entry", NULL }, + + { 0x4000, IDMATG, "material group", max_cb_IDMATG_0x4000 }, + + { IDNONE, IDSOME, NULL, NULL } +}; + +/* data chunks */ +static MaxChunk max_chunks[] = { + /* IDGEOM */ + { 0x08FF, IDGEOM, "mesh something", max_cb_debug_int32 }, + { 0x0900, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x0902, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x0903, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x0904, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x0960, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x0962, IDGEOM, "object name", max_cb_IDGEOM_0x0962 }, + { 0x0963, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x096A, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x096B, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x096C, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x0974, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x0975, IDGEOM, "object flag", NULL }, + { 0x0978, IDGEOM, "object flag", NULL }, + { 0x099C, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x09BA, IDGEOM, "object flag", NULL }, + { 0x09CE, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x0A28, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x0A32, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x0ABE, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x2500, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x2501, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x2505, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x2532, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x3002, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x3003, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x3005, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x4020, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x4024, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x4025, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x4026, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x402C, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x402D, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x4030, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x4034, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x4038, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x403B, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x7230, IDGEOM, "object something", max_cb_debug_int32 }, + { 0x7231, IDGEOM, "object something", max_cb_debug_int32 }, + /* IDMATG */ + { 0x5300, IDMATG, "material something", max_cb_debug_int32 }, + /* IDFILE */ + { 0x1201, IDFILE, "file dimensions + unknown", max_cb_IDFILE_0x1201 }, + { 0x1230, IDFILE, "file name", max_cb_debug_wchars }, + { 0x1240, IDFILE, "file type", max_cb_debug_wchars }, + /* 0x0000 */ + { 0x0005, 0x0000, "[DEBUG] big chunk", NULL }, + { 0x0009, 0x0000, "[DEBUG] 16", max_cb_debug_int32 }, + { 0x000A, 0x0000, "[DEBUG] 3n, 11", NULL }, + { 0x000B, 0x0000, "[DEBUG] 24", max_cb_debug_int32 }, + { 0x000C, 0x0000, "[DEBUG] 10", NULL }, + { 0x2035, 0x0000, "[DEBUG] n * 4", max_cb_debug_int32 }, + /* 0x0001 */ + { 0x0005, 0x0001, "properties", max_cb_0x0001_0x0005 }, + { 0x1000, 0x0003, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x2045, 0x0001, "[DEBUG] 4", max_cb_debug_int32 }, + /* 0x0002 */ + { 0x2045, 0x0002, "[DEBUG] 4", max_cb_debug_int32 }, + /* 0x0003 */ + { 0x2045, 0x0003, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x1030, 0x0003, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x1040, 0x0003, "[DEBUG] 4", max_cb_debug_int32 }, + /* 0x0004 */ + { 0x2035, 0x0004, "[DEBUG] n * 4", max_cb_debug_int32 }, + { 0x2500, 0x0004, "[DEBUG] 8", max_cb_debug_int32 }, + { 0x2501, 0x0004, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x2532, 0x0004, "[DEBUG] flag", NULL }, + { 0x2533, 0x0004, "[DEBUG] flag", NULL }, + { 0x2534, 0x0004, "[DEBUG] flag", NULL }, + { 0x3002, 0x0004, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x3003, 0x0004, "[DEBUG] 8", max_cb_debug_int32 }, + { 0x3005, 0x0004, "[DEBUG] 4", max_cb_debug_int32 }, + /* 0x0010 */ + { 0x0962, 0x0010, "name", max_cb_debug_wchars }, + /* 0x0013 */ + { 0x1000, 0x0013, "text", max_cb_debug_string }, + /* 0x0019 */ + { 0x0110, 0x0019, "name", max_cb_debug_wchars }, + { 0x0120, 0x0019, "name", max_cb_debug_wchars }, + /* 0x0022 */ + { 0x0110, 0x0022, "text", max_cb_debug_wchars }, + { 0x0120, 0x0022, "type data", max_cb_debug_int32 }, + { 0x0130, 0x0022, "type data", max_cb_debug_int32 }, + /* 0x0027 */ + { 0x0110, 0x0027, "text", max_cb_debug_wchars }, + /* 0x002C */ + { 0x0110, 0x002C, "text", max_cb_debug_wchars }, + /* 0x002E */ + { 0x0110, 0x002E, "text", max_cb_debug_wchars }, + { 0x0120, 0x002E, "type data", max_cb_debug_int32 }, + { 0x0130, 0x002E, "type data", max_cb_debug_int32 }, + { 0x0140, 0x002E, "type data", max_cb_debug_int32 }, + /* 0x0110 */ + { 0x0120, 0x0110, "something", max_cb_debug_int32 }, + { 0x0130, 0x0110, "something", max_cb_debug_int32 }, + /* 0x0118 */ + { 0x0100, 0x0118, "face data", max_cb_debug_int32 }, + { 0x0110, 0x0118, "face indices", max_cb_0x0118_0x0110 }, + + /* 0x08FE */ + { 0x0100, 0x08FE, "vertices", max_cb_0x08FE_0x0100 }, + { 0x0108, 0x08FE, "mesh data", max_cb_debug_int32 }, + { 0x010A, 0x08FE, "lines", max_cb_0x08FE_0x010A }, + { 0x0110, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x0114, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x011A, 0x08FE, "polygons", max_cb_0x08FE_0x011A }, + { 0x0120, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x0124, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x0128, 0x08FE, "texture vertices", max_cb_0x08FE_0x0128 }, + { 0x012B, 0x08FE, "texture indices", max_cb_0x08FE_0x012B }, + { 0x0130, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x0140, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x0150, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 }, + { 0x0906, 0x08FE, "mesh something", max_cb_debug_int32 }, + { 0x0908, 0x08FE, "mesh something", max_cb_debug_int32 }, + { 0x0912, 0x08FE, "triangles", max_cb_0x08FE_0x0912 }, + { 0x0914, 0x08FE, "vertices", max_cb_0x08FE_0x0914 }, + { 0x0916, 0x08FE, "texture vertices", max_cb_0x08FE_0x0916 }, + { 0x0918, 0x08FE, "texture indices (tris)", max_cb_0x08FE_0x0918 }, + { 0x0924, 0x08FE, "mesh something", max_cb_debug_int32 }, + { 0x0928, 0x08FE, "mesh something", max_cb_debug_int32 }, + { 0x092A, 0x08FE, "mesh something", max_cb_debug_int32 }, + { 0x0959, 0x08FE, "mesh something", max_cb_debug_int32 }, + { 0x2394, 0x08FE, "vertices", max_cb_0x08FE_0x2394 }, + { 0x2396, 0x08FE, "triangles", max_cb_0x08FE_0x2396 }, + { 0x2398, 0x08FE, "mesh something", max_cb_debug_int32 }, + /* 0x0901 */ + { 0x300D, 0x0901, "x32", max_cb_debug_int32 }, + { 0x300E, 0x0901, "x32", max_cb_debug_int32 }, + { 0x300F, 0x0901, "x32", max_cb_debug_int32 }, + { 0x3010, 0x0901, "x32", max_cb_debug_int32 }, + { 0x3012, 0x0901, "x32", max_cb_debug_int32 }, + { 0x3013, 0x0901, "x32", max_cb_debug_int32 }, + { 0x3014, 0x0901, "x32", max_cb_debug_int32 }, + { 0x3015, 0x0901, "x32", max_cb_debug_int32 }, + { 0x3016, 0x0901, "x32", max_cb_debug_int32 }, + { 0x3017, 0x0901, "x32", max_cb_debug_int32 }, + { 0x3019, 0x0901, "x32", max_cb_debug_int32 }, + { 0x301A, 0x0901, "x32", max_cb_debug_int32 }, + { 0x301B, 0x0901, "x32", max_cb_debug_int32 }, + { 0x301C, 0x0901, "x32", max_cb_debug_int32 }, + { 0x301D, 0x0901, "x32", max_cb_debug_int32 }, + { 0x301E, 0x0901, "x32", max_cb_debug_int32 }, + /* 0x0906 */ + { 0x300D, 0x0906, "x32", max_cb_debug_int32 }, + { 0x300E, 0x0906, "x32", max_cb_debug_int32 }, + { 0x300F, 0x0906, "x32", max_cb_debug_int32 }, + { 0x3010, 0x0906, "x32", max_cb_debug_int32 }, + { 0x3012, 0x0906, "x32", max_cb_debug_int32 }, + { 0x3013, 0x0906, "x32", max_cb_debug_int32 }, + { 0x3014, 0x0906, "x32", max_cb_debug_int32 }, + { 0x3015, 0x0906, "x32", max_cb_debug_int32 }, + { 0x3016, 0x0906, "x32", max_cb_debug_int32 }, + { 0x3017, 0x0906, "x32", max_cb_debug_int32 }, + { 0x3019, 0x0906, "x32", max_cb_debug_int32 }, + { 0x301A, 0x0906, "x32", max_cb_debug_int32 }, + { 0x301B, 0x0906, "x32", max_cb_debug_int32 }, + { 0x301C, 0x0906, "x32", max_cb_debug_int32 }, + { 0x301D, 0x0906, "x32", max_cb_debug_int32 }, + { 0x301E, 0x0906, "x32", max_cb_debug_int32 }, + /* 0x092C */ + { 0x2700, 0x092C, "bit map", NULL }, + /* 0x092D */ + { 0x2700, 0x092D, "bit map", NULL }, + /* 0x092E */ + { 0x2700, 0x092E, "bit map", NULL }, + /* 0x0AF0 */ + { 0x0001, 0x0AF0, "something", max_cb_debug_int32 }, + { 0x0002, 0x0AF0, "something", max_cb_debug_int32 }, + { 0x0003, 0x0AF0, "something", max_cb_debug_int32 }, + { 0x0004, 0x0AF0, "something", max_cb_debug_int32 }, + { 0x0005, 0x0AF0, "something", max_cb_debug_int32 }, + { 0x0006, 0x0AF0, "something", max_cb_debug_int32 }, + { 0x0007, 0x0AF0, "something", max_cb_debug_int32 }, + { 0x0008, 0x0AF0, "something", max_cb_debug_int32 }, + /* 2500 */ + { 0x2510, 0x2500, "something", max_cb_debug_int32 }, + { 0x2511, 0x2500, "something", max_cb_debug_int32 }, + { 0x2513, 0x2500, "something", max_cb_debug_int32 }, + /* 2512 */ + { 0x0530, 0x2512, "something", max_cb_debug_int32 }, + { 0x0540, 0x2512, "something", max_cb_debug_int32 }, + { 0x0550, 0x2512, "something", max_cb_debug_int32 }, + { 0x0560, 0x2512, "something", max_cb_debug_int32 }, + /* 0x39BF */ + { 0x0100, 0x39BF, "text", max_cb_debug_wchars }, + /* 0x4000 */ + { 0x4001, 0x4000, "material name", max_cb_0x4000_0x4001 }, + { 0x4003, 0x4000, "material something (4)", max_cb_debug_int32 }, + { 0x4020, 0x4000, "material something (4)", max_cb_debug_int32 }, + { 0x4030, 0x4000, "material color", max_cb_0x4000_0x4030 }, + + /* IDSOME */ + { 0x2034, IDSOME, "init something", max_cb_debug_int32 }, + { 0x2035, IDSOME, "init something", max_cb_debug_int32 }, + + { IDNONE, IDSOME, NULL, NULL } +}; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_maya/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_maya +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_maya_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_maya_la_OBJECTS = imp_maya.lo imp_maya_callbacks.lo \ + imp_maya_obj.lo imp_maya_var.lo +imp_maya_la_OBJECTS = $(am_imp_maya_la_OBJECTS) +#am_imp_maya_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_maya_la_SOURCES) +DIST_SOURCES = $(imp_maya_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_maya.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_maya_la_SOURCES = imp_maya.c imp_maya_chunks.h \ + imp_maya_callbacks.c imp_maya_callbacks.h \ + imp_maya_obj.c imp_maya_obj.h \ + imp_maya_var.c imp_maya_var.h + +imp_maya_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_maya.la: $(imp_maya_la_OBJECTS) $(imp_maya_la_DEPENDENCIES) + $(LINK) $(am_imp_maya_la_rpath) $(imp_maya_la_OBJECTS) $(imp_maya_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_maya.Plo +include ./$(DEPDIR)/imp_maya_callbacks.Plo +include ./$(DEPDIR)/imp_maya_obj.Plo +include ./$(DEPDIR)/imp_maya_var.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_maya.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_maya_la_SOURCES = imp_maya.c imp_maya_chunks.h \ + imp_maya_callbacks.c imp_maya_callbacks.h \ + imp_maya_obj.c imp_maya_obj.h \ + imp_maya_var.c imp_maya_var.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_maya +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_maya_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_maya_la_OBJECTS = imp_maya.lo imp_maya_callbacks.lo \ + imp_maya_obj.lo imp_maya_var.lo +imp_maya_la_OBJECTS = $(am_imp_maya_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_maya_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_maya_la_SOURCES) +DIST_SOURCES = $(imp_maya_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_maya.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_maya_la_SOURCES = imp_maya.c imp_maya_chunks.h \ + imp_maya_callbacks.c imp_maya_callbacks.h \ + imp_maya_obj.c imp_maya_obj.h \ + imp_maya_var.c imp_maya_var.h + +imp_maya_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_maya.la: $(imp_maya_la_OBJECTS) $(imp_maya_la_DEPENDENCIES) + $(LINK) $(am_imp_maya_la_rpath) $(imp_maya_la_OBJECTS) $(imp_maya_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya_callbacks.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya_obj.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya_var.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include + +#include +#include + +#include "imp_maya_chunks.h" + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + G3DIffGlobal *global; + G3DIffLocal *local; + guint32 id; + gsize len; + + if(!g3d_iff_check(stream, &id, &len) || + (id != G3D_IFF_MKID('M','a','y','a'))) { + g_warning("file is not an Maya file %s", stream->uri); + return FALSE; + } + + local = g_new0(G3DIffLocal, 1); + global = g_new0(G3DIffGlobal, 1); + + global->context = context; + global->model = model; + global->stream = stream; + + local->parent_id = id; + local->nb = len; + + g3d_iff_read_ctnr(global, local, maya_chunks, G3D_IFF_PAD4); + + g_free(local); + g_free(global); + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("Maya models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("mb", ":", 0); +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include +#include +#include +#include +#include +#include +#include + +#include "imp_maya_obj.h" +#include "imp_maya_var.h" + +/* compound? */ +gboolean maya_cb_CMPD(G3DIffGlobal *global, G3DIffLocal *local) +{ + gint32 flags, i; + gdouble *val; + gchar *var; + gchar *padding = " "; + + if(local->nb < 26) + { + g_warning("[Maya][CMPD] size: %d", local->nb); + return FALSE; + } + + /* var */ + var = g_new0(gchar, local->nb - 25); + g3d_stream_read(global->stream, var, local->nb - 25); + local->nb -= (local->nb - 25); + + /* flags ? */ + flags = g3d_stream_read_int8(global->stream); + local->nb -= 1; + + val = g_new0(gdouble, 3); + + for(i = 0; i < 3; i ++) + { + val[i] = g3d_stream_read_double_be(global->stream); + local->nb -= 8; + } + + g_debug("\\%s[Maya][CMPD] %s = [%g %g %g]", + padding + (strlen(padding) - local->level), + var, + val[0], val[1], val[2]); + + if(local->object) + maya_var_set((MayaObject *)local->object, var, val); + else + g_free(val); + + g_free(var); + + return TRUE; +} + +/* creator */ +gboolean maya_cb_CREA(G3DIffGlobal *global, G3DIffLocal *local) +{ + MayaObject *obj; + gint32 max_len, flags; + gchar *buffer, *name; + gchar *padding = " "; + + /* flags ? */ + flags = g3d_stream_read_int8(global->stream); + local->nb -= 1; + + max_len = local->nb; + buffer = g_malloc(max_len + 1); + + /* object name */ + local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len); + name = g_strdup(buffer); + + obj = (MayaObject *)local->object; + if(obj) + obj->name = g_strdup(buffer); + + /* parent name */ + if(local->nb > 0) + local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len); + else + *buffer = '\0'; + + if(obj && *buffer) + obj->parent = g_strdup(buffer); + + g_debug("\\%s[Maya][CREA] %s (%s)", + padding + (strlen(padding) - local->level), + name, *buffer ? buffer : "none"); + + g_free(buffer); + g_free(name); + + return TRUE; +} + +gboolean maya_cb_CWFL(G3DIffGlobal *global, G3DIffLocal *local) +{ + gchar *buffer, *name; + gchar *padding = " "; + guint32 flags, max_len; + + /* flags ? */ + flags = g3d_stream_read_int8(global->stream); + local->nb -= 1; + + max_len = local->nb; + buffer = g_malloc(max_len + 1); + + local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len); + name = g_strdup(buffer); + + local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len); + + g_debug("\\%s[Maya][CWFL] %s; %s (flags: %u, %d bytes left)", + padding + (strlen(padding) - local->level), + name, buffer, flags, local->nb); + + g_free(name); + g_free(buffer); + + return TRUE; +} + +/* double # */ +gboolean maya_cb_DBLn(G3DIffGlobal *global, G3DIffLocal *local) +{ + gint32 len, flags, ndbl, i; + gdouble *val; + gchar *var; + gchar *padding = " "; + + len = local->nb - 9; + var = g_malloc(len); + g3d_stream_read(global->stream, var, len); + local->nb -= len; + + flags = g3d_stream_read_int8(global->stream); + local->nb -= 1; + + ndbl = local->nb / 8; + val = g_new0(gdouble, ndbl); + for(i = 0; i < ndbl; i ++) + { + val[i] = g3d_stream_read_double_be(global->stream); + local->nb -= 8; + } + + g_debug("\\%s[Maya][DBL#] %s (%d doubles) (0x%02X)", + padding + (strlen(padding) - local->level), + var, ndbl, flags); + + if(local->object) + maya_var_set((MayaObject *)local->object, var, val); + else + g_free(val); + + g_free(var); + + return TRUE; +} + +/* double 2 */ +gboolean maya_cb_DBL2(G3DIffGlobal *global, G3DIffLocal *local) +{ + gint32 len, flags; + gdouble *val; + gchar *var; + gchar *padding = " "; + + len = local->nb - 17; + var = g_malloc(len); + g3d_stream_read(global->stream, var, len); + local->nb -= len; + + flags = g3d_stream_read_int8(global->stream); + local->nb -= 1; + + val = g_new0(gdouble, 2); + val[0] = g3d_stream_read_double_be(global->stream); + val[1] = g3d_stream_read_double_be(global->stream); + local->nb -= 16; + + g_debug("\\%s[Maya][DBL2] %s = (%g,%g) (0x%02X)", + padding + (strlen(padding) - local->level), + var, val[0], val[1], flags); + + if(local->object) + maya_var_set((MayaObject *)local->object, var, val); + else + g_free(val); + + g_free(var); + + return TRUE; +} + +/* double 3 */ +gboolean maya_cb_DBL3(G3DIffGlobal *global, G3DIffLocal *local) +{ + gint32 len, flags; + gdouble *val; + gchar *var; + gchar *padding = " "; + + len = local->nb - 25; + var = g_malloc(len); + g3d_stream_read(global->stream, var, len); + local->nb -= len; + + flags = g3d_stream_read_int8(global->stream); + local->nb -= 1; + + val = g_new0(gdouble, 3); + val[0] = g3d_stream_read_double_be(global->stream); + val[1] = g3d_stream_read_double_be(global->stream); + val[2] = g3d_stream_read_double_be(global->stream); + local->nb -= 24; + + g_debug("\\%s[Maya][DBL3] %s = (%g,%g,%g) (0x%02X)", + padding + (strlen(padding) - local->level), + var, val[0], val[1], val[2], flags); + + if(local->object) + maya_var_set((MayaObject *)local->object, var, val); + else + g_free(val); + + g_free(var); + + return TRUE; +} + +/* double */ +gboolean maya_cb_DBLE(G3DIffGlobal *global, G3DIffLocal *local) +{ + gint32 len, flags; + gdouble val; + gchar *var; + gchar *padding = " "; + + len = local->nb - 9; + if(len <= 0) + { + g_warning("[Maya][DBLE] length of chunk: %d", local->nb); + return FALSE; + } + + var = g_malloc(len); + g3d_stream_read(global->stream, var, len); + local->nb -= len; + + flags = g3d_stream_read_int8(global->stream); + local->nb -= 1; + + val = g3d_stream_read_double_be(global->stream); + local->nb -= 8; + + g_debug("\\%s[Maya][DBLE] %s = %g (0x%02X)", + padding + (strlen(padding) - local->level), + var, val, flags); + + if(local->object) + maya_var_set_double((MayaObject *)local->object, var, val); + + g_free(var); + + return TRUE; +} + +/* mesh object */ +gboolean maya_cb_DMSH(G3DIffGlobal *global, G3DIffLocal *local) +{ + MayaObject *obj; + G3DObject *object, *parent; + G3DMaterial *material; + + if(local->finalize) + { + obj = (MayaObject *)local->object; + + object = (G3DObject *)obj->user_data; + object->name = obj->name ? g_strdup(obj->name) : "(unnamed mesh)"; + + if(obj->parent) + { + parent = g3d_model_get_object_by_name(global->model, obj->parent); + if(parent) + object->transformation = parent->transformation; + } + + maya_obj_add_to_tree(obj, global->model, object); + maya_obj_free(obj); + } + else + { + obj = maya_obj_new(); + local->object = obj; + + material = g3d_material_new(); + material->name = g_strdup("(default material)"); + + object = g_new0(G3DObject, 1); + object->materials = g_slist_append(object->materials, material); + + obj->user_data = object; + } + + return TRUE; +} + +/* float 3 */ +gboolean maya_cb_FLT3(G3DIffGlobal *global, G3DIffLocal *local) +{ + gint32 len, flags; + G3DFloat *val; + gchar *var; + gchar *padding = " "; + + len = local->nb - 13; + var = g_malloc(len); + g3d_stream_read(global->stream, var, len); + local->nb -= len; + + flags = g3d_stream_read_int8(global->stream); + local->nb -= 1; + + val = g_new0(G3DFloat, 3); + val[0] = g3d_stream_read_float_be(global->stream); + val[1] = g3d_stream_read_float_be(global->stream); + val[2] = g3d_stream_read_float_be(global->stream); + local->nb -= 12; + + g_debug("\\%s[Maya][DBL3] %s = (%g; %g; %g) (0x%02X)", + padding + (strlen(padding) - local->level), + var, val[0], val[1], val[2], flags); + + if(local->object) + maya_var_set((MayaObject *)local->object, var, val); + else + g_free(val); + + g_free(var); + + return TRUE; +} + +/* matrix */ +gboolean maya_cb_MATR(G3DIffGlobal *global, G3DIffLocal *local) +{ + gint32 flags, i; + G3DFloat *val; + gchar *var; + gchar *padding = " "; + + if(local->nb <= 129) + { + g_warning("[Maya][MATR] matrix size: %d", local->nb); + return FALSE; + } + + /* var */ + var = g_new0(gchar, local->nb - 129); + g3d_stream_read(global->stream, var, local->nb - 129); + local->nb -= (local->nb - 129); + + /* flags ? */ + flags = g3d_stream_read_int8(global->stream); + local->nb -= 1; + + val = g_new0(G3DFloat, 16); + + for(i = 0; i < 16; i ++) + { + val[i] = (G3DFloat)g3d_stream_read_double_be(global->stream); + local->nb -= 8; + } + + g_debug("\\%s[Maya][MATR] %s = \n" + "%f %f %f %f\n" + "%f %f %f %f\n" + "%f %f %f %f\n" + "%f %f %f %f", + padding + (strlen(padding) - local->level), + var, + val[0 * 4 + 0], val[1 * 4 + 0], val[2 * 4 + 0], val[3 * 4 + 0], + val[0 * 4 + 1], val[1 * 4 + 1], val[2 * 4 + 1], val[3 * 4 + 1], + val[0 * 4 + 2], val[1 * 4 + 2], val[2 * 4 + 2], val[3 * 4 + 2], + val[0 * 4 + 3], val[1 * 4 + 3], val[2 * 4 + 3], val[3 * 4 + 3]); + + if(local->object) + maya_var_set((MayaObject *)local->object, var, val); + else + g_free(val); + + g_free(var); + + return TRUE; +} + +/* mesh */ +gboolean maya_cb_MESH(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DObject *object; + G3DMaterial *material; + G3DFace *face; + gint32 x1, x2, x3, x4, i, i1, i2; + + x1 = g3d_stream_read_int16_be(global->stream); + x2 = g3d_stream_read_int16_be(global->stream); + x3 = g3d_stream_read_int16_be(global->stream); + x4 = g3d_stream_read_int16_be(global->stream); + local->nb -= 8; + + object = (G3DObject *)((MayaObject *)local->object)->user_data; + material = (G3DMaterial *)g_slist_nth_data(object->materials, 0); + + if(x1 == 0x6369) + { + object->vertex_count = x4 / 3; + object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3); + + for(i = 0; i < object->vertex_count; i ++) + { + object->vertex_data[i * 3 + 0] = g3d_stream_read_float_be(global->stream); + object->vertex_data[i * 3 + 1] = g3d_stream_read_float_be(global->stream); + object->vertex_data[i * 3 + 2] = g3d_stream_read_float_be(global->stream); + local->nb -= 12; + } + + x3 = g3d_stream_read_int16_be(global->stream); + x4 = g3d_stream_read_int16_be(global->stream); + local->nb -= 4; +#if 0 + g_debug("[Maya][MESH] %d %d", x3, x4); +#endif + i1 = -1; + i2 = -1; + for(i = 0; i < x4 / 2; i ++) + { + if(i1 == -1) + { + i1 = g3d_stream_read_int32_be(global->stream) & 0xFFFFFF; + i2 = g3d_stream_read_int32_be(global->stream) & 0xFFFFFF; + local->nb -= 8; + } + else + { + face = g_new0(G3DFace, 1); + face->vertex_count = 4; + face->vertex_indices = g_new0(guint32, 4); + face->vertex_indices[0] = i1; + face->vertex_indices[1] = i2; + face->vertex_indices[2] = + g3d_stream_read_int32_be(global->stream) & 0xFFFFFF; + face->vertex_indices[3] = + g3d_stream_read_int32_be(global->stream) & 0xFFFFFF; + face->material = material; + local->nb -= 8; + i1 = face->vertex_indices[3]; + i2 = face->vertex_indices[2]; + + object->faces = g_slist_append(object->faces, face); + } + } + + x3 = g3d_stream_read_int16_be(global->stream); + x4 = g3d_stream_read_int16_be(global->stream); + local->nb -= 4; + } + return TRUE; +} + +/* poly cube */ +gboolean maya_cb_PCUB(G3DIffGlobal *global, G3DIffLocal *local) +{ + MayaObject *obj; + G3DObject *object; + G3DMaterial *material; + gdouble w, h, d; + + if(local->finalize) + { + obj = (MayaObject *)local->object; + g_return_val_if_fail(obj != NULL, FALSE); + + w = maya_var_get_double(obj, "w", 1.0); + h = maya_var_get_double(obj, "h", 1.0); + d = maya_var_get_double(obj, "d", 1.0); + + material = g3d_material_new(); + object = g3d_primitive_box(w, h, d, material); + object->name = obj->name ? g_strdup(obj->name) : + g_strdup("(unnamed cube)"); + + object->materials = g_slist_append(object->materials, material); + maya_obj_add_to_tree(obj, global->model, object); + + /* destroy object */ + maya_obj_free(obj); + } + else + { + /* create object */ + obj = maya_obj_new(); + local->object = obj; + } + + return TRUE; +} + +/* cylinder */ +gboolean maya_cb_PCYL(G3DIffGlobal *global, G3DIffLocal *local) +{ + MayaObject *obj; + G3DObject *object; + G3DMaterial *material; + gdouble h, r; + guint32 s; + + if(local->finalize) { + obj = (MayaObject *)local->object; + g_return_val_if_fail(obj != NULL, FALSE); + + h = maya_var_get_double(obj, "h", 1.0); + r = maya_var_get_double(obj, "r", 0.5); + s = MAX(3, (guint32)maya_var_get_double(obj, "sx", 20)); + + material = g3d_material_new(); + object = g3d_primitive_cylinder(r, h, s, TRUE, TRUE, material); + if(object) { + object->name = obj->name ? g_strdup(obj->name) : + g_strdup("(unnamed cylinder)"); + + object->materials = g_slist_append(object->materials, material); + maya_obj_add_to_tree(obj, global->model, object); + } + /* destroy object */ + maya_obj_free(obj); + } else { + /* create object */ + obj = maya_obj_new(); + local->object = obj; + } + return TRUE; +} + +/* string */ +gboolean maya_cb_STR_(G3DIffGlobal *global, G3DIffLocal *local) +{ + gchar *buffer, *var; + gchar *padding = " "; + + /* variable */ + buffer = g_malloc(local->nb); + local->nb -= g3d_stream_read_cstr(global->stream, buffer, local->nb); + var = g_strdup(buffer); + + /* value */ + local->nb -= g3d_stream_read_cstr(global->stream, buffer, local->nb); + + g_debug("\\%s[Maya][STR ] %s = '%.*s' (%d characters)", + padding + (strlen(padding) - local->level), + var, 40, buffer, (int) strlen(buffer)); + + if(local->object) + maya_var_set((MayaObject *)local->object, var, g_strdup(buffer)); + + g_free(buffer); + g_free(var); + + return TRUE; +} + +/* transformation */ +gboolean maya_cb_XFRM(G3DIffGlobal *global, G3DIffLocal *local) +{ + MayaObject *obj; + G3DObject *object; + G3DTransformation *tf; + gdouble *val; + + if(local->finalize) + { + obj = (MayaObject *)local->object; + + object = maya_obj_to_g3d(obj); + + tf = g_new0(G3DTransformation, 1); + g3d_matrix_identity(tf->matrix); + + val = maya_var_get(obj, "t"); + if(val) + g3d_matrix_translate(val[0], val[1], val[2], tf->matrix); + + val = maya_var_get(obj, "r"); + if(val) + g3d_matrix_rotate_xyz(val[0], val[1], val[2], tf->matrix); + + val = maya_var_get(obj, "s"); + if(val) + g3d_matrix_scale(val[0], val[1], val[2], tf->matrix); + + /* g3d_matrix_dump(tf->matrix); */ + + object->transformation = tf; + + maya_obj_add_to_tree(obj, global->model, object); + + maya_obj_free(obj); + } + else + { + obj = maya_obj_new(); + local->object = obj; + } + + return TRUE; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_MAYA_CALLBACKS_H +#define _IMP_MAYA_CALLBACKS_H + +#include + +gboolean maya_cb_CMPD(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_CREA(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_CWFL(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_DBLn(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_DBL2(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_DBL3(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_DBLE(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_DMSH(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_FLT3(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_MATR(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_MESH(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_PCUB(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_PCYL(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_STR_(G3DIffGlobal *global, G3DIffLocal *local); +gboolean maya_cb_XFRM(G3DIffGlobal *global, G3DIffLocal *local); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_MAYA_CHUNKS_H +#define _IMP_MAYA_CHUNKS_H + +#include + +#include "imp_maya_callbacks.h" + +static G3DIffChunkInfo maya_chunks[] = { + { "ATTR", "unknown", 0, NULL }, + { "AUDI", "audio", 1, NULL }, /* FOR4 */ + { "AUNI", "angle unit", 0, NULL }, + { "BRSH", "brush", 1, NULL }, /* FOR4 */ + { "CHNG", "changes", 0, NULL }, + { "CMP#", "unknown", 0, NULL }, + { "CMPD", "compound", 0, maya_cb_CMPD }, + { "CONN", "connection list", 1, NULL }, /* FOR4 */ + { "CONS", "construction", 1, NULL }, /* LIS4 */ + { "CWFL", "connect attr", 0, maya_cb_CWFL }, + { "CREA", "create node", 0, maya_cb_CREA }, + { "DBL#", "double #", 0, maya_cb_DBLn }, + { "DBL2", "double 2", 0, maya_cb_DBL2 }, + { "DBL3", "double 3", 0, maya_cb_DBL3 }, + { "DBLE", "double", 0, maya_cb_DBLE }, + { "DCAM", "camera", 1, NULL }, /* FOR4 */ + { "DECT", "delete component", 1, NULL }, /* FOR4 */ + { "DELA", "delete attribute", 1, NULL }, /* FOR4 */ + { "DELL", "delete list", 1, NULL }, /* LIS4 */ + { "DISC", "unknown", 0, NULL }, + { "DISL", "unknown", 1, NULL }, /* LIS4 */ + { "DMSH", "mesh", 1, maya_cb_DMSH }, + { "DMTI", "material info", 1, NULL }, /* FOR4 */ + { "DPLM", "layer manager", 1, NULL }, /* FOR4 */ + { "DSPL", "layer ?", 1, NULL }, /* FOR4 */ + { "FINF", "file information", 0, maya_cb_STR_ }, + { "FDFL", "flare ?", 1, NULL }, /* FOR4 */ + { "FLGS", "flags", 0, NULL }, + { "FLT2", "float 2", 0, NULL }, + { "FLT3", "float 3", 0, maya_cb_FLT3 }, + { "FMPT", "unknown", 1, NULL }, /* FOR4 */ + { "FNLD", "unknown", 1, NULL }, /* FOR4 */ + { "GPID", "group id", 1, NULL }, /* FOR4 */ + { "GRPP", "group parts", 1, NULL }, /* FOR4 */ + { "HEAD", "header", 1, NULL }, /* FOR4 */ + { "ICON", "icon", 0, NULL }, + { "INCL", "includes", 0, NULL }, + { "INFO", "information", 0, NULL }, + { "LUNI", "length unit", 0, NULL }, + { "MADE", "creation date", 0, NULL }, + { "MATR", "matrix", 0, maya_cb_MATR }, + { "MESH", "mesh", 0, maya_cb_MESH }, + { "NPLN", "unknown", 0, NULL }, + { "NRBS", "NURBS ?", 0, NULL }, + { "NSRF", "surface", 1, NULL }, /* FOR4 */ + { "OBJN", "unknown", 0, NULL }, + { "OBST", "unknown", 1, NULL }, /* FOR4 */ + { "PAUP", "poly auto proj", 1, NULL }, /* FOR4 */ + { "PBOP", "poly boolean operation", 1, NULL }, /* FOR4 */ + { "PBVL", "poly bevel", 1, NULL }, /* FOR4 */ + { "PCRE", "poly create face", 1, NULL }, /* FOR4 */ + { "PCTA", "poly rotate ?", 1, NULL }, /* FOR4 */ + { "PCTL", "poly translate ?", 1, NULL }, /* FOR4 */ + { "PCTU", "poly scale ?", 1, NULL }, /* FOR4 */ + { "PCUB", "poly cube", 1, maya_cb_PCUB }, + { "PCYL", "poly cylinder", 1, maya_cb_PCYL }, + { "PEXE", "poly extrude", 1, NULL }, /* FOR4 */ + { "PEXF", "poly extrude face", 1, NULL }, /* FOR4 */ + { "PFUV", "poly flip UV", 1, NULL }, /* FOR4 */ + { "PING", "unknown", 1, NULL }, /* FOR4 */ + { "PLUG", "plugin ?", 0, NULL }, + { "PMIR", "poly mirror", 1, NULL }, /* FOR4 */ + { "PMVE", "poly merge vertices", 1, NULL }, /* FOR4 */ + { "PPCT", "poly cut", 1, NULL }, /* FOR4 */ + { "PPIP", "poly pipe", 1, NULL }, /* FOR4 */ + { "PRNS", "unknown", 0, NULL }, + { "PRNT", "unknown", 0, NULL }, + { "PSEP", "poly separate", 1, NULL }, /* FOR4 */ + { "PSMF", "poly smooth face", 1, NULL }, /* FOR4 */ + { "PSOE", "poly soft edge", 1, NULL }, /* FOR4 */ + { "PSPH", "poly sphere", 1, NULL }, /* FOR4 */ + { "PSPL", "poly split", 1, NULL }, /* FOR4 */ + { "PTRI", "poly triangulate", 1, NULL }, /* FOR4 */ + { "PTUV", "poly tweak UV", 1, NULL }, /* FOR4 */ + { "PTWK", "poly tweak", 1, NULL }, /* FOR4 */ + { "PUNI", "poly unite", 1, NULL }, /* FOR4 */ + { "RANI", "anisotropic", 1, NULL }, /* FOR4 */ + { "RBLN", "unknown", 1, NULL }, /* FOR4 */ + { "RLAM", "lambert", 1, NULL }, /* FOR4 */ + { "RLLK", "light linker", 1, NULL }, /* FOR4 */ + { "RNDL", "render layer", 1, NULL }, /* FOR4 */ + { "RNLM", "render layer manager", 1, NULL }, /* FOR4 */ + { "RPHO", "phong ?", 1, NULL }, /* FOR4 */ + { "RPL2", "place texture", 1, NULL }, /* FOR4 */ + { "RPLD", "place texture", 1, NULL }, /* FOR4 */ + { "RPRJ", "projection", 1, NULL }, /* FOR4 */ + { "RTFT", "texture file", 1, NULL }, /* FOR4 */ + { "SCRP", "script", 1, NULL }, /* FOR4 */ + { "SHAD", "shadow", 1, NULL }, /* FOR4 */ + { "SLCT", "select", 0, NULL }, /* evil ;) */ + { "STR ", "string", 0, maya_cb_STR_ }, + { "TGEO", "transform geometry", 1, NULL }, /* FOR4 */ + { "TUNI", "time unit", 0, NULL }, + { "UVER", "minor version?", 0, NULL }, + { "VERS", "version", 0, NULL }, + { "XFRM", "transformation", 1, maya_cb_XFRM }, + + { NULL, NULL, 0, NULL } +}; + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include + +#include "imp_maya_obj.h" + +MayaObject *maya_obj_new(void) +{ + MayaObject *obj; + + obj = g_new0(MayaObject, 1); + obj->vars = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); + + return obj; +} + +void maya_obj_free(MayaObject *obj) +{ + g_hash_table_destroy(obj->vars); + if(obj->name) g_free(obj->name); + g_free(obj); +} + +G3DObject *maya_obj_to_g3d(MayaObject *obj) +{ + G3DObject *object; + + object = g_new0(G3DObject, 1); + object->name = obj->name ? g_strdup(obj->name) : "(unnamed)"; + + return object; +} + +static G3DObject *get_by_path(G3DModel *model, gchar *path) +{ + gchar **parts, **partp; + G3DObject *object = NULL; + GSList *olist; + + partp = parts = g_strsplit(path, "|", 0); + olist = model->objects; + while(*partp) + { + while(olist) + { + object = (G3DObject *)olist->data; + + if(strcmp(object->name, *partp) == 0) break; + + olist = olist->next; + object = NULL; + } + + if(object == NULL) return NULL; + + partp ++; + olist = object->objects; + } + + g_strfreev(parts); + + return object; +} + +gboolean maya_obj_add_to_tree(MayaObject *obj, G3DModel *model, + G3DObject *object) +{ + G3DObject *parent = NULL; + + if(obj->parent) + { + if(*(obj->parent) == '|') + parent = get_by_path(model, obj->parent + 1); + else + parent = g3d_model_get_object_by_name(model, obj->parent); + + if(parent == NULL) + g_warning( + "[Maya] maya_obj_add_to_tree: parent object '%s' not found", + obj->parent); + } + + if(parent != NULL) + parent->objects = g_slist_append(parent->objects, object); + else + model->objects = g_slist_append(model->objects, object); + + return TRUE; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_MAYA_OBJ_H +#define _IMP_MAYA_OBJ_H + +#include +#include + +typedef struct { + gchar *name; + gchar *parent; + GHashTable *vars; + gpointer user_data; +} MayaObject; + +MayaObject *maya_obj_new(void); +void maya_obj_free(MayaObject *obj); +G3DObject *maya_obj_to_g3d(MayaObject *obj); +gboolean maya_obj_add_to_tree(MayaObject *obj, G3DModel *model, + G3DObject *object); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include "imp_maya_obj.h" + +gboolean maya_var_set(MayaObject *obj, const gchar *var, gpointer value) +{ + g_hash_table_replace(obj->vars, g_strdup(var), value); + + return TRUE; +} + +gpointer maya_var_get(MayaObject *obj, const gchar *var) +{ + gpointer val; + + val = g_hash_table_lookup(obj->vars, var); + return val; +} + +gboolean maya_var_set_double(MayaObject *obj, const gchar *var, gdouble value) +{ + gdouble *pval; + + pval = g_new0(gdouble, 1); + *pval = value; + + return maya_var_set(obj, var, pval); +} + +gdouble maya_var_get_double(MayaObject *obj, const gchar *var, gdouble defval) +{ + gdouble *pval; + + pval = maya_var_get(obj, var); + if(pval == NULL) + return defval; + + return *pval; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_MAYA_VAR_H +#define _IMP_MAYA_VAR_H + +#include "imp_maya_obj.h" + +gboolean maya_var_set(MayaObject *obj, const gchar *var, gpointer value); +gpointer maya_var_get(MayaObject *obj, const gchar *var); + +gboolean maya_var_set_double(MayaObject *obj, const gchar *var, gdouble value); +gdouble maya_var_get_double(MayaObject *obj, const gchar *var, gdouble defval); + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_md2/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_md2 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_md2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_md2_la_OBJECTS = imp_md2.lo +imp_md2_la_OBJECTS = $(am_imp_md2_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_md2_la_SOURCES) +DIST_SOURCES = $(imp_md2_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2 +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2 +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_md2.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_md2_la_SOURCES = imp_md2.c imp_md2_normals.h +imp_md2_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_md2.la: $(imp_md2_la_OBJECTS) $(imp_md2_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_md2_la_OBJECTS) $(imp_md2_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_md2.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_md2.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_md2_la_SOURCES = imp_md2.c imp_md2_normals.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_md2 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_md2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_md2_la_OBJECTS = imp_md2.lo +imp_md2_la_OBJECTS = $(am_imp_md2_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_md2_la_SOURCES) +DIST_SOURCES = $(imp_md2_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_md2.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_md2_la_SOURCES = imp_md2.c imp_md2_normals.h +imp_md2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_md2.la: $(imp_md2_la_OBJECTS) $(imp_md2_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_md2_la_OBJECTS) $(imp_md2_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_md2.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include +#include +#include +#include +#include + +#include "imp_md2_normals.h" + +#define MD2_SKINNAMELEN 64 + +static const char *textureExtensions[] = { + ".pcx", ".bmp", ".jpg", ".tga", ".png", NULL }; + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + guint32 idid, idver, skinwidth, skinheight, framesize; + guint32 numskins, numverts, numtexs, numfaces, numglcmds, numframes; + guint32 offskins, offtexs, offfaces, offframes, offglcmds, offend; + G3DFloat *texco = NULL, *normals; + gchar **skinnames = NULL; + gint i, j; + G3DObject *object; + G3DMaterial *material; + G3DImage *image = NULL; + + idid = g3d_stream_read_int32_be(stream); + if(idid != G3D_IFF_MKID('I','D','P','2')) { + g_critical("file '%s' is not a .md2 file", stream->uri); + return FALSE; + } + + idver = g3d_stream_read_int32_le(stream); + if(idver != 8) { + g_warning("file '%s' has wrong version (%d)", stream->uri, idver); +#define CLOSE_ON_WRONG_VERSION +#ifdef CLOSE_ON_WRONG_VERSION + return FALSE; +#endif + } + + object = g_new0(G3DObject, 1); + object->name = g_strdup("Q2Object"); + material = g3d_material_new(); + object->materials = g_slist_append(object->materials, material); + model->objects = g_slist_append(model->objects, object); + + skinwidth = g3d_stream_read_int32_le(stream); + skinheight = g3d_stream_read_int32_le(stream); + framesize = g3d_stream_read_int32_le(stream); + numskins = g3d_stream_read_int32_le(stream); + numverts = g3d_stream_read_int32_le(stream); + numtexs = g3d_stream_read_int32_le(stream); + numfaces = g3d_stream_read_int32_le(stream); + numglcmds = g3d_stream_read_int32_le(stream); + numframes = g3d_stream_read_int32_le(stream); + + object->vertex_count = numverts; + object->vertex_data = g_new0(G3DFloat, numverts * 3); + normals = g_new0(G3DFloat, numverts * 3); + + offskins = g3d_stream_read_int32_le(stream); + offtexs = g3d_stream_read_int32_le(stream); + offfaces = g3d_stream_read_int32_le(stream); + offframes = g3d_stream_read_int32_le(stream); + offglcmds = g3d_stream_read_int32_le(stream); + offend = g3d_stream_read_int32_le(stream); + + if(numskins > 0) { + skinnames = g_new0(gchar *, numskins); + for(i = 0; i < numskins; i ++) { + skinnames[i] = g_new0(gchar, MD2_SKINNAMELEN); + g3d_stream_read(stream, skinnames[i], MD2_SKINNAMELEN); + + /* some md2 models have a dot as first character to tell the engine + * load the texture from the dir where the model is located */ + if(skinnames[i][0] == '.') + memmove(skinnames[i], skinnames[i] + 1, MD2_SKINNAMELEN - 1); +#if DEBUG > 0 + g_debug("skin #%d: %s", i + 1, skinnames[i]); +#endif + } + + /* not every skin has a texture assigned, the engines will search + * a list of supported images to get the texture */ + for(j = 0; j < numskins; j++) { + gchar skinname[MD2_SKINNAMELEN]; + gchar *basename; + + /* real filename */ + if(g_file_test(skinnames[j], G_FILE_TEST_EXISTS)) + image = g3d_texture_load_cached(context, model, skinnames[j]); + if(image) + break; + basename = g_path_get_basename(skinnames[j]); + if(g_file_test(basename, G_FILE_TEST_EXISTS)) + image = g3d_texture_load_cached(context, model, skinnames[j]); + g_free(basename); + if(image) + break; + + /* without extension */ + for(i = 0; textureExtensions[i] != NULL; i ++) { + g_snprintf(skinname, sizeof(skinname), "%s%s", skinnames[j], + textureExtensions[i]); + if(g_file_test(skinname, G_FILE_TEST_EXISTS)) + image = g3d_texture_load_cached(context, model, skinname); + if(image) + break; + basename = g_path_get_basename(skinname); + if(g_file_test(basename, G_FILE_TEST_EXISTS)) + image = g3d_texture_load_cached(context, model, skinname); + g_free(basename); + if(image) + break; + } + + /* replace extension */ + for(i = 0; textureExtensions[i] != NULL; i ++) { + g_snprintf(skinname, sizeof(skinname), "%.*s%s", + ((int) strlen(skinnames[j])) - 4, skinnames[j], + textureExtensions[i]); + if(g_file_test(skinname, G_FILE_TEST_EXISTS)) + image = g3d_texture_load_cached(context, model, skinname); + if(image) + break; + basename = g_path_get_basename(skinname); + if(g_file_test(basename, G_FILE_TEST_EXISTS)) + image = g3d_texture_load_cached(context, model, skinname); + g_free(basename); + if(image) + break; + } + if(image) + break; + } + + /* fallback skin name */ + if(image == NULL) + image = g3d_texture_load_cached(context, model, "tris0.bmp"); + if(image) + image->tex_env = G3D_TEXENV_REPLACE; + } + + g3d_stream_seek(stream, offframes, G_SEEK_SET); + /* vertices per frame */ +#if DEBUG > 0 + g_debug("numframes: %d", numframes); +#endif + for(i = 0; i < numframes; i ++) { + G3DFloat s0,s1,s2, t0,t1,t2; + gchar fname[16]; + guint32 j; + + s0 = g3d_stream_read_float_le(stream); /* scale */ + s1 = g3d_stream_read_float_le(stream); + s2 = g3d_stream_read_float_le(stream); + t0 = g3d_stream_read_float_le(stream); /* translate */ + t1 = g3d_stream_read_float_le(stream); + t2 = g3d_stream_read_float_le(stream); + g3d_stream_read(stream, fname, 16); /* frame name*/ + + for(j = 0; j < numverts; j ++) { + G3DFloat x,y,z; + guint32 v,n; + + v = g3d_stream_read_int8(stream); + x = (G3DFloat)v * s0 + t0; + v = g3d_stream_read_int8(stream); + y = (G3DFloat)v * s1 + t1; + v = g3d_stream_read_int8(stream); + z = (G3DFloat)v * s2 + t2; + n = g3d_stream_read_int8(stream); + if(i == 0) { + object->vertex_data[j * 3 + 0] = x; + object->vertex_data[j * 3 + 1] = y; + object->vertex_data[j * 3 + 2] = z; + + normals[j * 3 + 0] = md2_normals[n * 3 + 0]; + normals[j * 3 + 1] = md2_normals[n * 3 + 1]; + normals[j * 3 + 2] = md2_normals[n * 3 + 2]; + } + } + } + + g3d_stream_seek(stream, offtexs, G_SEEK_SET); + /* texture coordinates */ + if(numtexs > 0) { + texco = g_new0(G3DFloat, numtexs * 2); + for(i = 0; i < numtexs; i ++) { + texco[i * 2 + 0] = g3d_stream_read_int16_le(stream) / + (G3DFloat)skinwidth; + texco[i * 2 + 1] = g3d_stream_read_int16_le(stream) / + (G3DFloat)skinheight; + } + } + + /* faces */ + for(i = 0; i < numfaces; i ++) { + G3DFace *face; + guint32 i; + guint16 index; + + face = g_new0(G3DFace, 1); + object->faces = g_slist_append(object->faces, face); + face->material = material; + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + face->tex_vertex_data = g_new0(G3DFloat, 3 * 2); + face->normals = g_new0(G3DFloat, 3 * 3); + face->flags |= G3D_FLAG_FAC_NORMALS; + + if(image) + { + face->flags |= G3D_FLAG_FAC_TEXMAP; + face->tex_image = image; + } + + for(i = 0; i < 3; i ++) + { + face->vertex_indices[i] = g3d_stream_read_int16_le(stream); + face->normals[i * 3 + 0] = + - normals[face->vertex_indices[i] * 3 + 0]; + face->normals[i * 3 + 1] = + - normals[face->vertex_indices[i] * 3 + 1]; + face->normals[i * 3 + 2] = + - normals[face->vertex_indices[i] * 3 + 2]; + } + + for(i = 0; i < 3; i ++) + { + index = g3d_stream_read_int16_le(stream); + face->tex_vertex_data[i * 2 + 0] = texco[index * 2 + 0]; + face->tex_vertex_data[i * 2 + 1] = texco[index * 2 + 1]; + } + } + + + /* free skin names */ + if(skinnames) + { + for(i = 0; i < numskins; i ++) + g_free(skinnames[i]); + g_free(skinnames); + } + + if(texco) + g_free(texco); + if(normals) + g_free(normals); + + return TRUE; +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("ID Software's Quake II models."); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g_strsplit("md2", ":", 0); +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef __G3D_IMP_MD2_NORMALS_H__ +#define __G3D_IMP_MD2_NORMALS_H__ + +#include + +static G3DFloat md2_normals[] = { + -0.525731f, 0.000000f, 0.850651f, + -0.442863f, 0.238856f, 0.864188f, + -0.295242f, 0.000000f, 0.955423f, + -0.309017f, 0.500000f, 0.809017f, + -0.162460f, 0.262866f, 0.951056f, + 0.000000f, 0.000000f, 1.000000f, + 0.000000f, 0.850651f, 0.525731f, + -0.147621f, 0.716567f, 0.681718f, + 0.147621f, 0.716567f, 0.681718f, + 0.000000f, 0.525731f, 0.850651f, + 0.309017f, 0.500000f, 0.809017f, + 0.525731f, 0.000000f, 0.850651f, + 0.295242f, 0.000000f, 0.955423f, + 0.442863f, 0.238856f, 0.864188f, + 0.162460f, 0.262866f, 0.951056f, + -0.681718f, 0.147621f, 0.716567f, + -0.809017f, 0.309017f, 0.500000f, + -0.587785f, 0.425325f, 0.688191f, + -0.850651f, 0.525731f, 0.000000f, + -0.864188f, 0.442863f, 0.238856f, + -0.716567f, 0.681718f, 0.147621f, + -0.688191f, 0.587785f, 0.425325f, + -0.500000f, 0.809017f, 0.309017f, + -0.238856f, 0.864188f, 0.442863f, + -0.425325f, 0.688191f, 0.587785f, + -0.716567f, 0.681718f, -0.147621f, + -0.500000f, 0.809017f, -0.309017f, + -0.525731f, 0.850651f, 0.000000f, + 0.000000f, 0.850651f, -0.525731f, + -0.238856f, 0.864188f, -0.442863f, + 0.000000f, 0.955423f, -0.295242f, + -0.262866f, 0.951056f, -0.162460f, + 0.000000f, 1.000000f, 0.000000f, + 0.000000f, 0.955423f, 0.295242f, + -0.262866f, 0.951056f, 0.162460f, + 0.238856f, 0.864188f, 0.442863f, + 0.262866f, 0.951056f, 0.162460f, + 0.500000f, 0.809017f, 0.309017f, + 0.238856f, 0.864188f, -0.442863f, + 0.262866f, 0.951056f, -0.162460f, + 0.500000f, 0.809017f, -0.309017f, + 0.850651f, 0.525731f, 0.000000f, + 0.716567f, 0.681718f, 0.147621f, + 0.716567f, 0.681718f, -0.147621f, + 0.525731f, 0.850651f, 0.000000f, + 0.425325f, 0.688191f, 0.587785f, + 0.864188f, 0.442863f, 0.238856f, + 0.688191f, 0.587785f, 0.425325f, + 0.809017f, 0.309017f, 0.500000f, + 0.681718f, 0.147621f, 0.716567f, + 0.587785f, 0.425325f, 0.688191f, + 0.955423f, 0.295242f, 0.000000f, + 1.000000f, 0.000000f, 0.000000f, + 0.951056f, 0.162460f, 0.262866f, + 0.850651f, -0.525731f, 0.000000f, + 0.955423f, -0.295242f, 0.000000f, + 0.864188f, -0.442863f, 0.238856f, + 0.951056f, -0.162460f, 0.262866f, + 0.809017f, -0.309017f, 0.500000f, + 0.681718f, -0.147621f, 0.716567f, + 0.850651f, 0.000000f, 0.525731f, + 0.864188f, 0.442863f, -0.238856f, + 0.809017f, 0.309017f, -0.500000f, + 0.951056f, 0.162460f, -0.262866f, + 0.525731f, 0.000000f, -0.850651f, + 0.681718f, 0.147621f, -0.716567f, + 0.681718f, -0.147621f, -0.716567f, + 0.850651f, 0.000000f, -0.525731f, + 0.809017f, -0.309017f, -0.500000f, + 0.864188f, -0.442863f, -0.238856f, + 0.951056f, -0.162460f, -0.262866f, + 0.147621f, 0.716567f, -0.681718f, + 0.309017f, 0.500000f, -0.809017f, + 0.425325f, 0.688191f, -0.587785f, + 0.442863f, 0.238856f, -0.864188f, + 0.587785f, 0.425325f, -0.688191f, + 0.688191f, 0.587785f, -0.425325f, + -0.147621f, 0.716567f, -0.681718f, + -0.309017f, 0.500000f, -0.809017f, + 0.000000f, 0.525731f, -0.850651f, + -0.525731f, 0.000000f, -0.850651f, + -0.442863f, 0.238856f, -0.864188f, + -0.295242f, 0.000000f, -0.955423f, + -0.162460f, 0.262866f, -0.951056f, + 0.000000f, 0.000000f, -1.000000f, + 0.295242f, 0.000000f, -0.955423f, + 0.162460f, 0.262866f, -0.951056f, + -0.442863f, -0.238856f, -0.864188f, + -0.309017f, -0.500000f, -0.809017f, + -0.162460f, -0.262866f, -0.951056f, + 0.000000f, -0.850651f, -0.525731f, + -0.147621f, -0.716567f, -0.681718f, + 0.147621f, -0.716567f, -0.681718f, + 0.000000f, -0.525731f, -0.850651f, + 0.309017f, -0.500000f, -0.809017f, + 0.442863f, -0.238856f, -0.864188f, + 0.162460f, -0.262866f, -0.951056f, + 0.238856f, -0.864188f, -0.442863f, + 0.500000f, -0.809017f, -0.309017f, + 0.425325f, -0.688191f, -0.587785f, + 0.716567f, -0.681718f, -0.147621f, + 0.688191f, -0.587785f, -0.425325f, + 0.587785f, -0.425325f, -0.688191f, + 0.000000f, -0.955423f, -0.295242f, + 0.000000f, -1.000000f, 0.000000f, + 0.262866f, -0.951056f, -0.162460f, + 0.000000f, -0.850651f, 0.525731f, + 0.000000f, -0.955423f, 0.295242f, + 0.238856f, -0.864188f, 0.442863f, + 0.262866f, -0.951056f, 0.162460f, + 0.500000f, -0.809017f, 0.309017f, + 0.716567f, -0.681718f, 0.147621f, + 0.525731f, -0.850651f, 0.000000f, + -0.238856f, -0.864188f, -0.442863f, + -0.500000f, -0.809017f, -0.309017f, + -0.262866f, -0.951056f, -0.162460f, + -0.850651f, -0.525731f, 0.000000f, + -0.716567f, -0.681718f, -0.147621f, + -0.716567f, -0.681718f, 0.147621f, + -0.525731f, -0.850651f, 0.000000f, + -0.500000f, -0.809017f, 0.309017f, + -0.238856f, -0.864188f, 0.442863f, + -0.262866f, -0.951056f, 0.162460f, + -0.864188f, -0.442863f, 0.238856f, + -0.809017f, -0.309017f, 0.500000f, + -0.688191f, -0.587785f, 0.425325f, + -0.681718f, -0.147621f, 0.716567f, + -0.442863f, -0.238856f, 0.864188f, + -0.587785f, -0.425325f, 0.688191f, + -0.309017f, -0.500000f, 0.809017f, + -0.147621f, -0.716567f, 0.681718f, + -0.425325f, -0.688191f, 0.587785f, + -0.162460f, -0.262866f, 0.951056f, + 0.442863f, -0.238856f, 0.864188f, + 0.162460f, -0.262866f, 0.951056f, + 0.309017f, -0.500000f, 0.809017f, + 0.147621f, -0.716567f, 0.681718f, + 0.000000f, -0.525731f, 0.850651f, + 0.425325f, -0.688191f, 0.587785f, + 0.587785f, -0.425325f, 0.688191f, + 0.688191f, -0.587785f, 0.425325f, + -0.955423f, 0.295242f, 0.000000f, + -0.951056f, 0.162460f, 0.262866f, + -1.000000f, 0.000000f, 0.000000f, + -0.850651f, 0.000000f, 0.525731f, + -0.955423f, -0.295242f, 0.000000f, + -0.951056f, -0.162460f, 0.262866f, + -0.864188f, 0.442863f, -0.238856f, + -0.951056f, 0.162460f, -0.262866f, + -0.809017f, 0.309017f, -0.500000f, + -0.864188f, -0.442863f, -0.238856f, + -0.951056f, -0.162460f, -0.262866f, + -0.809017f, -0.309017f, -0.500000f, + -0.681718f, 0.147621f, -0.716567f, + -0.681718f, -0.147621f, -0.716567f, + -0.850651f, 0.000000f, -0.525731f, + -0.688191f, 0.587785f, -0.425325f, + -0.587785f, 0.425325f, -0.688191f, + -0.425325f, 0.688191f, -0.587785f, + -0.425325f, -0.688191f, -0.587785f, + -0.587785f, -0.425325f, -0.688191f, + -0.688191f, -0.587785f, -0.425325f }; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_md3/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_md3 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_md3_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_md3_la_OBJECTS = imp_md3.lo +imp_md3_la_OBJECTS = $(am_imp_md3_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_md3_la_SOURCES) +DIST_SOURCES = $(imp_md3_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3 +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3 +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_md3.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_md3_la_SOURCES = imp_md3.c +imp_md3_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_md3.la: $(imp_md3_la_OBJECTS) $(imp_md3_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_md3_la_OBJECTS) $(imp_md3_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_md3.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_md3.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_md3_la_SOURCES = imp_md3.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_md3 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_md3_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_md3_la_OBJECTS = imp_md3.lo +imp_md3_la_OBJECTS = $(am_imp_md3_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_md3_la_SOURCES) +DIST_SOURCES = $(imp_md3_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_md3.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_md3_la_SOURCES = imp_md3.c +imp_md3_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_md3.la: $(imp_md3_la_OBJECTS) $(imp_md3_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_md3_la_OBJECTS) $(imp_md3_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_md3.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif + +#include +#include +#include +#include +#include +#include +#include + +#define MD3_TYPE_MD3 0x01 +#define MD3_TYPE_MDC 0x02 + +gboolean md3_load_skin(G3DContext *context, G3DModel *model, + const gchar *filename); +gboolean md3_read_tag(G3DStream *stream, G3DContext *context, G3DModel *model); +gboolean md3_read_mesh(G3DStream *stream, G3DContext *context, G3DModel *model); + + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + guint32 magic, version, nboneframes, ntags, nmeshes, nskins; + guint32 off_bfs, off_tags, off_meshes, filesize, i, flags; + + magic = g3d_stream_read_int32_be(stream); + if((magic != G3D_IFF_MKID('I', 'D', 'P', '3')) && + (magic != G3D_IFF_MKID('I', 'D', 'P', 'C'))) { + g_warning("MD3: %s is not a valid md3 file", stream->uri); + return FALSE; + } + + version = g3d_stream_read_int32_le(stream); + g3d_stream_skip(stream, 64); + + flags = g3d_stream_read_int32_le(stream); + nboneframes = g3d_stream_read_int32_le(stream); + ntags = g3d_stream_read_int32_le(stream); + nmeshes = g3d_stream_read_int32_le(stream); + nskins = g3d_stream_read_int32_le(stream); + off_bfs = g3d_stream_read_int32_le(stream); + off_tags = g3d_stream_read_int32_le(stream); + off_meshes = g3d_stream_read_int32_le(stream); + filesize = g3d_stream_read_int32_le(stream); + + /* try to load skin */ + md3_load_skin(context, model, stream->uri); + + g_debug("MD3: version: %u, file size: %u bytes", version, filesize); + g_debug("MD3: tags @ 0x%08x, meshes @ 0x%08x", off_tags, off_meshes); + + g3d_stream_seek(stream, off_tags, G_SEEK_SET); + if(magic == G3D_IFF_MKID('I', 'D', 'P', '3')) + for(i = 0; i < nboneframes * ntags; i ++) + md3_read_tag(stream, context, model); + + /* read meshes */ + g3d_stream_seek(stream, off_meshes, G_SEEK_SET); + for(i = 0; i < nmeshes; i ++) + md3_read_mesh(stream, context, model); + + return TRUE; +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("Quake 3 models."); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g_strsplit("md3:mdc", ":", 0); +} + +/* + * MD3 specific + */ + +gboolean md3_load_skin(G3DContext *context, G3DModel *model, + const gchar *filename) +{ + gchar *basename, *skinname, **parts; + gchar line[256]; + G3DStream *stream; + G3DMaterial *material; + + basename = g_path_get_basename(filename); + skinname = g_strdup_printf("%.*s_default.skin", + ((int) strlen(basename)) - 4, basename); + + g_debug("MD3: trying to open skin file %s", skinname); + + stream = g3d_stream_open_file(skinname, "r"); + + g_free(basename); + g_free(skinname); + + /* no skin */ + if(stream == NULL) + return FALSE; + + while(g3d_stream_read_line(stream, line, 255) != NULL) { + parts = g_strsplit(line, ",", 2); + if(parts[0] && parts[1]) { + g_strchomp(parts[1]); + if(strlen(parts[1]) > 0) + { + g_debug("MD3: skin texture for %s: %s", + parts[0], parts[1]); + + material = g3d_material_new(); + material->name = g_strdup(parts[0]); + material->tex_image = g3d_texture_load_cached(context, model, + parts[1]); + + model->materials = g_slist_append(model->materials, + material); + } + } + g_strfreev(parts); + } + + g3d_stream_close(stream); + + return TRUE; +} + +gboolean md3_read_tag(G3DStream *stream, G3DContext *context, G3DModel *model) +{ + gchar name[65]; + + g3d_stream_read(stream, name, 64); + name[64] = '\0'; + + g_debug("MD3: tag: %s", name); + + /* position */ + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + + /* rotation */ + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + + return TRUE; +} + +gboolean md3_read_mesh(G3DStream *stream, G3DContext *context, G3DModel *model) +{ + G3DObject *object; + G3DImage *image = NULL; + G3DMaterial *material, *mat; + G3DFace *face; + GSList *mitem; + guint32 magic, i, j; + guint8 type = 0, r, s; + G3DFloat rho, sigma, *normals; + gchar name[64], *strp; + guint32 nmeshframe, nskin, nvertex, ntris, mlength, flags; + goffset off_tris, off_texvec, off_vertex, off_start, off_skins; + + off_start = g3d_stream_tell(stream); + + magic = g3d_stream_read_int32_be(stream); + + if(magic == G3D_IFF_MKID('I', 'D', 'P', '3')) + type = MD3_TYPE_MD3; + else /* if(magic == 0x07000000)*/ + type = MD3_TYPE_MDC; +#if 0 + else + { + g_warning("MD3: mesh magic unknown (%02x%02x%02x%02x)\n", + (magic >> 24) & 0xFF, + (magic >> 16) & 0xFF, + (magic >> 8) & 0xFF, + magic & 0xFF); + return FALSE; + } +#endif + + object = g_new0(G3DObject, 1); + + /* read name */ + g3d_stream_read(stream, name, 64); + object->name = g_strndup(name, 64); + + flags = g3d_stream_read_int32_le(stream); + + if(type == MD3_TYPE_MD3) { + nmeshframe = g3d_stream_read_int32_le(stream); + nskin = g3d_stream_read_int32_le(stream); + } else if(type == MD3_TYPE_MDC) { + g3d_stream_read_int32_le(stream); /* ncompframes */ + g3d_stream_read_int32_le(stream); /* nbaseframes */ + g3d_stream_read_int32_le(stream); /* nshaders */ + } + + nvertex = g3d_stream_read_int32_le(stream); + ntris = g3d_stream_read_int32_le(stream); + + off_tris = g3d_stream_read_int32_le(stream); + off_skins = g3d_stream_read_int32_le(stream); + + off_texvec = g3d_stream_read_int32_le(stream); + off_vertex = g3d_stream_read_int32_le(stream); + + if(type == MD3_TYPE_MDC) { + g3d_stream_read_int32_le(stream); /* off_compvert */ + g3d_stream_read_int32_le(stream); /* off_fbasef */ + g3d_stream_read_int32_le(stream); /* off_fcompf */ + } + + mlength = g3d_stream_read_int32_le(stream); + + if((nvertex == 0) || (ntris == 0)) { + g_warning("MD3: %u vertices, %u triangles", nvertex, ntris); + g3d_stream_seek(stream, off_start + mlength, G_SEEK_SET); + return FALSE; + } + + /* default material */ + material = g3d_material_new(); + material->name = g_strdup("default material"); + object->materials = g_slist_append(object->materials, material); + + /* skins */ + g3d_stream_seek(stream, off_start + off_skins, G_SEEK_SET); + g3d_stream_read(stream, name, 64); + g_debug("MD3: skin name: %s", name); + + /* read texture image */ + if(strlen(name) > 0) { + image = g3d_texture_load_cached(context, model, name); + if(image == NULL) { + /* try jpeg */ + strp = strrchr(name, '.'); + if(strp) { + strcpy(strp, ".jpg"); + image = g3d_texture_load_cached(context, model, name); + } + } + } + + if(image == NULL) { + mitem = model->materials; + while(mitem) { + mat = (G3DMaterial *)mitem->data; + if(strcmp(mat->name, object->name) == 0) { + image = mat->tex_image; + break; + } + mitem = mitem->next; + } + } + + /* read vertex data */ + g3d_stream_seek(stream, off_start + off_vertex, G_SEEK_SET); + object->vertex_count = nvertex; + object->vertex_data = g_new0(G3DFloat, nvertex * 3); + normals = g_new0(G3DFloat, nvertex * 3); + for(i = 0; i < nvertex; i ++) { + gint16 d; + + d = g3d_stream_read_int16_le(stream); + object->vertex_data[i * 3 + 0] = d; + d = g3d_stream_read_int16_le(stream); + object->vertex_data[i * 3 + 1] = d; + d = g3d_stream_read_int16_le(stream); + object->vertex_data[i * 3 + 2] = d; + + /* compressed normal */ + /* FIXME: the normals don't look right... */ + r = g3d_stream_read_int8(stream); /* rho */ + s = g3d_stream_read_int8(stream); /* sigma */ + rho = r * 2 * M_PI / 256.0; + sigma = s * 2 * M_PI / 256.0; + + normals[i * 3 + 0] = - cos(sigma) * sin(rho); + normals[i * 3 + 1] = - cos(sigma) * sin(rho); + normals[i * 3 + 2] = - cos(rho); + + g3d_vector_unify( + &(normals[i * 3 + 0]), + &(normals[i * 3 + 1]), + &(normals[i * 3 + 2])); + } + + /* read texture vertex data */ + g3d_stream_seek(stream, off_start + off_texvec, G_SEEK_SET); + object->tex_vertex_data = g_new0(G3DFloat, nvertex * 2); + for(i = 0; i < nvertex; i ++) { + object->tex_vertex_data[i * 2 + 0] = g3d_stream_read_float_le(stream); + object->tex_vertex_data[i * 2 + 1] = g3d_stream_read_float_le(stream); + } + + /* read triangles */ + g3d_stream_seek(stream, off_start + off_tris, G_SEEK_SET); + for(i = 0; i < ntris; i ++) + { + face = g_new0(G3DFace, 1); + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + face->material = material; + + face->flags |= G3D_FLAG_FAC_NORMALS; + face->normals = g_new0(G3DFloat, 3 * 3); + + face->tex_image = image; + if(face->tex_image) + { + face->tex_vertex_data = g_new0(G3DFloat, 3 * 2); + face->flags |= G3D_FLAG_FAC_TEXMAP; + } + + for(j = 0; j < 3; j ++) + { + face->vertex_indices[j] = g3d_stream_read_int32_le(stream); + + /* copy normals */ + face->normals[j * 3 + 0] = + normals[face->vertex_indices[j] * 3 + 0]; + face->normals[j * 3 + 1] = + normals[face->vertex_indices[j] * 3 + 1]; + face->normals[j * 3 + 2] = + normals[face->vertex_indices[j] * 3 + 2]; + + /* texture stuff */ + if(face->tex_image) + { + face->tex_vertex_data[j * 2 + 0] = + object->tex_vertex_data[face->vertex_indices[j] * 2 + 0]; + face->tex_vertex_data[j * 2 + 1] = + object->tex_vertex_data[face->vertex_indices[j] * 2 + 1]; + } + } + + object->faces = g_slist_append(object->faces, face); + } + + /* free unused data */ + if(object->tex_vertex_data) + { + g_free(object->tex_vertex_data); + object->tex_vertex_data = NULL; + } + if(normals) + g_free(normals); + + model->objects = g_slist_append(model->objects, object); + + g3d_stream_seek(stream, off_start + mlength, G_SEEK_SET); + + return TRUE; +} + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_nff/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_nff +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_nff_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_nff_la_OBJECTS = imp_nff.lo +imp_nff_la_OBJECTS = $(am_imp_nff_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_nff_la_SOURCES) +DIST_SOURCES = $(imp_nff_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_nff.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_nff_la_SOURCES = imp_nff.c +imp_nff_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_nff.la: $(imp_nff_la_OBJECTS) $(imp_nff_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_nff_la_OBJECTS) $(imp_nff_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_nff.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_nff.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_nff_la_SOURCES = imp_nff.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_nff +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_nff_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_nff_la_OBJECTS = imp_nff.lo +imp_nff_la_OBJECTS = $(am_imp_nff_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_nff_la_SOURCES) +DIST_SOURCES = $(imp_nff_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_nff.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_nff_la_SOURCES = imp_nff.c +imp_nff_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_nff.la: $(imp_nff_la_OBJECTS) $(imp_nff_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_nff_la_OBJECTS) $(imp_nff_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_nff.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include +#include + +#include +#include + +/*****************************************************************************/ +/* plugin interface */ +/*****************************************************************************/ + +#define NFF_SEC_NOSECTION 0 +#define NFF_SEC_VIEWPOINT 1 +#define NFF_SEC_BGCOLOR 2 +#define NFF_SEC_POSLIGHT 3 +#define NFF_SEC_MATERIAL 4 +#define NFF_SEC_CONECYL 5 +#define NFF_SEC_SPHERE 6 +#define NFF_SEC_POLYGON 7 +#define NFF_SEC_POLPATCH 8 + +static gboolean nff_readline(G3DStream *stream, gchar *line, guint32 maxlen); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer plugin_data) +{ + gchar line[1024]; + G3DObject *object; + G3DMaterial *material = NULL; + G3DFace *face; + guint32 section = NFF_SEC_NOSECTION; + G3DFloat r,g,b, Kd, Ks, Sh, T, refr; + G3DFloat v1,v2,v3, n1,n2,n3; + gint32 i, num, index; + gchar name[128]; + + setlocale(LC_NUMERIC, "C"); + + g_return_val_if_fail(model != NULL, FALSE); + + object = g_new0(G3DObject, 1); + object->name = g_strdup("NFF Object"); + model->objects = g_slist_append(model->objects, object); + + while(nff_readline(stream, line, 1024)) { + if(strcmp(line, "v") == 0) { + section = NFF_SEC_VIEWPOINT; + } else if(sscanf(line, "b " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &r, &g, &b) == 3) { + g3d_context_set_bgcolor(context, r, g, b, 1.0); + } 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, + &r, &g, &b, &Kd, &Ks, &Sh, &T, &refr) == 8) { + material = g3d_material_new(); + material->r = r; + material->g = g; + material->b = b; + material->a = 1.0 - T; + material->shininess = Sh; + material->specular[0] = r * Ks; + material->specular[1] = g * Ks; + material->specular[2] = b * Ks; + if(T > 0) material->flags |= G3D_FLAG_MAT_TWOSIDE; + object->materials = g_slist_append(object->materials, material); + g_snprintf(name, 128, "material #%d", + g_slist_length(object->materials)); + material->name = g_strdup(name); + } else if((sscanf(line, "pp %d", &num) == 1) || + (sscanf(line, "p %d", &num) == 1)) { + face = g_new0(G3DFace, 1); + + if(strncmp(line, "pp", 2) == 0) section = NFF_SEC_POLPATCH; + else section = NFF_SEC_POLYGON; + + object->vertex_count += num; + object->vertex_data = g_realloc(object->vertex_data, + object->vertex_count * 3 * sizeof(G3DFloat)); + + face->material = material; + face->vertex_count = num; + face->vertex_indices = g_malloc0(num * sizeof(guint32)); + object->faces = g_slist_prepend(object->faces, face); + if(section == NFF_SEC_POLPATCH) { + face->flags |= G3D_FLAG_FAC_NORMALS; + face->normals = g_malloc0(num * 3 * sizeof(G3DFloat)); + } + /* most faces are in this direction, but there are wrong models */ + for(i = num - 1; i >= 0; i --) { + if(!nff_readline(stream, line, 1024)) { + g_warning("reading vertices failed"); + return FALSE; + } + if((section == NFF_SEC_POLPATCH) && + (sscanf(line, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, + &v1,&v2,&v3, + &n1,&n2,&n3) == 6)) { + index = object->vertex_count - num + i; + object->vertex_data[index*3+0] = v1; + object->vertex_data[index*3+1] = v2; + object->vertex_data[index*3+2] = v3; + face->vertex_indices[i] = index; + face->normals[i*3+0] = -n1; + face->normals[i*3+1] = -n2; + face->normals[i*3+2] = -n3; + } else if(sscanf(line, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &v1,&v2,&v3) == 3) { + index = object->vertex_count - num + i; + object->vertex_data[index*3+0] = v1; + object->vertex_data[index*3+1] = v2; + object->vertex_data[index*3+2] = v3; + face->vertex_indices[i] = index; + } else + g_warning("error in line '%s'", line); + } + } + } + return TRUE; +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("Neutral File Format models."); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g_strsplit("nff", ":", 0); +} + +/*****************************************************************************/ +/* private functions */ +/*****************************************************************************/ + +static gboolean nff_readline(G3DStream *stream, gchar *line, guint32 maxlen) +{ + if(g3d_stream_read_line(stream, line, maxlen) == NULL) + return FALSE; + g_strstrip(line); + + if((strlen(line) == 0) || (line[0] == '#')) { + /* get next line if empty or comment */ + return nff_readline(stream, line, maxlen); + } + return TRUE; +} + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_obj/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_obj +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_obj_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_obj_la_OBJECTS = imp_obj.lo +imp_obj_la_OBJECTS = $(am_imp_obj_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_obj_la_SOURCES) +DIST_SOURCES = $(imp_obj_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_obj.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_obj_la_SOURCES = imp_obj.c +imp_obj_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_obj.la: $(imp_obj_la_OBJECTS) $(imp_obj_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_obj_la_OBJECTS) $(imp_obj_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_obj.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_obj.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_obj_la_SOURCES = imp_obj.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_obj +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_obj_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_obj_la_OBJECTS = imp_obj.lo +imp_obj_la_OBJECTS = $(am_imp_obj_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_obj_la_SOURCES) +DIST_SOURCES = $(imp_obj_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_obj.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_obj_la_SOURCES = imp_obj.c +imp_obj_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_obj.la: $(imp_obj_la_OBJECTS) $(imp_obj_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_obj_la_OBJECTS) $(imp_obj_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_obj.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#define OBJ_USE_GROUPING 0 + +typedef struct { + goffset goff; + goffset ooff; + G3DObject *object; +} ObjGroupOffset; + +static gboolean obj_tryloadmat(G3DModel *model, const gchar *filename); +static G3DMaterial *obj_usemat(G3DModel *model, const gchar *matname); + +static G3DObject *obj_object_by_name(G3DModel *model, const gchar *name); +#if OBJ_USE_GROUPING +static G3DObject *obj_get_offset(GSList *group_list, guint32 *voffp, + guint32 index, G3DObject *defobj); +#endif + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + gchar line[2048], matname[128], matfile[1024]; + gchar *filename; + G3DObject *object = NULL; + G3DMaterial *material = NULL; + G3DFloat pcnt, prev_pcnt = 0.0; + gdouble x,y,z; + guint32 num_v, v_off = 1, v_cnt = 0; +#if OBJ_USE_GROUPING + gchar oname[128]; + ObjGroupOffset *grpoff; + GSList *group_list = NULL; +#endif + goffset global_vertex_count = 0; + + setlocale(LC_NUMERIC, "C"); + filename = g3d_stream_get_uri(stream); + + strncpy(matfile, filename, strlen(filename) - 3); + matfile[strlen(filename)-3] = '\0'; + strcat(matfile, "mtl"); + obj_tryloadmat(model, matfile); + + object = obj_object_by_name(model, "(default)"); + + while(!g3d_stream_eof(stream)) + { + memset(line, 0, 2048); + g3d_stream_read_line(stream, line, 2048); + /* remove leading and trailing whitespace characters */ + g_strstrip(line); + if(strlen(line) > 0) { + switch(line[0]) { + case '#': + continue; + break; + + case 'g': /* group */ +#if OBJ_USE_GROUPING + if(strlen(line) == 1) + strcpy(oname, "(default)"); + else + sscanf(line, "g %s", oname); + + material = obj_usemat(model, oname); + + grpoff = g_new0(ObjGroupOffset, 1); + grpoff->object = obj_object_by_name(model, oname); + grpoff->goff = global_vertex_count; + grpoff->ooff = grpoff->object->vertex_count; + group_list = g_slist_append(group_list, grpoff); +#if DEBUG > 0 + g_debug("[g] 0x%08x / 0x%08x: \"%s\"", + (guint32)grpoff->goff, + (guint32)grpoff->ooff, grpoff->object->name); +#endif + object = grpoff->object; + v_cnt = grpoff->ooff; +#endif + break; + + case 'l': /* line */ + break; + + case 'o': /* object */ + break; + + case 'v': /* vertex */ + if(strncmp(line, "vn ", 3) == 0) + { + /* normal ? */ + } + else if(strncmp(line, "vt ", 3) == 0) + { + /* ?? */ + } + else if(sscanf(line, "v %lf %lf %lf", &x, &y, &z) == 3) + { + object->vertex_count ++; + object->vertex_data = g_realloc(object->vertex_data, + object->vertex_count * 3 * sizeof(G3DFloat)); + object->vertex_data[v_cnt * 3 + 0] = x; + object->vertex_data[v_cnt * 3 + 1] = y; + object->vertex_data[v_cnt * 3 + 2] = z; + + v_cnt ++; + global_vertex_count ++; + } + else g_warning("parse error in line: %s", line); + break; + + case 'f': /* face */ + if(strncmp("f ", line, 2) == 0) + { + G3DFace *face; + gchar **vertex, **vstrs = g_strsplit(line, " ", 0); + int i; + + num_v = 0; + face = g_new0(G3DFace, 1); + if(material != NULL) + face->material = material; + else face->material = + g_slist_nth_data(object->materials, 0); + + /* find number of vertices in line */ + vertex = vstrs; + while(*vertex != NULL) { num_v++; vertex++; } + face->vertex_count = num_v - 1; + + /* next one if # of vertices < 3 */ + if(face->vertex_count < 3) + continue; + + /* calculate object-local vertex offset, indices + * in .obj files are absolute */ + i = strtol(vstrs[1], NULL, 10); +#if OBJ_USE_GROUPING + object = obj_get_offset(group_list, &v_off, + (i < 0) ? global_vertex_count - i - 1 : i, + object); +#else + v_off = 0; +#endif + if(object == NULL) { + g_warning("error: face before object"); + return FALSE; + } + + /* read vertices */ + face->vertex_indices = g_new0(guint32, num_v - 1); + for(i = 1; i < num_v; i ++) { + gint32 index = strtol(vstrs[i], NULL, 10); + + if(index < 0) + face->vertex_indices[i - 1] = + global_vertex_count + index + v_off - 1; + else + face->vertex_indices[i - 1] = MIN( + (index - 1) + v_off, + object->vertex_count - 1); + } + g_strfreev(vstrs); + object->faces = g_slist_prepend(object->faces, face); + } + else + g_warning("parse error in line: %s", line); + break; + + case 'u': /* usemat? */ + case 'm': + case 's': + if(sscanf(line, "usemtl %s", matname) == 1) { + material = obj_usemat(model, matname); + } else if(sscanf(line, "mtllib %s", matfile) == 1) { + /* loads external material library */ + if(obj_tryloadmat(model, matfile) != TRUE) + g_warning("error loading material library '%s'", + matfile); + } + break; + default: +#if DEBUG > 0 + g_debug("unknown type of line: %s", line); +#endif + break; + } + } + +#if 1 + pcnt = (G3DFloat)g3d_stream_tell(stream) / + (G3DFloat)g3d_stream_size(stream); + if((pcnt - prev_pcnt) > 0.01) { + prev_pcnt = pcnt; + g3d_context_update_progress_bar(context, pcnt, TRUE); + } +#endif + g3d_context_update_interface(context); + } /* !eof(stream) */ + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("Maya .obj models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("obj", ":", 0); +} + +/*****************************************************************************/ + +/*****************************************************************************/ +/* material file ops */ +/*****************************************************************************/ + +int obj_tryloadmat(G3DModel *model, const char *filename) +{ + FILE *f; + G3DMaterial *material = NULL; + + f = fopen(filename, "r"); + if(f == NULL) { +#if DEBUG > 1 + g_warning("obj_tryloadmat: loading '%s' failed: %s", filename, + strerror(errno)); +#endif + return FALSE; + } +#if DEBUG > 0 + g_debug("loading material library %s", filename); +#endif + while(!feof(f)) { + char line[2048]; + float r,g,b, t1,t2, ni; + int tf, ns, il; + + fgets(line, 2048, f); + g_strstrip(line); + if(strlen(line)) + { + char mname[128]; + + if(line[0] == '#') continue; /* comments */ + if(line[0] == '\n') continue; /* empty lines */ + + if(sscanf(line, "newmtl %s", mname) == 1) + { + /* new material */ + material = g3d_material_new(); + material->name = g_strdup(mname); + model->materials = g_slist_append(model->materials, material); + } + else if(sscanf(line, " Kd %f %f %f", &r, &g, &b) == 3) + { + /* material color? */ + if(material != NULL) + { + material->r = r; + material->g = g; + material->b = b; + } + } + else if(sscanf(line, " Ks %f %f %f", &r, &g, &b) == 3) + { + /* ?? */ + } + else if(sscanf(line, " Tf %f %f %d", &t1, &t2, &tf) == 3) + { + /* transparency ?? */ + if(material != NULL) + { + if(tf == 1) material->a = 1.0 - t1; + } + } + else if(sscanf(line, " Ns %d Ni %f", &ns, &ni) == 2) + { + /* ?? */ + } + else if(sscanf(line, " illum %d", &il) == 1) + { + /* ?? */ + } + else { +#if DEBUG > 0 + g_warning("unknown type of line: %s", line); +#endif + } + } + } /* !feof */ + return TRUE; +} + +G3DMaterial *obj_usemat(G3DModel *model, const gchar *matname) +{ + /* sets new active material from named list */ + GSList *mlist = model->materials; + while(mlist != NULL) + { + G3DMaterial *mat = (G3DMaterial*)mlist->data; + if(strcmp(matname, mat->name) == 0) + { + return mat; + } + mlist = mlist->next; + } + + return NULL; +} + +static G3DObject *obj_object_by_name(G3DModel *model, const gchar *name) +{ + G3DObject *object; + G3DMaterial *material; + GSList *oitem; + +#if DEBUG > 4 + g_debug("looking for object '%s'", name); +#endif + + for(oitem = model->objects; oitem != NULL; oitem = oitem->next) { + object = oitem->data; + if(strcmp(object->name, name) == 0) + return object; + } + + material = g3d_material_new(); + material->name = g_strdup("(default material)"); + + object = g_new0(G3DObject, 1); + object->name = g_strdup(name); + object->materials = g_slist_append(object->materials, material); + model->objects = g_slist_append(model->objects, object); + + return object; +} + +#if OBJ_USE_GROUPING +static G3DObject *obj_get_offset(GSList *group_list, guint32 *voffp, + guint32 index, G3DObject *defobj) +{ + GSList *leitem, *gitem; + ObjGroupOffset *grpoff; + + for(leitem = gitem = group_list; gitem != NULL; gitem = gitem->next) { + grpoff = gitem->data; + + /* this one is too big */ + if(grpoff->goff > index) { + grpoff = leitem->data; + *voffp = grpoff->ooff - grpoff->goff; +#if DEBUG > 0 + g_debug("[o]: i=%-6d, go=%-6d, oo=%-6d, vo=%-6d (%s, %d vtxs)", + index, (guint32)grpoff->goff, (guint32)grpoff->ooff, *voffp, + grpoff->object->name, grpoff->object->vertex_count); +#endif + return grpoff->object; + } + leitem = gitem; + } + + *voffp = 0; + return defobj; +} +#endif + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_osm/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_osm +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_osm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_osm_la_OBJECTS = imp_osm.lo +imp_osm_la_OBJECTS = $(am_imp_osm_la_OBJECTS) +#am_imp_osm_la_rpath = -rpath \ +# $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_osm_la_SOURCES) +DIST_SOURCES = $(imp_osm_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_osm.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_osm_la_SOURCES = imp_osm.c +imp_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 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_osm.la: $(imp_osm_la_OBJECTS) $(imp_osm_la_DEPENDENCIES) + $(LINK) $(am_imp_osm_la_rpath) $(imp_osm_la_OBJECTS) $(imp_osm_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_osm.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +if HAVE_LIBXML2 +pluginimp_LTLIBRARIES = imp_osm.la +endif +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ @LIBXML2_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_osm_la_SOURCES = imp_osm.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_osm +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_osm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_osm_la_OBJECTS = imp_osm.lo +imp_osm_la_OBJECTS = $(am_imp_osm_la_OBJECTS) +@EXPERIMENTAL_TRUE@@HAVE_LIBXML2_TRUE@am_imp_osm_la_rpath = -rpath \ +@EXPERIMENTAL_TRUE@@HAVE_LIBXML2_TRUE@ $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_osm_la_SOURCES) +DIST_SOURCES = $(imp_osm_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@@HAVE_LIBXML2_TRUE@pluginimp_LTLIBRARIES = imp_osm.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ @LIBXML2_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_osm_la_SOURCES = imp_osm.c +imp_osm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_osm.la: $(imp_osm_la_OBJECTS) $(imp_osm_la_DEPENDENCIES) + $(LINK) $(am_imp_osm_la_rpath) $(imp_osm_la_OBJECTS) $(imp_osm_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_osm.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include + +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +typedef struct { + guint32 length; + guint32 *ids; +} OSMNodeTransList; + +typedef struct { + const gchar *name; + gdouble r, g, b, a; +} OSMMaterial; + +static OSMMaterial osm_materials[] = { + { "default", 0.7, 0.7, 0.7, 0.7 }, + { "highway:primary", 1.0, 0.8, 0.1, 1.0 }, + { "highway:secondary", 1.0, 0.2, 0.2, 1.0 }, + { "highway:footway", 0.2, 1.0, 0.2, 1.0 }, + { "waterway:canal", 0.0, 0.1, 1.0, 0.7 }, + { "waterway:river", 0.0, 0.4, 1.0, 0.7 }, + { "waterway:riverbank", 0.0, 0.4, 1.0, 0.7 }, + { NULL, 0.0, 0.0, 0.0, 0.0 } +}; + +static int osm_input_read_cb(gpointer ctx, gchar *buffer, gint len); +static void osm_add_node(G3DObject *object, OSMNodeTransList *translist, + xmlNodePtr node); +static void osm_add_way(G3DObject *object, OSMNodeTransList *translist, + xmlNodePtr node, GHashTable *materials); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model) +{ + xmlDocPtr xmldoc; + xmlNodePtr rootnode, node; + OSMNodeTransList *translist; + G3DObject *object; + GHashTable *materials; + G3DMaterial *material; + OSMMaterial *mentry; + + setlocale(LC_NUMERIC, "C"); + + xmlInitParser(); + + xmldoc = xmlReadIO(osm_input_read_cb, NULL, stream, stream->uri, NULL, 0); + if(xmldoc == NULL) { + g_warning("OSM: failed to parse XML file '%s'", stream->uri); + xmlCleanupParser(); + return FALSE; + } + + /* create material table */ + materials = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); + for(mentry = osm_materials; mentry->name != NULL; mentry ++) { + material = g3d_material_new(); + material->name = g_strdup(mentry->name); + material->r = mentry->r; + material->g = mentry->g; + material->b = mentry->b; + material->a = mentry->a; + model->materials = g_slist_append(model->materials, material); + g_hash_table_insert(materials, g_strdup(material->name), material); + } + + translist = g_new0(OSMNodeTransList, 1); + object = g_new0(G3DObject, 1); + object->name = g_strdup("OpenStreetMap object"); + model->objects = g_slist_append(model->objects, object); + + rootnode = xmlDocGetRootElement(xmldoc); + for(node = rootnode->children; node != NULL; node = node->next) { + /* skip non-element nodes */ + if(node->type != XML_ELEMENT_NODE) + continue; + + if(xmlStrcmp((xmlChar *)"node", node->name) == 0) { + /* "node" nodes */ + osm_add_node(object, translist, node); + } else if(xmlStrcmp((xmlChar *)"way", node->name) == 0) { + /* "way" nodes */ + osm_add_way(object, translist, node, materials); + } else if(xmlStrcmp((xmlChar *)"relation", node->name) == 0) { + /* "relation" nodes */ + } + } + + /* clean up */ + if(object->vertex_data) { + /* reference points not needed anymore */ + g_free(object->vertex_data); + object->vertex_data = NULL; + object->vertex_count = 0; + } + g_hash_table_destroy(materials); + if(translist->ids) + g_free(translist->ids); + g_free(translist); + xmlFreeDoc(xmldoc); + xmlCleanupParser(); + + return TRUE; +} + +EAPI +char *plugin_description(void) +{ + return g_strdup("OpenStreetMap maps."); +} + +EAPI +char **plugin_extensions(void) +{ + return g_strsplit("osm", ":", 0); +} + +/*****************************************************************************/ +/* helper functions + *****************************************************************************/ + +static int osm_input_read_cb(gpointer ctx, gchar *buffer, gint len) +{ + return g3d_stream_read((G3DStream *)ctx, buffer, len); +} + +#if 0 +#define G(i) (gdouble)(i) + +static gdouble misc_angle(gdouble x1, gdouble y1, gdouble x2, gdouble y2) +{ + gdouble at; + + if(x1 == x2) { + if(y1 > y2) + return G_PI * 1.5; + else + return G_PI / 2.0; + } + at = atan((G(y2) - G(y1)) / (G(x2) - G(x1))); + if(x2 < x1) + return G_PI + at; + else + return at; +} + +static gdouble misc_delta(gdouble x1, gdouble y1, gdouble x2, gdouble y2) +{ + gdouble a, b; + + a = ABS(G(x2) - G(x1)); + b = ABS(G(y2) - G(y1)); + return sqrt(a * a + b * b); +} +#endif + +/*****************************************************************************/ +/* OSM specific functions + *****************************************************************************/ + +static gint32 osm_translist_lookup(OSMNodeTransList *translist, guint32 id) +{ + gint32 i; + + for(i = 0; i < translist->length; i ++) + if(translist->ids[i] == id) + return i; + return -1; +} + +static void osm_add_node(G3DObject *object, OSMNodeTransList *translist, + xmlNodePtr node) +{ + gdouble lat, lon; + + lat = strtod((char *)xmlGetProp(node, (xmlChar *)"lat"), NULL); + lon = strtod((char *)xmlGetProp(node, (xmlChar *)"lon"), NULL); + + translist->length ++; + translist->ids = g_realloc(translist->ids, + translist->length * sizeof(guint32)); + translist->ids[translist->length - 1] = strtoul( + (char *)xmlGetProp(node, (xmlChar *)"id"), NULL, 10); + + object->vertex_count ++; + object->vertex_data = g_realloc(object->vertex_data, + object->vertex_count * sizeof(gdouble) * 3); + object->vertex_data[(object->vertex_count - 1) * 3 + 0] = + (lat * G_PI / 180) * cos(lon * G_PI / 180) * 180 / G_PI; + object->vertex_data[(object->vertex_count - 1) * 3 + 1] = 0.0; + object->vertex_data[(object->vertex_count - 1) * 3 + 2] = + (lat * G_PI / 180) * sin(lon * G_PI / 180) * 180 / G_PI; +} + +static void osm_add_street(G3DObject *object, OSMNodeTransList *translist, + guint32 refcount, guint32 *refdata, + GHashTable *tags, GHashTable *materials) +{ + gint32 i, n; + gdouble *vdata; + G3DFloat matrix[16]; + G3DObject *ostreet = NULL; + gchar *name, *mname; + G3DMaterial *material = NULL; + + /* lookup material */ + name = g_hash_table_lookup(tags, "highway"); + if(name != NULL) { + mname = g_strdup_printf("highway:%s", name); + material = g_hash_table_lookup(materials, mname); + g_free(mname); + } else { + name = g_hash_table_lookup(tags, "waterway"); + if(name != NULL) { + mname = g_strdup_printf("waterway:%s", name); + material = g_hash_table_lookup(materials, mname); + g_free(mname); + } + } + if(material == NULL) { + material = g_hash_table_lookup(materials, "default"); + g_return_if_fail(material != NULL); + } + + /* create strip */ + vdata = g_new0(gdouble, refcount * 2); + for(i = 0; i < refcount; i ++) { + n = osm_translist_lookup(translist, refdata[i]); + if(n == -1) { + g_warning("OSM: looking up reference %d failed", refdata[i]); + continue; + } + vdata[i * 2 + 0] = object->vertex_data[n * 3 + 0]; + vdata[i * 2 + 1] = object->vertex_data[n * 3 + 2]; + } + ostreet = g3d_primitive_box_strip_2d(refcount, vdata, 0.00003, 0.0003, + material); + g_free(vdata); + + if(ostreet == NULL) + return; + + /* bridge? */ + name = g_hash_table_lookup(tags, "bridge"); + if(name && (strcmp(name, "true") == 0)) { + g3d_matrix_identity(matrix); + g3d_matrix_translate(0.0, 0.00005, 0.0, matrix); + g3d_object_transform(ostreet, matrix); + } + + /* name? */ + name = g_hash_table_lookup(tags, "name"); + if(name == NULL) + ostreet->name = g_strdup("unnamed street"); + else + ostreet->name = g_strdup(name); + object->objects = g_slist_append(object->objects, ostreet); +} + +static void osm_add_way(G3DObject *object, OSMNodeTransList *translist, + xmlNodePtr node, GHashTable *materials) +{ + guint32 refcount = 0; + guint32 *refdata = NULL; + GHashTable *tags; + xmlNodePtr subnode; + + tags = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); + + /* parse subnodes */ + for(subnode = node->children; subnode != NULL; subnode = subnode->next) { + if(subnode->type != XML_ELEMENT_NODE) + continue; + + if(xmlStrcmp((xmlChar *)"nd", subnode->name) == 0) { + refcount ++; + refdata = g_realloc(refdata, refcount * sizeof(guint32)); + refdata[refcount - 1] = strtoul( + (char *)xmlGetProp(subnode, (xmlChar *)"ref"), NULL, 10); + } else if(xmlStrcmp((xmlChar *)"tag", subnode->name) == 0) { + g_hash_table_insert(tags, + g_strdup((char *)xmlGetProp(subnode, (xmlChar *)"k")), + g_strdup((char *)xmlGetProp(subnode, (xmlChar *)"v"))); + } else { + /* unknown "way" subnode */ + g_debug("OSM: 'way': unknown subnode '%s'", + (gchar *)subnode->name); + } + } + + /* do something with the collected data */ + if((g_hash_table_lookup(tags, "highway") != NULL) || + (g_hash_table_lookup(tags, "waterway") != NULL)) + osm_add_street(object, translist, refcount, refdata, tags, materials); + + /* clean up */ + g_hash_table_destroy(tags); + if(refdata) + g_free(refdata); +} 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_q3o/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_q3o +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_q3o_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_q3o_la_OBJECTS = imp_q3o.lo +imp_q3o_la_OBJECTS = $(am_imp_q3o_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_q3o_la_SOURCES) +DIST_SOURCES = $(imp_q3o_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_q3o.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_q3o_la_SOURCES = imp_q3o.c +imp_q3o_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_q3o.la: $(imp_q3o_la_OBJECTS) $(imp_q3o_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_q3o_la_OBJECTS) $(imp_q3o_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_q3o.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +pluginimp_LTLIBRARIES = imp_q3o.la + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_q3o_la_SOURCES = imp_q3o.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_q3o +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_q3o_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_q3o_la_OBJECTS = imp_q3o.lo +imp_q3o_la_OBJECTS = $(am_imp_q3o_la_OBJECTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_q3o_la_SOURCES) +DIST_SOURCES = $(imp_q3o_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_q3o.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_q3o_la_SOURCES = imp_q3o.c +imp_q3o_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_q3o.la: $(imp_q3o_la_OBJECTS) $(imp_q3o_la_DEPENDENCIES) + $(LINK) -rpath $(pluginimpdir) $(imp_q3o_la_OBJECTS) $(imp_q3o_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_q3o.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include +#include +#include +#include + +/* + * format description: + * http://www.quick3d.com/guide/guidec.html + */ + +static void q3o_update_face_textures(G3DModel *model, G3DContext *context); +static gboolean q3o_read_mesh(G3DStream *stream, G3DModel *model, + guint32 n_textures, G3DContext *context); +static gboolean q3o_read_material(G3DStream *stream, G3DModel *model, + guint32 index, guint32 n_textures); +static gboolean q3o_read_texture(G3DStream *stream, G3DModel *model, + guint32 *idx); +static gboolean q3o_read_scene(G3DStream *stream, G3DContext *context); +static gboolean q3o_read_eof(G3DStream *stream); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + gchar signature[8], ver_min, ver_maj, id; + guint32 nmeshes, nmats, ntexs, i, tex_index = 0; + + g3d_stream_read(stream, signature, 8); + if(strncmp(signature, "quick3Ds", 8) && strncmp(signature, "quick3Do", 8)) + { + g_warning("file '%s' is not a Quick3D file", stream->uri); + return FALSE; + } + + ver_maj = g3d_stream_read_int8(stream); + ver_min = g3d_stream_read_int8(stream); +#if DEBUG > 0 + g_debug("Q3O: version %c.%c", ver_maj, ver_min); +#endif + + nmeshes = g3d_stream_read_int32_le(stream); + nmats = g3d_stream_read_int32_le(stream); + ntexs = g3d_stream_read_int32_le(stream); +#if DEBUG > 0 + g_debug("Q3O: %d meshes, %d materials, %d textures", + nmeshes, nmats, ntexs); +#endif + + /* generate (emtpy) materials */ + for(i = 0; i < nmats; i ++) { + G3DMaterial *material = g3d_material_new(); + model->materials = g_slist_append(model->materials, material); + } + + while((id = g3d_stream_read_int8(stream)) != 0) { +#if DEBUG > 0 + g_debug("Q3O: chunk type 0x%02x @ 0x%08x", id, + (guint32)g3d_stream_tell(stream) - 1); +#endif + switch(id) { + case 'm': /* mesh */ + for(i = 0; i < nmeshes; i ++) + q3o_read_mesh(stream, model, ntexs, context); + break; + + case 'c': /* material */ + for(i = 0; i < nmats; i ++) + q3o_read_material(stream, model, i, ntexs); + break; + + case 't': /* texture */ + for(i = 0; i < ntexs; i ++) + q3o_read_texture(stream, model, &tex_index); + break; + + case 's': /* scene */ + q3o_read_scene(stream, context); + break; + + case 'q': /* EOF signature? */ + q3o_read_eof(stream); + break; + + default: + g_warning("Q3O: unknown chunk type 0x%02x\n", id); + return TRUE; + break; + } + } + + /* update texture images */ + q3o_update_face_textures(model, context); + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("Quick3D models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("q3o:q3s", ":", 0); +} + +/* + * Q3O specific stuff + */ + +static void q3o_update_face_textures(G3DModel *model, G3DContext *context) +{ + GSList *oitem, *fitem; + G3DObject *object; + G3DFace *face; + + oitem = model->objects; + while(oitem) + { + object = (G3DObject *)oitem->data; + fitem = object->faces; + while(fitem) + { + face = (G3DFace *)fitem->data; + face->tex_image = face->material->tex_image; + if(face->tex_image && face->tex_image->width) + face->flags |= G3D_FLAG_FAC_TEXMAP; + else + { + face->tex_vertex_count = 0; + if(face->tex_vertex_data) + g_free(face->tex_vertex_data); + } + fitem = fitem->next; + } + + g3d_context_update_interface(context); + oitem = oitem->next; + } +} + +static G3DImage *q3o_get_texture_nth(G3DModel *model, guint32 n) +{ + gchar number[32]; + G3DImage *image; + + if(model->tex_images == NULL) + model->tex_images = g_hash_table_new(g_str_hash, g_str_equal); + +#if DEBUG > 5 + g_debug("Q3O: texture #%d wanted", n); +#endif + + sprintf(number, "%d", n); + image = g_hash_table_lookup(model->tex_images, number); + if(image) { +#if DEBUG > 5 + g_debug("Q3O: texture #%d from hash table", n); +#endif + return image; + } + +#if DEBUG > 5 + g_debug("Q3O: texture #%d created", n); +#endif + + image = g_new0(G3DImage, 1); + image->tex_scale_u = 1.0; + image->tex_scale_v = 1.0; + image->name = g_strdup_printf("would be %d", n + 1); + + g_hash_table_insert(model->tex_images, g_strdup(number), image); + + return image; +} + +static gboolean q3o_read_mesh(G3DStream *stream, G3DModel *model, + guint32 n_textures, G3DContext *context) +{ + guint32 i, j, nfaces, mat, nnormals, ntexco, index, nfaceverts = 0; + guint16 *faceshapes; + G3DFloat *normals; + GSList *fitem; + G3DObject *object; + G3DFace *face; + G3DMaterial *material; + + object = g_new0(G3DObject, 1); + object->name = g_strdup("Q3O mesh"); + model->objects = g_slist_append(model->objects, object); + + material = g3d_material_new(); + material->name = g_strdup("fallback material"); + object->materials = g_slist_append(object->materials, material); + + /* vertices */ + object->vertex_count = g3d_stream_read_int32_le(stream); +#if DEBUG > 3 + g_debug("Q3O: number of vertices: %d", object->vertex_count); +#endif + object->vertex_data = g_new0(G3DFloat,object->vertex_count * 3); + for(i = 0; i < object->vertex_count; i ++) + { + object->vertex_data[i*3+0] = g3d_stream_read_float_le(stream); + object->vertex_data[i*3+1] = g3d_stream_read_float_le(stream); + object->vertex_data[i*3+2] = g3d_stream_read_float_le(stream); + + g3d_context_update_interface(context); + } + + /* faces */ + nfaces = g3d_stream_read_int32_le(stream); +#if DEBUG > 3 + g_debug("Q3O: number of faces: %d", nfaces); +#endif + faceshapes = g_new0(guint16, nfaces); + for(i = 0; i < nfaces; i ++) + { + faceshapes[i] = g3d_stream_read_int16_le(stream); + nfaceverts += faceshapes[i]; + + g3d_context_update_interface(context); + } + + for(i = 0; i < nfaces; i ++) + { + face = g_new0(G3DFace, 1); + face->vertex_count = faceshapes[i]; + face->vertex_indices = g_new0(guint32, face->vertex_count); + for(j = 0; j < face->vertex_count; j ++) + { + face->vertex_indices[j] = g3d_stream_read_int32_le(stream); + if(face->vertex_indices[j] >= object->vertex_count) + { + g_warning("Q3O: vertex_indices >= vertex_count"); + } + + g3d_context_update_interface(context); + } + /* fallback material */ + face->material = (G3DMaterial *)g_slist_nth_data(object->materials, 0); + g_assert(face->material); + + object->faces = g_slist_append(object->faces, face); + + g3d_context_update_interface(context); + } + + /* material indices */ + fitem = object->faces; + for(i = 0; i < nfaces; i ++) + { + face = (G3DFace *)fitem->data; + g_assert(face != NULL); + mat = g3d_stream_read_int32_le(stream); + face->material = (G3DMaterial*)g_slist_nth_data(model->materials, mat); + if(face->material == NULL) + { + if(mat != -1) g_warning("Q3O: material is NULL (index %d)", mat); + face->material = g_slist_nth_data(object->materials, 0); + } + + g3d_context_update_interface(context); + fitem = fitem->next; + } + + /* normals */ + nnormals = g3d_stream_read_int32_le(stream); + normals = g_new0(G3DFloat, nnormals * 3); +#if DEBUG > 3 + g_debug("Q3O: number of normals: %d", nnormals); +#endif + for(i = 0; i < nnormals; i ++) { + normals[i * 3 + 0] = g3d_stream_read_float_le(stream); + normals[i * 3 + 1] = g3d_stream_read_float_le(stream); + normals[i * 3 + 2] = g3d_stream_read_float_le(stream); + + g3d_context_update_interface(context); + } + + /* update faces */ + if(object->vertex_count == nnormals) { + fitem = object->faces; + for(i = 0; i < nfaces; i ++) { + face = (G3DFace *)fitem->data; + face->normals = g_new0(G3DFloat, faceshapes[i] * 3); + face->flags |= G3D_FLAG_FAC_NORMALS; + for(j = 0; j < faceshapes[i]; j ++) + { + face->normals[j * 3 + 0] = + normals[face->vertex_indices[j] * 3 + 0]; + face->normals[j * 3 + 1] = + normals[face->vertex_indices[j] * 3 + 1]; + face->normals[j * 3 + 2] = + normals[face->vertex_indices[j] * 3 + 2]; + } + + g3d_context_update_interface(context); + fitem = fitem->next; + } + + } + + /* texture stuff */ + ntexco = g3d_stream_read_int32_le(stream); +#if DEBUG > 3 + g_debug("Q3O: number of texture coordinates: %d", ntexco); +#endif + if(n_textures > 0) + { + object->tex_vertex_count = ntexco; + object->tex_vertex_data = g_new0(G3DFloat, 2 * ntexco); + + for(i = 0; i < ntexco; i ++) + { + object->tex_vertex_data[i * 2 + 0] = g3d_stream_read_float_le(stream); + object->tex_vertex_data[i * 2 + 1] = g3d_stream_read_float_le(stream); + } + + fitem = object->faces; + for(i = 0; i < nfaces; i ++) + { + face = (G3DFace *)fitem->data; + face->tex_vertex_count = faceshapes[i]; + face->tex_vertex_data = g_new0(G3DFloat, faceshapes[i] * 2); + for(j = 0; j < faceshapes[i]; j ++) + { + index = g3d_stream_read_int32_le(stream); + face->tex_vertex_data[j * 2 + 0] = + object->tex_vertex_data[face->vertex_indices[j] * 2 + 0]; + face->tex_vertex_data[j * 2 + 1] = + object->tex_vertex_data[face->vertex_indices[j] * 2 + 1]; + } + + g3d_context_update_interface(context); + fitem = fitem->next; + } + } + + /* centerOfMass */ + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + + /* boundingBox */ + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + g3d_stream_read_float_le(stream); + + /* clean up */ + g_free(faceshapes); + if(object->tex_vertex_data) + { + /* should be in faces */ + g_free(object->tex_vertex_data); + object->tex_vertex_data = NULL; + } + if(normals) + g_free(normals); + + g3d_context_update_interface(context); + + return TRUE; +} + +static gboolean q3o_read_material(G3DStream *stream, G3DModel *model, + guint32 index, guint32 n_textures) +{ + gchar buffer[2048], *bufp; + G3DMaterial *material; + gint32 num; + + material = g_slist_nth_data(model->materials, index); + memset(buffer, 0, 2048); + bufp = buffer; + while((*bufp = g3d_stream_read_int8(stream)) != '\0') bufp ++; + material->name = g_strdup(buffer); +#if DEBUG > 0 + g_debug("Q3O: material name: '%s'", buffer); +#endif + + /* ambientColor */ + material->r = g3d_stream_read_float_le(stream); + material->g = g3d_stream_read_float_le(stream); + material->b = g3d_stream_read_float_le(stream); + + /* diffuseColor */ + material->r = g3d_stream_read_float_le(stream); + material->g = g3d_stream_read_float_le(stream); + material->b = g3d_stream_read_float_le(stream); + + /* specularColor */ + material->specular[0] = g3d_stream_read_float_le(stream); + material->specular[1] = g3d_stream_read_float_le(stream); + material->specular[2] = g3d_stream_read_float_le(stream); + + /* transparency */ + material->a = g3d_stream_read_float_le(stream); + if(material->a == 0.0) material->a = 1.0; + if(material->a < 0.1) material->a = 0.1; + + /* texture */ + num = g3d_stream_read_int32_le(stream); +#if DEBUG > 4 + g_debug("Q3O: material unknown uint32: %d", num); +#endif + if((num != -1) && (num < n_textures)) + material->tex_image = q3o_get_texture_nth(model, num); + + return TRUE; +} + +static gboolean q3o_read_texture(G3DStream *stream, G3DModel *model, + guint32 *idx) +{ + G3DImage *image; + gchar buffer[2048], *bufp; +#if DEBUG > 2 + gchar *ppmname; +#endif + guint32 width, height, y, x; + + memset(buffer, 0, 2048); + bufp = buffer; + while((*bufp = g3d_stream_read_int8(stream)) != '\0') + bufp ++; + + width = g3d_stream_read_int32_le(stream); + height = g3d_stream_read_int32_le(stream); +#if DEBUG > 0 + g_debug("Q3O: texture #%d '%s': %dx%d", *idx, buffer, width, height); +#endif + + image = q3o_get_texture_nth(model, *idx); + (*idx) ++; + + image->name = g_strdup(buffer); + image->width = width; + image->height = height; + image->depth = 32; + image->pixeldata = g_new0(guint8, width * height * 4); + image->tex_id = *idx; + + for(y = 0; y < height; y ++) + for(x = 0; x < width; x ++) { + image->pixeldata[(y * width + x) * 4 + 0] = + g3d_stream_read_int8(stream); + image->pixeldata[(y * width + x) * 4 + 1] = + g3d_stream_read_int8(stream); + image->pixeldata[(y * width + x) * 4 + 2] = + g3d_stream_read_int8(stream); + image->pixeldata[(y * width + x) * 4 + 3] = 0xFF; + } + +#if DEBUG > 2 + ppmname = g_strdup_printf("/tmp/%s.ppm", image->name); + g3d_image_dump_ppm(image, ppmname); + g_free(ppmname); +#endif + return TRUE; +} + +static gboolean q3o_read_scene(G3DStream *stream, G3DContext *context) +{ + gchar buffer[2048], *bufp; + guint32 bgw, bgh; + /* position: 3 x float */ + + g3d_stream_skip(stream, 12); + + /* transformation: matrix */ + g3d_stream_skip(stream, 64); + + /* axis: 3 x float */ + g3d_stream_skip(stream, 12); + + /* angle: float */ + g3d_stream_skip(stream, 4); + + /* eyePosition: 3 x float */ + g3d_stream_skip(stream, 12); + + /* eyeRotation: 3 x float */ + g3d_stream_skip(stream, 12); + + /* foregroundColor: color */ + g3d_stream_skip(stream, 12); + + /* backgroundColor: color */ + g3d_context_set_bgcolor(context, + g3d_stream_read_float_le(stream), + g3d_stream_read_float_le(stream), + g3d_stream_read_float_le(stream), + 1.0); + + /* usingEyeFilter: bool */ + g3d_stream_read_int8(stream); + + /* eyeFilterColor: color */ + g3d_stream_skip(stream, 12); + + /* eyeFilterAmount: float */ + g3d_stream_read_float_le(stream); + + /* lightColor: color */ + g3d_stream_skip(stream, 12); + + /* backgroundImageWidth: int */ + bgw = g3d_stream_read_int32_le(stream); + + /* backgroundImageHeight: int */ + bgh = g3d_stream_read_int32_le(stream); + + if(bgw * bgh) { + + /* backgroundFilename */ + memset(buffer, 0, 2048); + bufp = buffer; + while((*bufp = g3d_stream_read_int8(stream)) != '\0') + bufp ++; + +#if DEBUG > 0 + g_debug("Q3O: scene: background image '%s' (%dx%d)", + buffer, bgw, bgh); +#endif + + /* backgroundImage: pixel[] */ + g3d_stream_skip(stream, bgw * bgh * 3); + } + + /* depthCuing: float */ + g3d_stream_read_float_le(stream); + + /* depthCueColor: color */ + g3d_stream_skip(stream, 12); + + /* gamma: float */ + g3d_stream_read_float_le(stream); + + return FALSE; +} + +static gboolean q3o_read_eof(G3DStream *stream) +{ + gchar buffer[7]; + + if(g3d_stream_read(stream, buffer, 7) == 7) { + if(strncmp(buffer, "uick3Ds", 7) == 0) return TRUE; + g_warning("Q3O: did not get expected EOF marker"); + } else { + g_warning("Q3O: premature end of file\n"); + } + return FALSE; +} + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_r4/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_r4 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_r4_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_r4_la_OBJECTS = imp_r4.lo imp_r4_callbacks.lo +imp_r4_la_OBJECTS = $(am_imp_r4_la_OBJECTS) +#am_imp_r4_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_r4_la_SOURCES) +DIST_SOURCES = $(imp_r4_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4 +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4 +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_r4.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_r4_la_SOURCES = imp_r4.c imp_r4_chunks.h \ + imp_r4_callbacks.c imp_r4_callbacks.h + +imp_r4_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_r4.la: $(imp_r4_la_OBJECTS) $(imp_r4_la_DEPENDENCIES) + $(LINK) $(am_imp_r4_la_rpath) $(imp_r4_la_OBJECTS) $(imp_r4_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_r4.Plo +include ./$(DEPDIR)/imp_r4_callbacks.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_r4.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_r4_la_SOURCES = imp_r4.c imp_r4_chunks.h \ + imp_r4_callbacks.c imp_r4_callbacks.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_r4 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_r4_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_r4_la_OBJECTS = imp_r4.lo imp_r4_callbacks.lo +imp_r4_la_OBJECTS = $(am_imp_r4_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_r4_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_r4_la_SOURCES) +DIST_SOURCES = $(imp_r4_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_r4.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_r4_la_SOURCES = imp_r4.c imp_r4_chunks.h \ + imp_r4_callbacks.c imp_r4_callbacks.h + +imp_r4_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_r4.la: $(imp_r4_la_OBJECTS) $(imp_r4_la_DEPENDENCIES) + $(LINK) $(am_imp_r4_la_rpath) $(imp_r4_la_OBJECTS) $(imp_r4_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_r4.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_r4_callbacks.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include + +#include +#include + +#include "imp_r4_chunks.h" + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + G3DIffGlobal *global; + G3DIffLocal *local; + guint32 id; + gsize len; + + if(!g3d_iff_check(stream, &id, &len) || + id != G3D_IFF_MKID('R','E','F','L')) { + g_warning("file is not an .r4 (REFL) file %s", stream->uri); + return FALSE; + } + + local = g_new0(G3DIffLocal, 1); + global = g_new0(G3DIffGlobal, 1); + + global->context = context; + global->model = model; + global->stream = stream; + + local->parent_id = id; + local->nb = len; + + g3d_iff_read_ctnr(global, local, r4_chunks, G3D_IFF_PAD1); + + g_free(local); + g_free(global); + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup( + "Reflections R4 models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("r4:r3:mon", ":", 0); +} + + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include +#include +#include +#include +#include + +#include "imp_r4_chunks.h" + +#if DEBUG > 0 +static void hexdump(G3DStream *stream, guint32 len, gchar *prefix) +{ + guint32 i; + guint8 byte; + + for(i = 0; i < len; i ++) + { + byte = g3d_stream_read_int8(stream); + if(((i % 16) == 0) && (i != 0)) + g_print("\n"); + if(((i % 16) == 0) && (i != (len - 1))) + g_print("%s: %06x: ", (prefix ? prefix : ""), i); + g_print("%02x", byte); + if((i % 4) == 3) + g_print(" "); + } + g_print("\n"); +} +#endif + +static void dump_remaining(G3DIffGlobal *global, G3DIffLocal *local) +{ +#if DEBUG > 0 + gchar *id, *prefix; + + id = g3d_iff_id_to_text(local->id); + prefix = g_strdup_printf("R4: %s", id); + + if(local->nb > 0) + { + printf("R4: %s: %d bytes remaining @ 0x%08x\n", id, local->nb, + (guint32)g3d_stream_tell(global->stream)); + hexdump(global->stream, local->nb, prefix); + local->nb = 0; + } + + g_free(prefix); + g_free(id); +#endif +} + +#if DEBUG > 0 +static void flagstat_register(guint8 flags, guint32 *flagstats) +{ + guint32 i; + + for(i = 0; i < 8; i ++) + if(flags & (1 << i)) + flagstats[i] ++; +} +#endif + +static gchar *r4_read_string(G3DStream *stream, guint32 *r) +{ + gint32 len; + gchar *str; + + len = g3d_stream_read_int16_be(stream); + str = g_malloc0(len + 1); + g3d_stream_read(stream, str, len); + + if(r) + *r = len + 2; + return str; +} + +/* triangles */ +gboolean r4_cb_DRE2(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DObject *object; + G3DFace *face; + guint32 ntris, r; + gint32 i, n_str; + guint8 u, max_u = 0; + gchar *name; +#if DEBUG > 0 + guint32 flagstats[8]; +#endif + + object = g_new0(G3DObject, 1); + object->name = g_strdup("(default)"); + global->model->objects = g_slist_append(global->model->objects, object); + local->object = object; + + /* RGE1 */ + g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1); + +#if DEBUG > 2 + printf("R4: DRE2 offset after RGE1 chunk: 0x%08x\n", + (guint32)g3d_stream_tell(global->stream)); +#endif + + /* read triangles */ + ntris = g3d_stream_read_int32_be(global->stream); +#if DEBUG > 0 + printf("R4: DRE2: %d triangles\n", ntris); +#endif + local->nb -= 4; + for(i = 0; i < ntris; i ++) + { + face = g_new0(G3DFace, 1); + face->material = g_slist_nth_data(global->model->materials, 0); + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, 3); + face->vertex_indices[0] = g3d_stream_read_int32_be(global->stream); + face->vertex_indices[1] = g3d_stream_read_int32_be(global->stream); + face->vertex_indices[2] = g3d_stream_read_int32_be(global->stream); + local->nb -= 12; + object->faces = g_slist_append(object->faces, face); + } + +#if DEBUG > 0 + /* flags/index of material? */ + for(i = 0; i < 8; i ++) + flagstats[i] = 0; +#endif + + for(i = 0; i < ntris; i ++) + { + u = g3d_stream_read_int8(global->stream); + local->nb --; + if(u > max_u) + max_u = u; +#if DEBUG > 0 + flagstat_register(u, flagstats); +#endif + } + +#if DEBUG > 0 + for(i = 0; i < 8; i ++) + printf("R4: DRE2: flag 2^%d: %u\n", i, flagstats[i]); +#endif + +#if DEBUG > 0 + printf("R4: DRE2: max. flag: %d\n", max_u); +#endif + +#if 1 + /* some strings */ + n_str = g3d_stream_read_int32_be(global->stream); + /* may be 0xFFFFFFFF = -1 */ + local->nb -= 4; + g_debug("R4: DRE2: %d string(s) @ 0x%08x:", n_str, + (guint32)g3d_stream_tell(global->stream)); + for(i = 0; i < MIN(n_str, 1); i ++) { + name = r4_read_string(global->stream, &r); + local->nb -= r; +#if DEBUG > 0 + g_debug("R4: DRE2: '%s' (%d)", name, r - 2); +#endif + g_free(name); + } +#endif + + dump_remaining(global, local); + + /* remove transformation if set */ + if(object->transformation) + { + g_free(object->transformation); + object->transformation = NULL; + } + + return TRUE; +} + +/* material: GMAT, GMA0 */ +gboolean r4_cb_GMAx(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DMaterial *material; + gpointer object; + + /* ROBJ */ + object = g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1); + + if(object) + { + material = g3d_material_new(); + material->name = g_convert((gchar *)object, -1, + "UTF-8", "ISO-8859-1", + NULL, NULL, NULL); + g_free(object); + + if(local->object) + ((G3DObject *)local->object)->materials = g_slist_append( + ((G3DObject *)local->object)->materials, material); + else + global->model->materials = g_slist_append(global->model->materials, + material); + + if(local->id == G3D_IFF_MKID('G','M','A','T')) + { + material->r = g3d_stream_read_float_be(global->stream); + material->g = g3d_stream_read_float_be(global->stream); + material->b = g3d_stream_read_float_be(global->stream); + local->nb -= 12; + } + } + + dump_remaining(global, local); + + return TRUE; +} + +/* coordinate system */ +gboolean r4_cb_KSYS(G3DIffGlobal *global, G3DIffLocal *local) +{ + G3DFloat x, y, z, f; + G3DObject *object; + G3DTransformation *transform; + gint32 i, j; + + x = g3d_stream_read_float_be(global->stream); + y = g3d_stream_read_float_be(global->stream); + z = g3d_stream_read_float_be(global->stream); + local->nb -= 12; + +#if DEBUG > 2 + printf("R4: KSYS: %f, %f, %f\n", x, y, z); +#endif + + object = (G3DObject *)local->object; + if(object) + { + transform = g_new0(G3DTransformation, 1); + g3d_matrix_identity(transform->matrix); + g3d_matrix_translate(x, y, z, transform->matrix); + + object->transformation = transform; + + /* matrix parts */ + for(j = 0; j < 3; j ++) + for(i = 0; i < 3; i ++) + transform->matrix[j * 4 + i] = g3d_stream_read_float_be(global->stream); + local->nb -= 36; + + /* scale part */ + f = g3d_stream_read_float_be(global->stream); + local->nb -= 4; + g3d_matrix_scale(f, f, f, transform->matrix); + } + + return TRUE; +} + +/* sphere */ +gboolean r4_cb_KUG1(G3DIffGlobal *global, G3DIffLocal *local) +{ + /* RGE1 */ + g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1); + + dump_remaining(global, local); + + return TRUE; +} + +/* light */ +gboolean r4_cb_LGH3(G3DIffGlobal *global, G3DIffLocal *local) +{ + /* RGE1 */ + g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1); + + return TRUE; +} + +/* points */ +gboolean r4_cb_PKTM(G3DIffGlobal *global, G3DIffLocal *local) +{ + gint32 i, j; + G3DObject *object; + + object = (G3DObject *)local->object; + if(object) + { + object->vertex_count = g3d_stream_read_int32_be(global->stream); + local->nb -= 4; + object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3); + for(i = 0; i < object->vertex_count; i ++) { + for(j = 0; j < 3; j ++) + object->vertex_data[i * 3 + j] = + g3d_stream_read_float_be(global->stream); + local->nb -= 12; + + /* transform vertices */ + if(object->transformation) { + g3d_vector_transform( + object->vertex_data + i * 3 + 0, + object->vertex_data + i * 3 + 1, + object->vertex_data + i * 3 + 2, + object->transformation->matrix); + } + } + } + + return TRUE; +} + +/* geometry or something */ +gboolean r4_cb_RGE1(G3DIffGlobal *global, G3DIffLocal *local) +{ + gchar *name; + + /* ROBJ */ + name = + (gchar *)g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1); + + if(name && local->object) { + g_free(((G3DObject *)local->object)->name); + ((G3DObject *)local->object)->name = g_convert(name, -1, + "UTF-8", "ISO-8859-1", NULL, NULL, NULL); + } + + /* KSYS */ + g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1); + + /* PKTM */ + g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1); + + /* skip remaining bytes */ + if(local->nb) { + g3d_stream_skip(global->stream, local->nb); + local->nb = 0; + } + + dump_remaining(global, local); + + return TRUE; +} + +/* camera related: RKA2, RKA3 */ +gboolean r4_cb_RKAx(G3DIffGlobal *global, G3DIffLocal *local) +{ + /* handle RGE1 chunk */ + g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1); + + /* more stuff... */ + /* TODO: */ + + return TRUE; +} + +/* object name */ +gboolean r4_cb_ROBJ(G3DIffGlobal *global, G3DIffLocal *local) +{ + guint32 len; + + local->level_object = r4_read_string(global->stream, &len); + local->nb -= (len + 2); + +#if DEBUG > 2 + g_debug("[R4] ROBJ: %s", (gchar *)local->level_object); +#endif + + return TRUE; +} + +/* surface: SURF, SUR1 */ +gboolean r4_cb_SURx(G3DIffGlobal *global, G3DIffLocal *local) +{ + /* GMAT or GMA1 */ + g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1); + + dump_remaining(global, local); + + return TRUE; +} + +/* texture material */ +gboolean r4_cb_TXM1(G3DIffGlobal *global, G3DIffLocal *local) +{ + /* SURF */ + g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1); + + dump_remaining(global, local); + + return TRUE; +} + +/* texture object? */ +gboolean r4_cb_TXO1(G3DIffGlobal *global, G3DIffLocal *local) +{ + /* RGE1 */ + g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1); + + dump_remaining(global, local); + + return TRUE; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _G3D_R4_CALLBACKS_H +#define _G3D_R4_CALLBACKS_H + +#include + +gboolean r4_cb_DRE2(G3DIffGlobal *global, G3DIffLocal *local); +gboolean r4_cb_GMAx(G3DIffGlobal *global, G3DIffLocal *local); +gboolean r4_cb_KSYS(G3DIffGlobal *global, G3DIffLocal *local); +gboolean r4_cb_KUG1(G3DIffGlobal *global, G3DIffLocal *local); +gboolean r4_cb_LGH3(G3DIffGlobal *global, G3DIffLocal *local); +gboolean r4_cb_PKTM(G3DIffGlobal *global, G3DIffLocal *local); +gboolean r4_cb_RGE1(G3DIffGlobal *global, G3DIffLocal *local); +gboolean r4_cb_RKAx(G3DIffGlobal *global, G3DIffLocal *local); +gboolean r4_cb_ROBJ(G3DIffGlobal *global, G3DIffLocal *local); +gboolean r4_cb_SURx(G3DIffGlobal *global, G3DIffLocal *local); +gboolean r4_cb_TXM1(G3DIffGlobal *global, G3DIffLocal *local); +gboolean r4_cb_TXO1(G3DIffGlobal *global, G3DIffLocal *local); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_R4_CHUNKS_H +#define _IMP_R4_CHUNKS_H + +#include + +#include "imp_r4_callbacks.h" + +static G3DIffChunkInfo r4_chunks[] = { + { "AFX1", "unknown", 0, NULL }, /* mon */ + { "DRE2", "triangles", 0, r4_cb_DRE2 }, + { "DSP2", "unknown", 0, NULL }, /* R4.3 */ + { "GLOW", "unknown", 0, NULL }, /* R4.3 */ + { "GMA1", "material", 0, r4_cb_GMAx }, + { "GMAT", "material", 0, r4_cb_GMAx }, + { "INFO", "information", 0, NULL }, + { "KSYS", "coordinate system", 0, r4_cb_KSYS }, + { "KUG1", "sphere", 0, r4_cb_KUG1 }, + { "LGH3", "light", 0, r4_cb_LGH3 }, + { "MTEX", "unknown", 0, NULL }, /* mon */ + { "NEB1", "fog?", 0, NULL }, /* mon */ + { "NEBL", "fog?", 0, NULL }, + { "PKL1", "unknown", 0, NULL }, /* R4.3 */ + { "PKTM", "points", 0, r4_cb_PKTM }, + { "POLY", "polygons", 0, NULL }, /* mon */ + { "RGE1", "geometry", 0, r4_cb_RGE1 }, + { "RKA2", "camera", 0, r4_cb_RKAx }, + { "RKA3", "camera", 0, r4_cb_RKAx }, + { "ROBJ", "object name", 0, r4_cb_ROBJ }, + { "RSPG", "unknown", 0, NULL }, /* R4.3 */ + { "SEQ1", "sequence", 0, NULL }, + { "SEQ2", "sequence", 0, NULL }, + { "SKE2", "unknown", 0, NULL }, /* R4.3 */ + { "SUR1", "surface", 0, r4_cb_SURx }, + { "SURF", "surface", 0, r4_cb_SURx }, + { "TXM1", "unknown", 0, r4_cb_TXM1 }, + { "TXO1", "unknown", 0, r4_cb_TXO1 }, + + { NULL, NULL, 0, NULL } +}; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_rbh/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_rbh +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_rbh_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_rbh_la_OBJECTS = imp_rbh.lo imp_rbh_callbacks.lo +imp_rbh_la_OBJECTS = $(am_imp_rbh_la_OBJECTS) +#am_imp_rbh_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_rbh_la_SOURCES) +DIST_SOURCES = $(imp_rbh_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_rbh.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_rbh_la_SOURCES = imp_rbh.c imp_rbh_chunks.h \ + imp_rbh_callbacks.c imp_rbh_callbacks.h + +imp_rbh_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_rbh.la: $(imp_rbh_la_OBJECTS) $(imp_rbh_la_DEPENDENCIES) + $(LINK) $(am_imp_rbh_la_rpath) $(imp_rbh_la_OBJECTS) $(imp_rbh_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_rbh.Plo +include ./$(DEPDIR)/imp_rbh_callbacks.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_rbh.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_rbh_la_SOURCES = imp_rbh.c imp_rbh_chunks.h \ + imp_rbh_callbacks.c imp_rbh_callbacks.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_rbh +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_rbh_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_rbh_la_OBJECTS = imp_rbh.lo imp_rbh_callbacks.lo +imp_rbh_la_OBJECTS = $(am_imp_rbh_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_rbh_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_rbh_la_SOURCES) +DIST_SOURCES = $(imp_rbh_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_rbh.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_rbh_la_SOURCES = imp_rbh.c imp_rbh_chunks.h \ + imp_rbh_callbacks.c imp_rbh_callbacks.h + +imp_rbh_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_rbh.la: $(imp_rbh_la_OBJECTS) $(imp_rbh_la_DEPENDENCIES) + $(LINK) $(am_imp_rbh_la_rpath) $(imp_rbh_la_OBJECTS) $(imp_rbh_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_rbh.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_rbh_callbacks.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include + +#include +#include + +#include "imp_rbh_chunks.h" + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + G3DIffGlobal *global; + G3DIffLocal *local; + guint32 id, len; + + id = g3d_stream_read_int32_be(stream); + len = g3d_stream_read_int32_le(stream); + + if(id != G3D_IFF_MKID('P', 'I', 'F', 'F')) + { + g_warning("%s is not a PIFF file", stream->uri); + return FALSE; + } + + id = g3d_stream_read_int32_be(stream); + len -= 4; + if(id != G3D_IFF_MKID('R', 'B', 'H', 'F')) + { + g_warning("%s is not a RBHF file", stream->uri); + return FALSE; + } + + local = g_new0(G3DIffLocal, 1); + global = g_new0(G3DIffGlobal, 1); + + global->context = context; + global->model = model; + global->stream = stream; + + local->parent_id = id; + local->nb = len; + + g3d_iff_read_ctnr(global, local, rbh_chunks, G3D_IFF_LE | G3D_IFF_PAD2); + + g_free(local); + g_free(global); + + return TRUE; + +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("Discworld Noir models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("rbh", ":", 0); +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include +#include +#include +#include + +static gchar *padding = " "; + +/* header */ +gboolean rbh_cb_RBHH(G3DIffGlobal *global, G3DIffLocal *local) +{ + guint32 x0, x1, x2; + guint32 i, num; + + num = local->nb / 12; + for(i = 0; i < num; i ++) + { + x0 = g3d_stream_read_int32_le(global->stream); + x1 = g3d_stream_read_int32_le(global->stream); + x2 = g3d_stream_read_int32_le(global->stream); + local->nb -= 12; + + g_debug("\\%s[RBH][RBHH] %d: 0x%08x 0x%08x 0x%08x", + padding + (strlen(padding) - local->level), + i + 1, x0, x1, x2); + } + + return TRUE; +} + +/* body */ +gboolean rbh_cb_BODY(G3DIffGlobal *global, G3DIffLocal *local) +{ + guint32 nverts, nfaces; + guint32 maxx = 0, x; + G3DObject *object; + G3DMaterial *material; + + if(local->nb < 4) return TRUE; /* zero size BODY tags? */ + + + nverts = g3d_stream_read_int16_le(global->stream); + + nfaces = g3d_stream_read_int16_le(global->stream); + local->nb -= 4; + + g_debug( + "\\%s[RBH][BODY] %d verts, %d faces, %d bytes remaining (%d x 4 + %d)", + padding + (strlen(padding) - local->level), + nverts, nfaces, local->nb, + local->nb / 4, local->nb % 4); + + if(nverts == 0) return TRUE; /* skip for now */ + + object = g_new0(G3DObject, 1); + object->name = g_strdup("BODY"); + + material = g3d_material_new(); + object->materials = g_slist_append(object->materials, material); + + global->model->objects = g_slist_append(global->model->objects, object); + + while(local->nb >= 4) + { + x = g3d_stream_read_int32_le(global->stream); + if(x > maxx) maxx = x; + local->nb -= 4; + } + + g_debug("\\%s[RBH][BODY] max. value: %d", + padding + (strlen(padding) - local->level), + maxx); + + return TRUE; +} + +/* ?? */ +gboolean rbh_cb_RELC(G3DIffGlobal *global, G3DIffLocal *local) +{ + guint32 maxx = 0, x; + + while(local->nb >= 4) + { + x = g3d_stream_read_int32_le(global->stream); + if(x > maxx) maxx = x; + local->nb -= 4; + } + + g_debug("\\%s[RBH][RELC] max. value: %d", + padding + (strlen(padding) - local->level), + maxx); + + return TRUE; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_RBH_CALLBACKS_H +#define _IMP_RBH_CALLBACKS_H + +#include + +gboolean rbh_cb_RBHH(G3DIffGlobal *global, G3DIffLocal *local); +gboolean rbh_cb_BODY(G3DIffGlobal *global, G3DIffLocal *local); +gboolean rbh_cb_RELC(G3DIffGlobal *global, G3DIffLocal *local); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_RBH_CHUNKS_H +#define _IMP_RBH_CHUNKS_H + +#include + +#include "imp_rbh_callbacks.h" + +static G3DIffChunkInfo rbh_chunks[] = { + { "RBHH", "RBH header", 0, rbh_cb_RBHH }, + { "BODY", "body", 0, rbh_cb_BODY }, + { "RELC", "unknown", 0, rbh_cb_RELC }, + + { NULL, NULL, 0, NULL } +}; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_skp/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_skp +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_skp_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_skp_la_OBJECTS = imp_skp.lo imp_skp_callbacks.lo \ + imp_skp_read.lo +imp_skp_la_OBJECTS = $(am_imp_skp_la_OBJECTS) +#am_imp_skp_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_skp_la_SOURCES) +DIST_SOURCES = $(imp_skp_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_skp.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_skp_la_SOURCES = imp_skp.c imp_skp.h imp_skp_types.h \ + imp_skp_chunks.h imp_skp_callbacks.h imp_skp_callbacks.c \ + imp_skp_read.c imp_skp_read.h + +imp_skp_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_skp.la: $(imp_skp_la_OBJECTS) $(imp_skp_la_DEPENDENCIES) + $(LINK) $(am_imp_skp_la_rpath) $(imp_skp_la_OBJECTS) $(imp_skp_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_skp.Plo +include ./$(DEPDIR)/imp_skp_callbacks.Plo +include ./$(DEPDIR)/imp_skp_read.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_skp.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_skp_la_SOURCES = imp_skp.c imp_skp.h imp_skp_types.h \ + imp_skp_chunks.h imp_skp_callbacks.h imp_skp_callbacks.c \ + imp_skp_read.c imp_skp_read.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_skp +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_skp_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_skp_la_OBJECTS = imp_skp.lo imp_skp_callbacks.lo \ + imp_skp_read.lo +imp_skp_la_OBJECTS = $(am_imp_skp_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_skp_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_skp_la_SOURCES) +DIST_SOURCES = $(imp_skp_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_skp.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_skp_la_SOURCES = imp_skp.c imp_skp.h imp_skp_types.h \ + imp_skp_chunks.h imp_skp_callbacks.h imp_skp_callbacks.c \ + imp_skp_read.c imp_skp_read.h + +imp_skp_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_skp.la: $(imp_skp_la_OBJECTS) $(imp_skp_la_DEPENDENCIES) + $(LINK) $(am_imp_skp_la_rpath) $(imp_skp_la_OBJECTS) $(imp_skp_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_skp.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_skp_callbacks.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_skp_read.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +#include +#include +#include +#include + +#include "imp_skp.h" +#include "imp_skp_read.h" +#include "imp_skp_chunks.h" + +static gboolean skp_parse_version_map(G3DStream *stream, guint32 *max_nlen, + guint32 *max_version); +static gchar *skp_find_section(G3DStream *stream, guint32 max_nlen, + guint32 max_version, guint32 *version); +static SkpChunkDesc *skp_get_chunk_desc(gchar *cname); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + gchar *smagic, *sversion, *stmp, *ssection; + guint32 max_nlen = 0, max_version = 0, version = 0; + SkpChunkDesc *desc; + SkpGlobalData *global; + SkpLocalData *local; + + smagic = skp_read_wchar(stream); + if(smagic == NULL) { + g_warning("not a valid .skp file: '%s'", stream->uri); + return FALSE; + } + sversion = skp_read_wchar(stream); + if(sversion == NULL) { + g_warning("failed to read version from '%s'", stream->uri); + g_free(smagic); + return FALSE; + } + + g_debug("SKP: magic: '%s', version: '%s'", smagic, sversion); + g_free(smagic); + g_free(sversion); + + g3d_stream_seek(stream, 16, G_SEEK_CUR); + stmp = skp_read_wchar(stream); + if(stmp != NULL) + g_free(stmp); + g3d_stream_read_int32_le(stream); + + ssection = skp_read_char(stream); + if(ssection) { + if(strcmp(ssection, "CVersionMap") == 0) + g_debug("\\CVersionMap"); + skp_parse_version_map(stream, &max_nlen, &max_version); + g_free(ssection); + } + + global = g_new0(SkpGlobalData, 1); + global->context = context; + global->model = model; + global->stream = stream; + + ssection = skp_find_section(stream, max_nlen, max_version, &version); + while(ssection != NULL) { + desc = skp_get_chunk_desc(ssection); + if(desc == NULL) { + g_warning("SKP: unknown chunk type '%s'", ssection); + } else { + if((version > desc->max_ver) || (version < desc->min_ver)) { + g_warning("SKP: %s: unhandled version %u (%u - %u)", + ssection, version, desc->min_ver, desc->max_ver); + } else { + if(desc->callback) { + local = g_new0(SkpLocalData, 1); + local->id = desc->id; + local->version = version; + + desc->callback(global, local); + + g_free(local); + } + } /* version check */ + } /* has desc */ + + ssection = skp_find_section(stream, max_nlen, max_version, &version); + } /* sections */ + + /* clean up */ + g_free(global); + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("SketchUp models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("skp", ":", 0); +} + + +/*****************************************************************************/ + +static gboolean skp_parse_version_map(G3DStream *stream, guint32 *max_nlen, + guint32 *max_version) +{ + gchar *part; + guint32 version; + + while(TRUE) { + part = skp_read_wchar(stream); + if(part == NULL) + return FALSE; + version = g3d_stream_read_int32_le(stream); +#if DEBUG > 1 + g_debug("\t%-30s %u", part, version); +#endif + if(strcmp(part, "End-Of-Version-Map") == 0) { + g_free(part); + return TRUE; + } + + if(version > *max_version) + *max_version = version; + if(strlen(part) > *max_nlen) + *max_nlen = strlen(part); + + g_free(part); + } + return FALSE; +} + +static gchar *skp_find_section(G3DStream *stream, guint32 max_nlen, + guint32 max_version, guint32 *version) +{ + goffset offset; + guint32 ver, nlen; + guint16 w1; + gchar *name; + + while(!g3d_stream_eof(stream) && (g3d_stream_read_int8(stream) != 0xFF)); + + if(g3d_stream_eof(stream)) + return NULL; + + offset = g3d_stream_tell(stream); + if(g3d_stream_read_int8(stream) != 0xFF) { + g3d_stream_seek(stream, offset, G_SEEK_SET); + return skp_find_section(stream, max_nlen, max_version, version); + } + + ver = g3d_stream_read_int16_le(stream); + if(ver > max_version) { + g3d_stream_seek(stream, offset, G_SEEK_SET); + return skp_find_section(stream, max_nlen, max_version, version); + } + + nlen = g3d_stream_read_int16_le(stream); + if(nlen > max_nlen) { + g3d_stream_seek(stream, offset, G_SEEK_SET); + return skp_find_section(stream, max_nlen, max_version, version); + } + + name = g_new0(gchar, nlen + 1); + g3d_stream_read(stream, name, nlen); + if(name[0] != 'C') { + g_free(name); + g3d_stream_seek(stream, offset, G_SEEK_SET); + return skp_find_section(stream, max_nlen, max_version, version); + } + *version = ver; + + w1 = g3d_stream_read_int16_le(stream); + g3d_stream_seek(stream, -2, G_SEEK_CUR); + + g_debug("\\%-30s v%-2u @ 0x%08x (0x%04x)", name, ver, + (guint32)g3d_stream_tell(stream), w1); + + return name; +} + +static SkpChunkDesc *skp_get_chunk_desc(gchar *cname) +{ + guint32 i; + + for(i = 0; skp_chunks[i].id != NULL; i ++) { + if(strcmp(cname, skp_chunks[i].id) == 0) + return &(skp_chunks[i]); + } + return NULL; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_SKB_H +#define _IMP_SKB_H + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include +#include + +#include "imp_skp.h" +#include "imp_skp_callbacks.h" +#include "imp_skp_read.h" +#include "imp_skp_types.h" + +gboolean skp_cb_arc_curve(SkpGlobalData *global, SkpLocalData *local) +{ + guint16 w1; + + w1 = g3d_stream_read_int16_le(global->stream); + g_return_val_if_fail(w1 == 0x0000, FALSE); + + return TRUE; +} + +/*****************************************************************************/ + +gboolean skp_cb_attribute_container(SkpGlobalData *global, SkpLocalData *local) +{ + guint16 w1; + + w1 = g3d_stream_read_int16_le(global->stream); + g_return_val_if_fail(w1 == 0x0000, FALSE); + + return TRUE; +} + +/*****************************************************************************/ + +gboolean skp_cb_attribute_named(SkpGlobalData *global, SkpLocalData *local) +{ + guint32 x1; + guint16 w1, w2, w3; + guint8 u1, u2; + gdouble d1; + gchar *name, *val, *tmp; + + w1 = g3d_stream_read_int16_le(global->stream); + w2 = g3d_stream_read_int16_le(global->stream); + w3 = g3d_stream_read_int16_le(global->stream); + + name = skp_read_wchar(global->stream); + while(name != NULL) { + tmp = skp_read_wchar(global->stream); + if(tmp != NULL) { + /* got a section */ +#if DEBUG > 1 + g_debug("\t%s", name); +#endif + g_free(name); + name = tmp; + continue; + } + u1 = g3d_stream_read_int8(global->stream); + switch(u1) { + case 0x00: /* end of CAttributeNamed */ + g_free(name); + return TRUE; + break; + case 0x04: /* 32-bit */ + x1 = g3d_stream_read_int32_le(global->stream); +#if DEBUG > 1 + g_debug("\t\t%-20s: 0x%08x", name, x1); +#endif + break; + case 0x06: /* double */ + d1 = g3d_stream_read_double_le(global->stream); +#if DEBUG > 1 + g_debug("\t\t%-20s: %.4f", name, d1); +#endif + break; + case 0x07: /* boolean */ + u2 = g3d_stream_read_int8(global->stream); +#if DEBUG > 1 + g_debug("\t\t%-20s: %s", name, (u2 ? "true" : "false")); +#endif + break; + case 0x09: /* end of section? */ + g3d_stream_seek(global->stream, 7, G_SEEK_CUR); +#if DEBUG > 1 + g_debug("\t\t%-20s: EOS", name); +#endif + break; + case 0x0A: /* string */ + val = skp_read_wchar(global->stream); + g_return_val_if_fail(val != NULL, FALSE); +#if DEBUG > 1 + g_debug("\t\t%-20s: %s", name, val); +#endif + g_free(val); + break; + default: + g_warning( + "SKP: CAttributeNamed: unknown attribute type: 0x%02X", + u1); + return FALSE; + break; + } + + g_free(name); + name = skp_read_wchar(global->stream); + } + return TRUE; +} + +/*****************************************************************************/ + +gboolean skp_cb_component_definition(SkpGlobalData *global, + SkpLocalData *local) +{ + SkpComponent *comp; + guint32 x1, w1; + gchar *s; + gdouble d1, d2; + + w1 = g3d_stream_read_int16_le(global->stream); + g_return_val_if_fail(w1 == 0x0000, FALSE); + + skp_read_10b(global->stream); + skp_read_10b(global->stream); + + x1 = g3d_stream_read_int32_le(global->stream); + g_debug("CComponentDefinition: %d", x1); + + w1 = g3d_stream_read_int16_le(global->stream); + if(!(w1 & 0x8000)) { + g_warning("CComponentDefinition: layerid=0x%04x", w1); + return FALSE; + } + w1 &= 0x7FFF; + g3d_stream_read_int16_le(global->stream); /* 0000 */ + + s = skp_read_wchar(global->stream); + if(s == NULL) { + g_warning("CComponentDefinition: s[0] == NULL"); + return FALSE; + } + g3d_stream_seek(global->stream, 3, G_SEEK_CUR); + s = skp_read_wchar(global->stream); + if(s == NULL) { + g_warning("CComponentDefinition: s[1] == NULL"); + return FALSE; + } + g3d_stream_seek(global->stream, 6, G_SEEK_CUR); + s = skp_read_wchar(global->stream); + if(s == NULL) { + g_warning("CComponentDefinition: s[2] == NULL"); + return FALSE; + } + + d1 = g3d_stream_read_double_le(global->stream); + d2 = g3d_stream_read_double_le(global->stream); + g_debug("CComponentDefinition: d1=%.2f, d2=%.2f", d1, d2); + + g3d_stream_seek(global->stream, 5, G_SEEK_CUR); + + comp = g_new0(SkpComponent, 1); + comp->layerid = w1; + + comp->id0 = g3d_stream_read_int16_le(global->stream); + g3d_stream_read_int32_le(global->stream); + g3d_stream_read_int8(global->stream); + comp->id1 = g3d_stream_read_int16_le(global->stream); + + g_debug("Component: 0x%02x, 0x%02x (0x%02x)", + comp->id0, comp->id1, comp->layerid); + + global->components = g_slist_append(global->components, comp); + + return TRUE; +} + +/*****************************************************************************/ + +static gboolean skp_read_5b(G3DStream *stream) +{ + guint32 w1, w2, u1; + + w1 = g3d_stream_read_int16_le(stream); + u1 = g3d_stream_read_int8(stream); + w2 = g3d_stream_read_int16_le(stream); + g_debug("\tread 5b: %04x %02x %04x", w1, u1, w2); + return TRUE; +} + +gboolean skp_cb_edge_use(SkpGlobalData *global, SkpLocalData *local) +{ + guint16 w1, w2; + guint32 x1; + gdouble d1, d2, d3, d4; + gboolean handled; + GSList *item; + SkpComponent *comp; + + w1 = g3d_stream_read_int16_le(global->stream); + g_return_val_if_fail(w1 == 0x0000, FALSE); + + skp_read_5b(global->stream); + + do { + w1 = g3d_stream_read_int16_le(global->stream); + handled = FALSE; + + g_debug("opcode: 0x%04x", w1); + if(w1 == 0xFFFF) { + g3d_stream_seek(global->stream, -2, G_SEEK_CUR); + return TRUE; + } + if(w1 & 0x8000) { + g3d_stream_read_int16_le(global->stream); + w1 &= 0x7FFF; + } + if(w1 == 0x0000) { + handled = TRUE; + } + + for(item = global->components; + (handled == FALSE) && (item != NULL); + item = item->next) { + + comp = item->data; + + switch(w1 - comp->id0) { + case 1: + skp_read_10b(global->stream); + w2 = g3d_stream_read_int16_le(global->stream); + handled = TRUE; + g_debug("\tw2=0x%04x", w2); + break; + case 3: + skp_read_dbl3(global->stream, &d1, &d2, &d3); + g_debug("\tvertex: %.4f, %.4f, %.4f", d1, d2, d3); + handled = TRUE; + break; + case 4: + case 5: + case 7: + g_debug("\tempty"); + handled = TRUE; + break; + default: + break; + } + if(handled) + break; + switch(w1 - comp->id1) { + case 0: + skp_read_10b(global->stream); + d1 = g3d_stream_read_double_le(global->stream); + d2 = g3d_stream_read_double_le(global->stream); + d3 = g3d_stream_read_double_le(global->stream); + d4 = g3d_stream_read_double_le(global->stream); + x1 = g3d_stream_read_int32_le(global->stream); + g_debug("\tid1+4: dbl4: %.2f, %.2f, %.2f, %.2f (%i)", + d1, d2, d3, d4, x1); + handled = TRUE; + break; + case 2: + w2 = g3d_stream_read_int16_le(global->stream); + g_debug("\ti16: 0x%04x", w2); + handled = TRUE; + break; + case 4: + skp_read_5b(global->stream); + handled = TRUE; + break; + case 5: + case 9: + case 17: + case 19: + g_debug("\tempty"); + handled = TRUE; + break; + default: + break; + } + } /* loop through known layers */ + + if(handled == FALSE) { + g_debug("vertex: unknown opcode %#04x (layer0: 0x%04x, 0x%04x)", + w1, + global->components ? + ((SkpComponent *)(global->components->data))->id0 : -1, + global->components ? + ((SkpComponent *)(global->components->data))->id1 : -1); + } + } while(TRUE); + + return FALSE; + +} + +/*****************************************************************************/ + +gboolean skp_cb_face_texture_coords(SkpGlobalData *global, SkpLocalData *local) +{ +#if DEBUG > 1 + gint32 i; + guint16 w1; + G3DFloat f1, f2, f3, f4; + + w1 = g3d_stream_read_int16_le(global->stream); + g_return_val_if_fail(w1 == 0x0000, FALSE); + + for(i = 0; i < 24; i ++) { + f1 = g3d_stream_read_float_le(global->stream); + f2 = g3d_stream_read_float_le(global->stream); + f3 = g3d_stream_read_float_le(global->stream); + f4 = g3d_stream_read_float_le(global->stream); + g_debug("\tf: %.4f, %.4f, %.4f, %.4f", f1, f2, f3, f4); + } +#endif + return TRUE; +} + +/*****************************************************************************/ + +gboolean skp_cb_layer(SkpGlobalData *global, SkpLocalData *local) +{ + guint32 x1; + guint16 w1; + guint8 u1, u2, u3; + gchar *s1, *s2; + + do { + w1 = g3d_stream_read_int16_le(global->stream); + g_return_val_if_fail(w1 == 0x0000, FALSE); + + s1 = skp_read_wchar(global->stream); + u1 = g3d_stream_read_int8(global->stream); + u2 = g3d_stream_read_int8(global->stream); + u3 = g3d_stream_read_int8(global->stream); + + g_debug("\\ %s (0x%02X, 0x%02X, 0x%02X)", s1, u1, u2, u3); + + s2 = skp_read_wchar(global->stream); + u1 = g3d_stream_read_int8(global->stream); + u2 = g3d_stream_read_int8(global->stream); + g_return_val_if_fail(u2 == 0x01, FALSE); + + /* layer color? */ + x1 = g3d_stream_read_int32_le(global->stream); + g_debug("\\ %s (0x%02X, 0x%02X, 0x%08x)", s2, u1, u2, x1); + + x1 = g3d_stream_read_int32_le(global->stream); + if(x1 == 0x00fffeff) + g3d_stream_seek(global->stream, 21, G_SEEK_CUR); + else if(x1 == 0xfffffeff) + g3d_stream_seek(global->stream, 20, G_SEEK_CUR); + else { + g_warning("CLayer: unexpected value 0x%08x @ 0x%08x", x1, + (guint32)g3d_stream_tell(global->stream) - 4); + return FALSE; + } + w1 = g3d_stream_read_int16_le(global->stream); + global->layers = g_slist_append(global->layers, + GINT_TO_POINTER(w1 & 0x7FFF)); + g_debug("CLayer ID: 0x%2x", w1 & 0x7FFF); + + if(s1) + g_free(s1); + if(s2) + g_free(s2); + + } while(w1 & 0x8000); + + x1 = g3d_stream_read_int32_le(global->stream); + g_debug("CLayer: last 0x%08x", x1); + + return TRUE; +} + +/*****************************************************************************/ + +gboolean skp_cb_material(SkpGlobalData *global, SkpLocalData *local) +{ + gchar *name, *tmp; + guint8 u1, u2, u3; + guint32 x1, type, size; + G3DFloat r, g, b, a; + G3DMaterial *material; + + g3d_stream_read_int16_le(global->stream); + + name = skp_read_wchar(global->stream); + while(name) { + tmp = NULL; + size = 0; + + material = g3d_material_new(); + material->name = g_strdup(name); + global->model->materials = g_slist_append(global->model->materials, + material); + + type = g3d_stream_read_int16_le(global->stream); + switch(type) { + case 0x0000: /* simple color */ + r = g3d_stream_read_int8(global->stream); + g = g3d_stream_read_int8(global->stream); + b = g3d_stream_read_int8(global->stream); + a = g3d_stream_read_int8(global->stream); + + material->r = r / 255.0; + material->g = g / 255.0; + material->b = b / 255.0; + material->a = a / 255.0; +#if DEBUG > 1 + g_debug( + "\tmaterial: %-30s 0x%04x, " + "color (%.1f, %.1f, %.1f)", + name, type, material->r, material->g, material->b); +#endif + break; + + case 0x0001: /* texture */ + u1 = g3d_stream_read_int8(global->stream); + u2 = g3d_stream_read_int8(global->stream); + u3 = g3d_stream_read_int8(global->stream); + if(u3 == 0x80) { + /* number of textures? */ + x1 = g3d_stream_read_int32_le(global->stream); + if(x1 > 0) { + size = g3d_stream_read_int32_le(global->stream); + g3d_stream_seek(global->stream, size, G_SEEK_CUR); + } + } else { + x1 = 0x0004; + } + switch(x1) { + case 0x0000: + g3d_stream_seek(global->stream, 12, G_SEEK_CUR); + break; + case 0x0001: + g3d_stream_seek(global->stream, 20, G_SEEK_CUR); + break; + case 0x0002: + g3d_stream_seek(global->stream, 16, G_SEEK_CUR); + break; + case 0x0004: + g3d_stream_seek(global->stream, 16, G_SEEK_CUR); + break; + default: + g3d_stream_seek(global->stream, 16, G_SEEK_CUR); + g_debug("SKP: mat0001: x1=%x: " + "%02X%02X %02X%02X %02X%02X %02X%02X", x1, + g3d_stream_read_int8(global->stream), + g3d_stream_read_int8(global->stream), + g3d_stream_read_int8(global->stream), + g3d_stream_read_int8(global->stream), + g3d_stream_read_int8(global->stream), + g3d_stream_read_int8(global->stream), + g3d_stream_read_int8(global->stream), + g3d_stream_read_int8(global->stream)); + break; + } + tmp = skp_read_wchar(global->stream); + g3d_stream_seek(global->stream, 8, G_SEEK_CUR); +#if DEBUG > 1 + g_debug( + "\tmaterial: %-30s 0x%04x, %02X, %02X, %02X, 0x%08x\n" + "\t\ttexture (%d bytes, 0x%08x):\n\t\t%s", + name, type, u1, u2, u3, x1, size, + (guint32)g3d_stream_tell(global->stream), tmp); +#endif + + break; + + case 0x0101: /* texture */ + /* number of textures? */ + x1 = g3d_stream_read_int32_le(global->stream); + size = g3d_stream_read_int32_le(global->stream); + g3d_stream_seek(global->stream, size, G_SEEK_CUR); + g3d_stream_seek(global->stream, 16, G_SEEK_CUR); + tmp = skp_read_wchar(global->stream); + g3d_stream_seek(global->stream, 8, G_SEEK_CUR); +#if DEBUG > 1 + g_debug( + "\tmaterial: %-30s 0x%04x, 0x%08x\n" + "\t\ttexture (%i bytes):\n\t\t%s", + name, type, x1, size, tmp); +#endif + break; + + default: + g_debug("SKP: material: unknown type 0x%04X @ 0x%08x", + type, (guint32)g3d_stream_tell(global->stream)); + return FALSE; + } + + x1 = g3d_stream_read_int32_be(global->stream); + switch(x1 & 0x00FFL) { + case 0x00: + g3d_stream_seek(global->stream, 21, G_SEEK_CUR); + break; + case 0xFF: + g3d_stream_seek(global->stream, 22, G_SEEK_CUR); + break; + default: + g_debug("x1: 0x%08x", x1); + break; + } + + /* clean up */ + if(tmp) + g_free(tmp); + g_free(name); + + /* next one */ + name = skp_read_wchar(global->stream); + } + return TRUE; +} + +/*****************************************************************************/ + +gboolean skp_cb_vertex(SkpGlobalData *global, SkpLocalData *local) +{ + guint16 w1; + gdouble d1, d2, d3; + gboolean handled; + GSList *item; + SkpComponent *comp; + + return FALSE; + + w1 = g3d_stream_read_int16_le(global->stream); + g_return_val_if_fail(w1 == 0x0000, FALSE); + + skp_read_dbl3(global->stream, &d1, &d2, &d3); + g_debug("\tvertex: %.4f, %.4f, %.4f", d1, d2, d3); + + do { + w1 = g3d_stream_read_int16_le(global->stream); + handled = FALSE; + + g_debug("opcode: 0x%04x", w1); + if(w1 == 0xFFFF) { + g3d_stream_seek(global->stream, -2, G_SEEK_CUR); + return TRUE; + } + if(w1 & 0x8000) { + g3d_stream_read_int16_le(global->stream); + w1 &= 0x7FFF; + } + if(w1 == 0x0000) { + handled = TRUE; + } + + for(item = global->components; + (handled == FALSE) && (item != NULL); + item = item->next) { + + comp = item->data; + + switch(w1 - comp->id0) { + case 1: + skp_read_10b(global->stream); + handled = TRUE; + break; + case 3: + skp_read_dbl3(global->stream, &d1, &d2, &d3); + g_debug("\tvertex: %.4f, %.4f, %.4f", d1, d2, d3); + handled = TRUE; + break; + case 4: + case 5: + case 7: + case 9: + case 11: + case 13: + g_debug("\tempty"); + handled = TRUE; + break; + default: + break; + } + } /* loop through known layers */ + + if(handled == FALSE) { + g_debug("vertex: unknown opcode %#04x (layer0: 0x%04x, 0x%04x)", + w1, + global->components ? + ((SkpComponent *)(global->components->data))->id0 : -1, + global->components ? + ((SkpComponent *)(global->components->data))->id1 : -1); + } + } while(TRUE); + + return FALSE; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_SKP_CALLBACKS_H +#define _IMP_SKP_CALLBACKS_H + +#include + +typedef struct { + G3DContext *context; + G3DModel *model; + G3DStream *stream; + GSList *layers; + GSList *components; +} SkpGlobalData; + +typedef struct { + gchar *id; + guint32 version; + gpointer object; +} SkpLocalData; + +typedef gboolean (* SkpCallback)(SkpGlobalData *global, SkpLocalData *local); + +/* callbacks */ + +gboolean skp_cb_arc_curve(SkpGlobalData *global, SkpLocalData *local); +gboolean skp_cb_attribute_container(SkpGlobalData *global, + SkpLocalData *local); +gboolean skp_cb_attribute_named(SkpGlobalData *global, SkpLocalData *local); +gboolean skp_cb_component_definition(SkpGlobalData *global, + SkpLocalData *local); +gboolean skp_cb_edge_use(SkpGlobalData *global, SkpLocalData *local); +gboolean skp_cb_face_texture_coords(SkpGlobalData *global, + SkpLocalData *local); +gboolean skp_cb_layer(SkpGlobalData *global, SkpLocalData *local); +gboolean skp_cb_material(SkpGlobalData *global, SkpLocalData *local); +gboolean skp_cb_vertex(SkpGlobalData *global, SkpLocalData *local); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_SKP_CHUNKS_H +#define _IMP_SKP_CHUNKS_H + +#include "imp_skp_callbacks.h" + +typedef struct { + gchar *id; + guint32 min_ver; + guint32 max_ver; + SkpCallback callback; +} SkpChunkDesc; + +static SkpChunkDesc skp_chunks[] = { + { "CArcCurve", 1, 1, skp_cb_arc_curve }, + { "CAttributeContainer", 0, 0, skp_cb_attribute_container }, + { "CAttributeNamed", 0, 0, skp_cb_attribute_named }, + { "CCamera", 4, 5, NULL }, + { "CComponentDefinition", 10, 10, skp_cb_component_definition }, + { "CComponentInstance", 4, 4, NULL }, + { "CCurve", 4, 4, NULL }, + { "CDib", 2, 3, NULL }, + { "CEdge", 2, 2, NULL }, + { "CEdgeUse", 1, 1, skp_cb_edge_use }, + { "CFace", 3, 3, NULL }, + { "CFaceTextureCoords", 4, 4, skp_cb_face_texture_coords }, + { "CGroup", 1, 1, NULL }, + { "CLayer", 2, 2, skp_cb_layer }, + { "CLoop", 1, 1, NULL }, + { "CMaterial", 12, 12, skp_cb_material }, + { "CRelationship", 0, 0, NULL }, + { "CSkFont", 0, 1, NULL }, + { "CSkpStyle", 1, 1, NULL }, + { "CThumbnail", 1, 1, NULL }, + { "CVertex", 0, 0, skp_cb_vertex }, + { "CViewPage", 9, 11, NULL }, + + { NULL, 0, 0, NULL } +}; + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include "imp_skp.h" +#include "imp_skp_read.h" + +guint32 skp_read_xint16(G3DStream *stream) +{ + guint32 val; + + val = g3d_stream_read_int16_le(stream); + if(val & 0x8000L) { + val &= 0x7FFF; + val |= (g3d_stream_read_int16_le(stream) << 16); + } + return val; +} + +gchar *skp_read_char(G3DStream *stream) +{ + guint32 magic, n; + gchar *text; + + magic = g3d_stream_read_int32_be(stream); + if(magic != 0xffff0000) { + g_warning("SKP: wrong text magic: 0x%08x", magic); + return NULL; + } + n = g3d_stream_read_int16_le(stream); + + text = g_new0(gchar, n + 1); + g3d_stream_read(stream, text, n); + + return text; +} + +gchar *skp_read_wchar(G3DStream *stream) +{ + gint32 i; + guint32 magic, n; + gunichar2 *u16text; + gchar *text; + GError *error = NULL; + + magic = g3d_stream_read_int32_be(stream); + if((magic & 0xFFFFFF00) != 0xfffeff00) { +#if DEBUG > 1 + g_debug("SKP: wrong UTF-16 magic: 0x%08x", magic); +#endif + g3d_stream_seek(stream, -4, G_SEEK_CUR); + return NULL; + } + n = magic & 0x000000FF; + + u16text = g_new0(gunichar2, n + 1); + for(i = 0; i < n; i ++) { + u16text[i] = g3d_stream_read_int16_le(stream); + } + + text = g_utf16_to_utf8(u16text, n, NULL, NULL, &error); + if(error != NULL) { + g_warning("UTF-16 to UTF-8 conversion failed: %s", + error->message); + g_error_free(error); + } + g_free(u16text); + + return text; +} + +gboolean skp_read_dbl3(G3DStream *stream, + gdouble *d1, gdouble *d2, gdouble *d3) +{ + *d1 = g3d_stream_read_double_le(stream); + *d2 = g3d_stream_read_double_le(stream); + *d3 = g3d_stream_read_double_le(stream); + return TRUE; +} + +gboolean skp_read_10b(G3DStream *stream) +{ + guint32 x1, x2; + guint8 u1, u2; + + x1 = g3d_stream_read_int32_be(stream); + u1 = g3d_stream_read_int8(stream); + + if(((x1 & 0x00FFFFFF) != 0x0001) || (u1 != 0x01)) { + g_warning("skp_read_10b: %#08x, %#02x", x1, u1); + } + u2 = g3d_stream_read_int8(stream); + x2 = g3d_stream_read_int32_le(stream); + g_debug("\tread 10b: %08x %02x %02x %08x", x1, u1, u2, x2); + return TRUE; +} + 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 @@ +#ifndef _IMP_SKP_READ_H +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#define _IMP_SKP_READ_H + +#include + +guint32 skp_read_xint16(G3DStream *stream); +gchar *skp_read_char(G3DStream *stream); +gchar *skp_read_wchar(G3DStream *stream); + +gboolean skp_read_dbl3(G3DStream *stream, + gdouble *d1, gdouble *d2, gdouble *d3); +gboolean skp_read_10b(G3DStream *stream); + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_SKP_TYPES_H +#define _IMP_SKP_TYPES_H + +#include + +typedef struct { + guint32 id0; + guint32 id1; + guint32 layerid; +} SkpComponent; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_stl/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_stl +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_stl_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_stl_la_OBJECTS = imp_stl.lo +imp_stl_la_OBJECTS = $(am_imp_stl_la_OBJECTS) +#am_imp_stl_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_stl_la_SOURCES) +DIST_SOURCES = $(imp_stl_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_stl.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_stl_la_SOURCES = imp_stl.c +imp_stl_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_stl.la: $(imp_stl_la_OBJECTS) $(imp_stl_la_DEPENDENCIES) + $(LINK) $(am_imp_stl_la_rpath) $(imp_stl_la_OBJECTS) $(imp_stl_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_stl.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_stl.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_stl_la_SOURCES = imp_stl.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_stl +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_stl_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_stl_la_OBJECTS = imp_stl.lo +imp_stl_la_OBJECTS = $(am_imp_stl_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_stl_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_stl_la_SOURCES) +DIST_SOURCES = $(imp_stl_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_stl.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_stl_la_SOURCES = imp_stl.c +imp_stl_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_stl.la: $(imp_stl_la_OBJECTS) $(imp_stl_la_DEPENDENCIES) + $(LINK) $(am_imp_stl_la_rpath) $(imp_stl_la_OBJECTS) $(imp_stl_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_stl.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* + libg3d - 3D object loading library + + Copyright (C) 2006 Oliver Dippel + 2008 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include +#include + +#include +#include +#include + +/* + Infos for the STL(A)-Format: + http://www.csit.fsu.edu/~burkardt/data/stla/stla.html + Infos for the STL(B)-Format: + http://www.csit.fsu.edu/~burkardt/data/stlb/stlb.html +*/ + +#define STL_ASCII 0 +#define STL_BINARY 1 + +static gboolean stl_load_binary(G3DContext *context, G3DModel *model, + G3DStream *stream); +static gboolean stl_load_text(G3DContext *context, G3DModel *model, + G3DStream *stream); + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + gchar line[1024]; + guint32 type; + + /* Check Filetype (ASCII or BINARY) */ + type = STL_BINARY; + while(!g3d_stream_eof(stream)) { + if(!g3d_stream_read_line(stream, line, 1023)) + break; + if(strstr(line, "solid")) { + setlocale(LC_NUMERIC, "C"); + type = STL_ASCII; + break; + } + } + /* rewind */ + g3d_stream_seek(stream, 0, G_SEEK_SET); + + if (type == STL_BINARY) + return stl_load_binary(context, model, stream); + else + return stl_load_text(context, model, stream); +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("STLA and STLB stereolithography models.\n" + "Author: Oliver Dippel"); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g_strsplit("stl:stla:stlb", ":", 0); +} + +/*****************************************************************************/ + +static gboolean stl_load_binary(G3DContext *context, G3DModel *model, + G3DStream *stream) +{ + G3DObject *object; + G3DMaterial *material; + G3DFace *face; + gchar name[81]; + guint32 num_faces, index = 0; + gint32 n, i, j; + +#if DEBUG > 0 + g_debug("STL: format is BINARY"); +#endif + + g3d_stream_read(stream, name, 80); + name[80] = 0; + num_faces = g3d_stream_read_int32_le(stream); + + object = g_new0(G3DObject, 1); + object->name = g_strdup("STL-Model"); + model->objects = g_slist_append(model->objects, object); + + material = g3d_material_new(); + material->name = g_strdup("default material"); + object->materials = g_slist_append(object->materials, material); + + object->vertex_count = num_faces * 3; +#if DEBUG > 2 + g_debug("STL: BINARY: vertex_count: %i", object->vertex_count); +#endif + object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3); + for(n = 0; n < num_faces; n ++) { + face = g_new0(G3DFace, 1); + face->material = material; + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, face->vertex_count); + face->vertex_indices[0] = index + 0; + face->vertex_indices[1] = index + 1; + face->vertex_indices[2] = index + 2; + object->faces = g_slist_prepend(object->faces, face); + /* normal */ + for(j = 0; j < 3; j ++) + g3d_stream_read_float_le(stream); + /* triangle */ + for(i = 0; i < 3; i ++) { + for(j = 0; j < 3; j ++) + object->vertex_data[index * 3 + j] = + g3d_stream_read_float_le(stream); + index ++; + } + /* 2 Byte Dummy read */ + g3d_stream_read_int16_le(stream); + } + return TRUE; +} + +static gboolean stl_load_text(G3DContext *context, G3DModel *model, + G3DStream *stream) +{ + G3DObject *object; + G3DMaterial *material; + G3DFace *face; + gchar line[1024]; + guint32 index = 0; + G3DFloat x, y, z; + +#if DEBUG > 0 + g_debug("STL: format is ASCII"); +#endif + + object = g_new0(G3DObject, 1); + object->name = g_strdup("STL-Model"); + model->objects = g_slist_append(model->objects, object); + material = g3d_material_new(); + material->name = g_strdup("default material"); + object->materials = g_slist_append(object->materials, material); + object->vertex_count = 0; + while(!g3d_stream_eof(stream)) { + line[0] = 0; + if(!g3d_stream_read_line(stream, line, 1023)) + break; + g_strstrip(line); + if(strncmp(line, "solid", 5) == 0) { + g_free(object->name); + object->name = g_strdup(line + 6); + } else if(strncmp(line, "vertex", 6) == 0) { + object->vertex_count ++; + object->vertex_data = g_realloc(object->vertex_data, + object->vertex_count * 3 * sizeof(G3DFloat)); + if(sscanf(line + 7, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &x, &y, &z) == 3) { + object->vertex_data[(object->vertex_count - 1) * 3 + 0] = x; + object->vertex_data[(object->vertex_count - 1) * 3 + 1] = y; + object->vertex_data[(object->vertex_count - 1) * 3 + 2] = z; + } else { +#if DEBUG > 0 + g_debug("imp_stl: parse error in vertex line: %s", line); +#endif + } + } else if(strncmp(line, "facet", 5) == 0) { + face = g_new0(G3DFace, 1); + face->material = material; + face->vertex_count = 3; + face->vertex_indices = g_new0(guint32, face->vertex_count); + face->vertex_indices[0] = index + 0; + face->vertex_indices[1] = index + 1; + face->vertex_indices[2] = index + 2; + object->faces = g_slist_prepend(object->faces, face); + index += 3; + } + } + return TRUE; +} + 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_ta/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_ta +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_ta_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_ta_la_OBJECTS = imp_ta.lo imp_ta_3do.lo +imp_ta_la_OBJECTS = $(am_imp_ta_la_OBJECTS) +#am_imp_ta_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_ta_la_SOURCES) +DIST_SOURCES = $(imp_ta_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_ta.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_ta_la_SOURCES = imp_ta.c imp_ta_3do_palette.h \ + imp_ta_3do.c imp_ta_3do.h + +imp_ta_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_ta.la: $(imp_ta_la_OBJECTS) $(imp_ta_la_DEPENDENCIES) + $(LINK) $(am_imp_ta_la_rpath) $(imp_ta_la_OBJECTS) $(imp_ta_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_ta.Plo +include ./$(DEPDIR)/imp_ta_3do.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_ta.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_ta_la_SOURCES = imp_ta.c imp_ta_3do_palette.h \ + imp_ta_3do.c imp_ta_3do.h +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_ta +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_ta_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_ta_la_OBJECTS = imp_ta.lo imp_ta_3do.lo +imp_ta_la_OBJECTS = $(am_imp_ta_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_ta_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_ta_la_SOURCES) +DIST_SOURCES = $(imp_ta_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_ta.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_ta_la_SOURCES = imp_ta.c imp_ta_3do_palette.h \ + imp_ta_3do.c imp_ta_3do.h + +imp_ta_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_ta.la: $(imp_ta_la_OBJECTS) $(imp_ta_la_DEPENDENCIES) + $(LINK) $(am_imp_ta_la_rpath) $(imp_ta_la_OBJECTS) $(imp_ta_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ta.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ta_3do.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +#include "imp_ta_3do.h" +#include "imp_ta_3do_palette.h" + +EAPI +gpointer plugin_init(G3DContext *context) +{ + G3DMaterial *materials; + guint32 i; + +#if DEBUG > 0 + g_debug("TA: initializing 3DO palette"); +#endif + + materials = g_new0(G3DMaterial, 256); + for(i = 0; i < 256; i ++) + { + materials[i].r = ((G3DFloat)ta_3do_palette[i * 3 + 0]) / 255.0; + materials[i].g = ((G3DFloat)ta_3do_palette[i * 3 + 1]) / 255.0; + materials[i].b = ((G3DFloat)ta_3do_palette[i * 3 + 2]) / 255.0; + materials[i].a = 1.0; + } + + return materials; +} + +EAPI +void plugin_cleanup(gpointer user_data) +{ + /* (G3DMaterials *) */ + g_free(user_data); +} + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + return ta_3do_load_object(context, stream, model, + (G3DMaterial *)user_data); +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("Total Annihilation unit models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("3do", ":", 0); +} + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +#include +#include +#include + +gboolean ta_3do_read_children(G3DContext *context, G3DStream *stream, + GSList **list, G3DMaterial *materials); + +gboolean ta_3do_load_object(G3DContext *context, G3DStream *stream, + G3DModel *model, G3DMaterial *materials) +{ + return ta_3do_read_children(context, stream, &(model->objects), materials); +} + +gboolean ta_3do_read_children(G3DContext *context, G3DStream *stream, + GSList **list, G3DMaterial *materials) +{ + G3DObject *object; + G3DFace *face; + goffset off_save, off_sav2, off_sibl, off_chld, off_vert, off_prim, off_i; + guint32 num_prims, colidx; + gchar buffer[1025]; + gint32 i, j, x, y, z; + + while(!g3d_stream_eof(stream)) { + /* signature */ + if(g3d_stream_read_int32_le(stream) != 1) + return FALSE; + + object = g_new0(G3DObject, 1); + *list = g_slist_append(*list, object); + + /* number of vertices */ + object->vertex_count = g3d_stream_read_int32_le(stream); + object->vertex_data = g_new0(G3DFloat, 3 * object->vertex_count); + + /* number of primitives */ + num_prims = g3d_stream_read_int32_le(stream); + + /* offset of selection primitive */ + g3d_stream_read_int32_le(stream); + + /* translation from parent */ + x = g3d_stream_read_int32_le(stream); + y = g3d_stream_read_int32_le(stream); + z = g3d_stream_read_int32_le(stream); + object->transformation = g_new0(G3DTransformation, 1); + g3d_matrix_identity(object->transformation->matrix); + g3d_matrix_translate(x, y, z, object->transformation->matrix); + + /* offset of object name */ + off_save = g3d_stream_tell(stream) + 4; + g3d_stream_seek(stream, g3d_stream_read_int32_le(stream), G_SEEK_SET); + g3d_stream_read_cstr(stream, buffer, 1024); + buffer[1024] = '\0'; + object->name = g_strdup(buffer); + g3d_stream_seek(stream, off_save, G_SEEK_SET); +#if DEBUG > 1 + g_debug("TA: object '%s'", object->name); +#endif + + /* always 0 */ + g3d_stream_read_int32_le(stream); + + /* offset of vertex array */ + off_vert = g3d_stream_read_int32_le(stream); + off_save = g3d_stream_tell(stream); + g3d_stream_seek(stream, off_vert, G_SEEK_SET); + for(i = 0; i < object->vertex_count; i ++) + { + object->vertex_data[i * 3 + 0] = g3d_stream_read_int32_le(stream); + object->vertex_data[i * 3 + 1] = g3d_stream_read_int32_le(stream); + object->vertex_data[i * 3 + 2] = g3d_stream_read_int32_le(stream); + } + g3d_stream_seek(stream, off_save, G_SEEK_SET); + + /* offset of primitive array */ + off_prim = g3d_stream_read_int32_le(stream); + off_save = g3d_stream_tell(stream); + g3d_stream_seek(stream, off_prim, G_SEEK_SET); + for(i = 0; i < num_prims; i ++) + { + face = g_new0(G3DFace, 1); + + /* color index */ + colidx = g3d_stream_read_int32_le(stream); +#if DEBUG > 2 + g_debug("TA: color index: %d", colidx); +#endif + if(colidx > 255) + { + g_warning("TA: color index > 255 (%d)\n", colidx); + g_free(face); + g3d_stream_skip(stream, 28); + continue; + } + face->material = &(materials[colidx]); + + /* number of vertices */ + face->vertex_count = g3d_stream_read_int32_le(stream); + if(face->vertex_count < 3) + { + /* skip this primitive */ + g_free(face); + g3d_stream_skip(stream, 24); + continue; + } + face->vertex_indices = g_new0(guint32, face->vertex_count); + + /* always 0 */ + g3d_stream_read_int32_le(stream); + + /* offset of vertex index array */ + off_i = g3d_stream_read_int32_le(stream); + off_sav2 = g3d_stream_tell(stream); +#if DEBUG > 2 + g_debug("TA: vertex index offset: 0x%08x", off_i); +#endif + g3d_stream_seek(stream, off_i, G_SEEK_SET); + for(j = 0; j < face->vertex_count; j ++) + face->vertex_indices[j] = g3d_stream_read_int16_le(stream); + g3d_stream_seek(stream, off_sav2, G_SEEK_SET); + + /* offset of texture name */ + g3d_stream_read_int32_le(stream); + + /* unknown */ + g3d_stream_skip(stream, 12); + + object->faces = g_slist_prepend(object->faces, face); + } + g3d_stream_seek(stream, off_save, G_SEEK_SET); + + /* offset of sibling object */ + off_sibl = g3d_stream_read_int32_le(stream); + + /* offset of child object */ + off_chld = g3d_stream_read_int32_le(stream); + +#if DEBUG > 3 + g_debug("TA: child @ 0x%08x, sibling @ 0x%08x", off_chld, off_sibl); +#endif + + if(off_chld != 0) + { + off_save = g3d_stream_tell(stream); + g3d_stream_seek(stream, off_chld, G_SEEK_SET); + ta_3do_read_children(context, stream, &(object->objects), + materials); + g3d_stream_seek(stream, off_save, G_SEEK_SET); + } + + if(off_sibl == 0) + return TRUE; + + g3d_stream_seek(stream, off_sibl, G_SEEK_SET); + } + + return FALSE; +} 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_TA_3DO_H +#define _IMP_TA_3DO_H + +#include + +gboolean ta_3do_load_object(G3DContext *context, G3DStream *stream, + G3DModel *model, G3DMaterial *materials); + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _IMP_TA_3DO_PALETTE_H +#define _IMP_TA_3DO_PALETTE_H + +#include + +static guint8 ta_3do_palette[768] = { + 0x00, 0x00, 0x00, + 0x80, 0x00, 0x00, + 0x00, 0x80, 0x00, + 0x80, 0x80, 0x00, + 0x00, 0x00, 0x80, + 0x80, 0x00, 0x80, + 0x00, 0x80, 0x80, + 0x80, 0x80, 0x80, + 0xC0, 0xDC, 0xC0, + 0x54, 0x54, 0xFC, + 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, + 0xFF, 0xEB, 0xF3, + 0xEB, 0xC7, 0xD3, + 0xD7, 0xA3, 0xB3, + 0xC3, 0x87, 0x97, + 0xAF, 0x6F, 0x7F, + 0x9B, 0x5B, 0x63, + 0x8B, 0x47, 0x4F, + 0x7B, 0x3B, 0x47, + 0x6F, 0x33, 0x3B, + 0x63, 0x2B, 0x33, + 0x57, 0x23, 0x2B, + 0x4B, 0x1B, 0x27, + 0x3B, 0x17, 0x1F, + 0x2F, 0x0F, 0x17, + 0x23, 0x0B, 0x0F, + 0x17, 0x07, 0x0B, + 0x73, 0xFF, 0xDF, + 0x57, 0xE7, 0xBF, + 0x43, 0xCF, 0x9F, + 0x2F, 0xB7, 0x83, + 0x1F, 0x9F, 0x67, + 0x13, 0x8B, 0x4F, + 0x0F, 0x77, 0x3F, + 0x0B, 0x6B, 0x37, + 0x07, 0x5F, 0x2F, + 0x07, 0x53, 0x2B, + 0x00, 0x47, 0x27, + 0x00, 0x3F, 0x23, + 0x00, 0x33, 0x1B, + 0x00, 0x27, 0x17, + 0x00, 0x1B, 0x0F, + 0x00, 0x13, 0x0B, + 0xE3, 0xEF, 0xFF, + 0xC7, 0xDF, 0xE7, + 0xAF, 0xCF, 0xCB, + 0x93, 0xB7, 0xA7, + 0x7F, 0x9F, 0x83, + 0x6B, 0x87, 0x67, + 0x5F, 0x6F, 0x53, + 0x5F, 0x63, 0x47, + 0x5B, 0x57, 0x3B, + 0x53, 0x43, 0x33, + 0x47, 0x3B, 0x2B, + 0x3B, 0x33, 0x23, + 0x2F, 0x2B, 0x1B, + 0x23, 0x1F, 0x13, + 0x17, 0x13, 0x0F, + 0x0B, 0x0B, 0x07, + 0xFB, 0xFB, 0xD7, + 0xDF, 0xDF, 0xB7, + 0xC3, 0xC3, 0x9B, + 0xAB, 0xAB, 0x83, + 0x93, 0x93, 0x6F, + 0x77, 0x77, 0x57, + 0x63, 0x63, 0x43, + 0x53, 0x53, 0x33, + 0x43, 0x43, 0x23, + 0x33, 0x33, 0x17, + 0x23, 0x23, 0x0F, + 0x1B, 0x1B, 0x07, + 0x17, 0x17, 0x07, + 0x13, 0x13, 0x00, + 0x0F, 0x0F, 0x00, + 0x0B, 0x0B, 0x00, + 0xFB, 0xFB, 0xFB, + 0xEB, 0xEB, 0xEB, + 0xDB, 0xDB, 0xDB, + 0xCB, 0xCB, 0xCB, + 0xBB, 0xBB, 0xBB, + 0xAB, 0xAB, 0xAB, + 0x9B, 0x9B, 0x9B, + 0x8B, 0x8B, 0x8B, + 0x7B, 0x7B, 0x7B, + 0x6B, 0x6B, 0x6B, + 0x5B, 0x5B, 0x5B, + 0x4B, 0x4B, 0x4B, + 0x3B, 0x3B, 0x3B, + 0x2B, 0x2B, 0x2B, + 0x1F, 0x1F, 0x1F, + 0x0F, 0x0F, 0x0F, + 0xEB, 0xF3, 0xFF, + 0xCB, 0xE3, 0xFF, + 0xAF, 0xCF, 0xFF, + 0x97, 0xB3, 0xFF, + 0x7B, 0x97, 0xFF, + 0x67, 0x7F, 0xFF, + 0x53, 0x6B, 0xEF, + 0x3F, 0x5B, 0xE3, + 0x33, 0x4B, 0xD7, + 0x23, 0x3B, 0xCB, + 0x17, 0x2F, 0xAF, + 0x0F, 0x27, 0x97, + 0x07, 0x1F, 0x7B, + 0x07, 0x17, 0x63, + 0x00, 0x0F, 0x47, + 0x00, 0x0B, 0x2F, + 0xE3, 0xF7, 0xFF, + 0xBF, 0xDB, 0xE7, + 0x9F, 0xBF, 0xCF, + 0x83, 0xA7, 0xB7, + 0x6B, 0x8F, 0xA3, + 0x53, 0x77, 0x8B, + 0x3F, 0x5F, 0x73, + 0x2F, 0x4B, 0x5F, + 0x27, 0x3F, 0x57, + 0x23, 0x37, 0x4F, + 0x1F, 0x2F, 0x47, + 0x1B, 0x27, 0x3F, + 0x17, 0x1F, 0x37, + 0x13, 0x1B, 0x2F, + 0x0F, 0x13, 0x27, + 0x0B, 0x0F, 0x1F, + 0xD7, 0xEF, 0xFF, + 0xBB, 0xE3, 0xEF, + 0x9B, 0xCB, 0xDF, + 0x83, 0xB7, 0xCF, + 0x6B, 0xA3, 0xC3, + 0x53, 0x8F, 0xB3, + 0x3F, 0x7B, 0xA3, + 0x2F, 0x6B, 0x97, + 0x23, 0x5B, 0x87, + 0x1B, 0x4B, 0x77, + 0x13, 0x3F, 0x67, + 0x0B, 0x33, 0x57, + 0x07, 0x27, 0x47, + 0x00, 0x1B, 0x37, + 0x00, 0x13, 0x27, + 0x00, 0x0B, 0x1B, + 0xFF, 0xE7, 0xFF, + 0xE7, 0xC7, 0xEB, + 0xD3, 0xAB, 0xD7, + 0xBB, 0x93, 0xC3, + 0xA7, 0x7B, 0xB3, + 0x8F, 0x63, 0x9F, + 0x77, 0x4B, 0x8F, + 0x63, 0x3B, 0x7F, + 0x4F, 0x2B, 0x6F, + 0x43, 0x1F, 0x63, + 0x37, 0x17, 0x57, + 0x2B, 0x0F, 0x47, + 0x1F, 0x07, 0x3B, + 0x13, 0x00, 0x2B, + 0x0B, 0x00, 0x1F, + 0x07, 0x00, 0x13, + 0xD7, 0xFF, 0xA7, + 0xAB, 0xE7, 0x7F, + 0x83, 0xD3, 0x5B, + 0x67, 0xBF, 0x3F, + 0x4B, 0xAB, 0x2B, + 0x43, 0x97, 0x2B, + 0x37, 0x87, 0x27, + 0x2F, 0x77, 0x1B, + 0x2B, 0x67, 0x13, + 0x23, 0x5B, 0x0F, + 0x1F, 0x4F, 0x0B, + 0x1B, 0x43, 0x07, + 0x17, 0x33, 0x00, + 0x0F, 0x27, 0x00, + 0x0B, 0x1B, 0x00, + 0x07, 0x0F, 0x00, + 0xFF, 0xE3, 0x9F, + 0xE3, 0xC7, 0x73, + 0xCB, 0xAF, 0x53, + 0xB3, 0x97, 0x3F, + 0x9B, 0x83, 0x2F, + 0x83, 0x6F, 0x23, + 0x6B, 0x5B, 0x17, + 0x53, 0x47, 0x0F, + 0x4B, 0x3B, 0x0B, + 0x43, 0x33, 0x07, + 0x3B, 0x2B, 0x07, + 0x37, 0x23, 0x00, + 0x2F, 0x1B, 0x00, + 0x27, 0x13, 0x00, + 0x1F, 0x0F, 0x00, + 0x1B, 0x0B, 0x00, + 0xFF, 0xFF, 0xA3, + 0xFB, 0xF3, 0x83, + 0xF7, 0xE3, 0x67, + 0xF3, 0xD3, 0x4F, + 0xEF, 0xBB, 0x33, + 0xEF, 0xA7, 0x1B, + 0xEB, 0x8F, 0x13, + 0xE7, 0x7B, 0x0F, + 0xDF, 0x4F, 0x07, + 0xD7, 0x23, 0x00, + 0xBF, 0x1F, 0x00, + 0xA7, 0x1B, 0x00, + 0x93, 0x17, 0x00, + 0x7B, 0x13, 0x00, + 0x63, 0x13, 0x00, + 0x4F, 0x0F, 0x00, + 0xFF, 0xFF, 0x00, + 0xFF, 0xBF, 0x00, + 0xFF, 0x83, 0x00, + 0xFF, 0x47, 0x00, + 0xD3, 0x2B, 0x00, + 0xAB, 0x17, 0x00, + 0x7F, 0x07, 0x00, + 0x57, 0x00, 0x00, + 0xDF, 0xCB, 0xFF, + 0xBB, 0x9F, 0xDF, + 0x9B, 0x77, 0xBF, + 0x7F, 0x57, 0x9F, + 0x67, 0x3B, 0x7F, + 0x4B, 0x23, 0x5F, + 0x33, 0x13, 0x3F, + 0x1B, 0x07, 0x1F, + 0xD3, 0xDB, 0xFF, + 0x87, 0x9F, 0xF7, + 0x43, 0x6F, 0xEF, + 0x17, 0x47, 0xE7, + 0x0B, 0x2B, 0xBB, + 0x07, 0x17, 0x8F, + 0x00, 0x07, 0x63, + 0x00, 0x00, 0x37, + 0x7B, 0xFF, 0x77, + 0x53, 0xDF, 0x4F, + 0x33, 0xBF, 0x2B, + 0x1B, 0x9F, 0x13, + 0x1B, 0x7F, 0x0B, + 0x17, 0x5F, 0x07, + 0x13, 0x3F, 0x00, + 0x0B, 0x1F, 0x00, + 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, + 0xFF, 0xFB, 0xF0, + 0xA0, 0xA0, 0xA4, + 0x80, 0x80, 0x80, + 0xFF, 0x00, 0x00, + 0x00, 0xFF, 0x00, + 0xFF, 0xFF, 0x00, + 0x00, 0x00, 0xFF, + 0xFF, 0x00, 0xFF, + 0x00, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF}; + +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_test/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_test +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_test_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_test_la_OBJECTS = imp_test.lo +imp_test_la_OBJECTS = $(am_imp_test_la_OBJECTS) +#am_imp_test_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_test_la_SOURCES) +DIST_SOURCES = $(imp_test_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_test.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_test_la_SOURCES = imp_test.c +imp_test_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_test.la: $(imp_test_la_OBJECTS) $(imp_test_la_DEPENDENCIES) + $(LINK) $(am_imp_test_la_rpath) $(imp_test_la_OBJECTS) $(imp_test_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_test.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_test.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_test_la_SOURCES = imp_test.c +imp_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_test +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_test_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_test_la_OBJECTS = imp_test.lo +imp_test_la_OBJECTS = $(am_imp_test_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_test_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_test_la_SOURCES) +DIST_SOURCES = $(imp_test_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_test.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_test_la_SOURCES = imp_test.c +imp_test_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_test.la: $(imp_test_la_OBJECTS) $(imp_test_la_DEPENDENCIES) + $(LINK) $(am_imp_test_la_rpath) $(imp_test_la_OBJECTS) $(imp_test_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_test.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include +#include +#include +#include +#include + +static gboolean test_primitive_transfrom(G3DModel *model); +static gboolean test_texture_uv(G3DContext *context, G3DModel *model); + +/*****************************************************************************/ +/* plugin interface */ +/*****************************************************************************/ + + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + guint32 test = 1; + + switch(test) { + case 0: + return test_primitive_transfrom(model); + break; + case 1: + return test_texture_uv(context, model); + break; + default: + break; + } + return FALSE; +} + +EAPI +gchar *plugin_description(G3DContext *context) +{ + return g_strdup("Test plugin."); +} + +EAPI +gchar **plugin_extensions(G3DContext *context) +{ + return g_strsplit("test", ":", 0); +} + +/****************************************************************************/ + +static gboolean test_primitive_transfrom(G3DModel *model) +{ + G3DObject *sphere, *cntr; + G3DMaterial *material; + G3DTransformation *tf; + G3DFloat matrix[16]; + /* gint32 i, j; */ + + cntr = g_new0(G3DObject, 1); + cntr->name = g_strdup("container"); + + tf = g_new0(G3DTransformation, 1); + g3d_matrix_identity(tf->matrix); + g3d_matrix_scale(1.0, 1.0, 2.0, tf->matrix); + cntr->transformation = tf; + model->objects = g_slist_append(model->objects, cntr); + + material = g3d_material_new(); + model->materials = g_slist_append(model->materials, material); + + /* 1 */ + sphere = g3d_primitive_sphere(1.0, 36, 36, material); + cntr->objects = g_slist_append(cntr->objects, sphere); + + /* 2 */ + sphere = g3d_primitive_sphere(1.0, 6, 6, material); + cntr->objects = g_slist_append(cntr->objects, sphere); + + tf = g_new0(G3DTransformation, 1); + g3d_matrix_identity(tf->matrix); + g3d_matrix_translate(2.5, 1.0, 1.0, tf->matrix); + sphere->transformation = tf; + + /* 3 */ + sphere = g3d_primitive_sphere(1.0, 12, 12, material); + cntr->objects = g_slist_append(cntr->objects, sphere); + + g3d_matrix_identity(matrix); + g3d_matrix_translate(5, 2.0, 2.0, matrix); + g3d_matrix_scale(2.0, 2.0, 1.0, matrix); + g3d_object_transform(sphere, matrix); + + return TRUE; +} + +static gboolean test_texture_uv(G3DContext *context, G3DModel *model) +{ + G3DObject *box; + G3DMaterial *material; + G3DFace *face; + GSList *item; + + material = g3d_material_new(); + material->r = 1.0; + material->g = 0.8; + material->b = 0.2; + material->a = 0.9; + material->name = g_strdup("default texture"); + material->tex_image = g3d_texture_load_cached(context, model, + "test-texture.png"); + + box = g3d_primitive_box(1.0, 1.0, 1.0, material); + box->name = g_strdup("test box"); + + if(material->tex_image != NULL) { + material->tex_image->tex_env = G3D_TEXENV_REPLACE; + + for(item = box->faces; item != NULL; item = item->next) { + face = (G3DFace *)item->data; + face->tex_image = material->tex_image; + face->flags |= G3D_FLAG_FAC_TEXMAP; + +#define MIN_U 0.0 +#define MAX_U 1.0 +#define MIN_V -0.5 +#define MAX_V 1.5 + + face->tex_vertex_data[0 * 2 + 0] = MIN_U; + face->tex_vertex_data[0 * 2 + 1] = MIN_V; + face->tex_vertex_data[1 * 2 + 0] = MIN_U; + face->tex_vertex_data[1 * 2 + 1] = MAX_V; + face->tex_vertex_data[2 * 2 + 0] = MAX_U; + face->tex_vertex_data[2 * 2 + 1] = MAX_V; + face->tex_vertex_data[3 * 2 + 0] = MAX_U; + face->tex_vertex_data[3 * 2 + 1] = MIN_V; + } + } + + model->objects = g_slist_append(model->objects, box); + model->materials = g_slist_append(model->materials, material); + + return TRUE; +} 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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_vrml/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_vrml +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + imp_vrml_v1.c +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +am__DEPENDENCIES_1 = +imp_vrml_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la \ + $(am__DEPENDENCIES_1) +am_imp_vrml_la_OBJECTS = imp_vrml_v1.lo imp_vrml.lo +imp_vrml_la_OBJECTS = $(am_imp_vrml_la_OBJECTS) +am_imp_vrml_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS) +LTLEXCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS) +YLWRAP = $(top_srcdir)/config/ylwrap +SOURCES = $(imp_vrml_la_SOURCES) +DIST_SOURCES = $(imp_vrml_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +pluginimp_LTLIBRARIES = imp_vrml.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +AM_LFLAGS = -o${LEX_OUTPUT_ROOT}.c --header-file=${LEX_OUTPUT_ROOT}.h -R +imp_vrml_la_SOURCES = imp_vrml_v1.l imp_vrml_v1.h imp_vrml.c +imp_vrml_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 ${LEXLIB} +EXTRA_DIST = imp_vrml_v1.c imp_vrml_v1.h +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .l .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_vrml.la: $(imp_vrml_la_OBJECTS) $(imp_vrml_la_DEPENDENCIES) + $(LINK) $(am_imp_vrml_la_rpath) $(imp_vrml_la_OBJECTS) $(imp_vrml_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_vrml.Plo +include ./$(DEPDIR)/imp_vrml_v1.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +.l.c: + $(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE) + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -rm -f imp_vrml_v1.c +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if OS_WIN32 +else +pluginimp_LTLIBRARIES = imp_vrml.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +AM_LFLAGS = -o${LEX_OUTPUT_ROOT}.c --header-file=${LEX_OUTPUT_ROOT}.h -R +LIBTOOL += --quiet + +imp_vrml_la_SOURCES = imp_vrml_v1.l imp_vrml_v1.h imp_vrml.c +imp_vrml_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ ${LEXLIB} + +EXTRA_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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_vrml +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + imp_vrml_v1.c +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +am__DEPENDENCIES_1 = +imp_vrml_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la \ + $(am__DEPENDENCIES_1) +am_imp_vrml_la_OBJECTS = imp_vrml_v1.lo imp_vrml.lo +imp_vrml_la_OBJECTS = $(am_imp_vrml_la_OBJECTS) +@OS_WIN32_FALSE@am_imp_vrml_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS) +LTLEXCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS) +YLWRAP = $(top_srcdir)/config/ylwrap +SOURCES = $(imp_vrml_la_SOURCES) +DIST_SOURCES = $(imp_vrml_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@OS_WIN32_FALSE@pluginimp_LTLIBRARIES = imp_vrml.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +AM_LFLAGS = -o${LEX_OUTPUT_ROOT}.c --header-file=${LEX_OUTPUT_ROOT}.h -R +imp_vrml_la_SOURCES = imp_vrml_v1.l imp_vrml_v1.h imp_vrml.c +imp_vrml_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ ${LEXLIB} +EXTRA_DIST = imp_vrml_v1.c imp_vrml_v1.h +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .l .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_vrml.la: $(imp_vrml_la_OBJECTS) $(imp_vrml_la_DEPENDENCIES) + $(LINK) $(am_imp_vrml_la_rpath) $(imp_vrml_la_OBJECTS) $(imp_vrml_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml_v1.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +.l.c: + $(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE) + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -rm -f imp_vrml_v1.c +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include +#include + +#include + +#include +#include +#include + +#include "imp_vrml_v1.h" + +#define VRML_FT_VRML 0x01 +#define VRML_FT_INVENTOR 0x02 + +#define MAX_LINE_SIZE 2048 + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + yyscan_t scanner; + YY_BUFFER_STATE bufstate; + G3DMaterial *material; + gchar line[MAX_LINE_SIZE + 1], *buffer, *bufp; + guint32 ver_maj, ver_min, filetype, buflen; + + memset(line, 0, MAX_LINE_SIZE); + g3d_stream_read_line(stream, line, MAX_LINE_SIZE); + if(strncmp(line, "#VRML", 5) == 0) + filetype = VRML_FT_VRML; + else if(strncmp(line, "#Inventor", 9) == 0) + filetype = VRML_FT_INVENTOR; + else { + g_warning("file '%s' is not a VRML file", stream->uri); + return FALSE; + } + + /* FIXME: more than one space between VRML and Vx.x? */ + ver_maj = line[7] - '0'; + ver_min = line[9] - '0'; + +#if DEBUG > 0 + g_debug("VRML: version %d.%d", ver_maj, ver_min); +#endif + + setlocale(LC_NUMERIC, "C"); + + if((filetype == VRML_FT_INVENTOR) || (ver_maj == 1)) { + /* Inventor / VRML 1.x */ + /* read complete file to buffer */ + buflen = g3d_stream_size(stream) + 1; + buffer = g_new0(gchar, buflen); + bufp = buffer; + memset(buffer, 0, buflen); + memset(line, 0, MAX_LINE_SIZE); + while(!g3d_stream_eof(stream) && + g3d_stream_read_line(stream, line, MAX_LINE_SIZE)) { + memcpy(bufp, line, strlen(line)); + bufp += strlen(line); + } + material = g3d_material_new(); + material->name = g_strdup("fallback material"); + model->materials = g_slist_append(model->materials, material); + + vrml_v1_yylex_init(&scanner); + vrml_v1_yyset_extra(model, scanner); + bufstate = vrml_v1_yy_scan_string(buffer, scanner); + if(bufstate) { + vrml_v1_yylex(scanner); + vrml_v1_yy_delete_buffer(bufstate, scanner); + } + vrml_v1_yylex_destroy(scanner); + g_free(buffer); + } else if(ver_maj == 2) { + g_warning("VRML 2 is not yet supported"); + return FALSE; + } else { + g_warning("unknown VRML version %d.%d", ver_maj, ver_min); + return FALSE; + } + + return TRUE; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("VRML 1.x & SGI inventor models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("vrml:iv", ":", 0); +} + +/* FIXME */ +extern int yywrap(yyscan_t yyscanner); +int 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 @@ +#line 2 "imp_vrml_v1.c" + +#line 4 "imp_vrml_v1.c" + +#define YY_INT_ALIGNED short int + +/* A lexical scanner generated by flex */ + +#define FLEX_SCANNER +#define YY_FLEX_MAJOR_VERSION 2 +#define YY_FLEX_MINOR_VERSION 5 +#define YY_FLEX_SUBMINOR_VERSION 35 +#if YY_FLEX_SUBMINOR_VERSION > 0 +#define FLEX_BETA +#endif + +/* First, we deal with platform-specific or compiler-specific issues. */ + +/* begin standard C headers. */ +#include +#include +#include +#include + +/* end standard C headers. */ + +/* flex integer type definitions */ + +#ifndef FLEXINT_H +#define FLEXINT_H + +/* C99 systems have . Non-C99 systems may or may not. */ + +#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + +/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, + * if you want the limit (max/min) macros for int types. + */ +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS 1 +#endif + +#include +typedef int8_t flex_int8_t; +typedef uint8_t flex_uint8_t; +typedef int16_t flex_int16_t; +typedef uint16_t flex_uint16_t; +typedef int32_t flex_int32_t; +typedef uint32_t flex_uint32_t; +#else +typedef signed char flex_int8_t; +typedef short int flex_int16_t; +typedef int flex_int32_t; +typedef unsigned char flex_uint8_t; +typedef unsigned short int flex_uint16_t; +typedef unsigned int flex_uint32_t; + +/* Limits of integral types. */ +#ifndef INT8_MIN +#define INT8_MIN (-128) +#endif +#ifndef INT16_MIN +#define INT16_MIN (-32767-1) +#endif +#ifndef INT32_MIN +#define INT32_MIN (-2147483647-1) +#endif +#ifndef INT8_MAX +#define INT8_MAX (127) +#endif +#ifndef INT16_MAX +#define INT16_MAX (32767) +#endif +#ifndef INT32_MAX +#define INT32_MAX (2147483647) +#endif +#ifndef UINT8_MAX +#define UINT8_MAX (255U) +#endif +#ifndef UINT16_MAX +#define UINT16_MAX (65535U) +#endif +#ifndef UINT32_MAX +#define UINT32_MAX (4294967295U) +#endif + +#endif /* ! C99 */ + +#endif /* ! FLEXINT_H */ + +#ifdef __cplusplus + +/* The "const" storage-class-modifier is valid. */ +#define YY_USE_CONST + +#else /* ! __cplusplus */ + +/* C99 requires __STDC__ to be defined as 1. */ +#if defined (__STDC__) + +#define YY_USE_CONST + +#endif /* defined (__STDC__) */ +#endif /* ! __cplusplus */ + +#ifdef YY_USE_CONST +#define yyconst const +#else +#define yyconst +#endif + +/* Returned upon end-of-file. */ +#define YY_NULL 0 + +/* Promotes a possibly negative, possibly signed char to an unsigned + * integer for use as an array index. If the signed char is negative, + * we want to instead treat it as an 8-bit unsigned char, hence the + * double cast. + */ +#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) + +/* An opaque pointer. */ +#ifndef YY_TYPEDEF_YY_SCANNER_T +#define YY_TYPEDEF_YY_SCANNER_T +typedef void* yyscan_t; +#endif + +/* For convenience, these vars (plus the bison vars far below) + are macros in the reentrant scanner. */ +#define yyin yyg->yyin_r +#define yyout yyg->yyout_r +#define yyextra yyg->yyextra_r +#define yyleng yyg->yyleng_r +#define yytext yyg->yytext_r +#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) +#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) +#define yy_flex_debug yyg->yy_flex_debug_r + +/* Enter a start condition. This macro really ought to take a parameter, + * but we do it the disgusting crufty way forced on us by the ()-less + * definition of BEGIN. + */ +#define BEGIN yyg->yy_start = 1 + 2 * + +/* Translate the current start state into a value that can be later handed + * to BEGIN to return to the state. The YYSTATE alias is for lex + * compatibility. + */ +#define YY_START ((yyg->yy_start - 1) / 2) +#define YYSTATE YY_START + +/* Action number for EOF rule of a given start state. */ +#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) + +/* Special action meaning "start processing a new file". */ +#define YY_NEW_FILE vrml_v1_yyrestart(yyin ,yyscanner ) + +#define YY_END_OF_BUFFER_CHAR 0 + +/* Size of default input buffer. */ +#ifndef YY_BUF_SIZE +#define YY_BUF_SIZE 16384 +#endif + +/* The state buf must be large enough to hold one state per character in the main buffer. + */ +#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) + +#ifndef YY_TYPEDEF_YY_BUFFER_STATE +#define YY_TYPEDEF_YY_BUFFER_STATE +typedef struct yy_buffer_state *YY_BUFFER_STATE; +#endif + +#define EOB_ACT_CONTINUE_SCAN 0 +#define EOB_ACT_END_OF_FILE 1 +#define EOB_ACT_LAST_MATCH 2 + + #define YY_LESS_LINENO(n) + +/* Return all but the first "n" matched characters back to the input stream. */ +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + *yy_cp = yyg->yy_hold_char; \ + YY_RESTORE_YY_MORE_OFFSET \ + yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } \ + while ( 0 ) + +#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) + +#ifndef YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef size_t yy_size_t; +#endif + +#ifndef YY_STRUCT_YY_BUFFER_STATE +#define YY_STRUCT_YY_BUFFER_STATE +struct yy_buffer_state + { + FILE *yy_input_file; + + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + yy_size_t yy_buf_size; + + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; + + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; + + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; + + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; + + int yy_bs_lineno; /**< The line count. */ + int yy_bs_column; /**< The column count. */ + + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; + + int yy_buffer_status; + +#define YY_BUFFER_NEW 0 +#define YY_BUFFER_NORMAL 1 + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via vrml_v1_yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ +#define YY_BUFFER_EOF_PENDING 2 + + }; +#endif /* !YY_STRUCT_YY_BUFFER_STATE */ + +/* We provide macros for accessing buffer states in case in the + * future we want to put the buffer states in a more general + * "scanner state". + * + * Returns the top of the stack, or NULL. + */ +#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ + ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ + : NULL) + +/* Same as previous macro, but useful when we know that the buffer stack is not + * NULL or when we need an lvalue. For internal use only. + */ +#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] + +void vrml_v1_yyrestart (FILE *input_file ,yyscan_t yyscanner ); +void vrml_v1_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); +YY_BUFFER_STATE vrml_v1_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner ); +void vrml_v1_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); +void vrml_v1_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); +void vrml_v1_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); +void vrml_v1_yypop_buffer_state (yyscan_t yyscanner ); + +static void vrml_v1_yyensure_buffer_stack (yyscan_t yyscanner ); +static void vrml_v1_yy_load_buffer_state (yyscan_t yyscanner ); +static void vrml_v1_yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner ); + +#define YY_FLUSH_BUFFER vrml_v1_yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner) + +YY_BUFFER_STATE vrml_v1_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); +YY_BUFFER_STATE vrml_v1_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); +YY_BUFFER_STATE vrml_v1_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); + +void *vrml_v1_yyalloc (yy_size_t ,yyscan_t yyscanner ); +void *vrml_v1_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner ); +void vrml_v1_yyfree (void * ,yyscan_t yyscanner ); + +#define yy_new_buffer vrml_v1_yy_create_buffer + +#define yy_set_interactive(is_interactive) \ + { \ + if ( ! YY_CURRENT_BUFFER ){ \ + vrml_v1_yyensure_buffer_stack (yyscanner); \ + YY_CURRENT_BUFFER_LVALUE = \ + vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ + } + +#define yy_set_bol(at_bol) \ + { \ + if ( ! YY_CURRENT_BUFFER ){\ + vrml_v1_yyensure_buffer_stack (yyscanner); \ + YY_CURRENT_BUFFER_LVALUE = \ + vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ + } + +#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) + +/* Begin user sect3 */ + +typedef unsigned char YY_CHAR; + +typedef int yy_state_type; + +#define yytext_ptr yytext_r + +static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); +static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner); +static int yy_get_next_buffer (yyscan_t yyscanner ); +static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner ); + +/* Done after the current pattern has been matched and before the + * corresponding action - sets up yytext. + */ +#define YY_DO_BEFORE_ACTION \ + yyg->yytext_ptr = yy_bp; \ + yyleng = (size_t) (yy_cp - yy_bp); \ + yyg->yy_hold_char = *yy_cp; \ + *yy_cp = '\0'; \ + yyg->yy_c_buf_p = yy_cp; + +#define YY_NUM_RULES 32 +#define YY_END_OF_BUFFER 33 +/* This struct is not used in this scanner, + but its presence is necessary. */ +struct yy_trans_info + { + flex_int32_t yy_verify; + flex_int32_t yy_nxt; + }; +static yyconst flex_int16_t yy_acclist[299] = + { 0, + 33, 30, 32, 31, 32, 30, 32, 15, 30, 32, + 30, 32,16411, 30, 32,16411, 30, 32,16411, 30, + 32,16411, 30, 32,16411, 30, 32,16411, 26, 30, + 32, 30, 32, 30, 32, 30, 32, 30, 32, 30, + 32, 30, 32, 30, 32, 30, 32, 28, 30, 32, + 29, 30, 32, 1, 30, 32, 30, 32, 4, 30, + 32, 5, 31, 32, 4, 30, 32, 4, 15, 30, + 32, 4, 30, 32,16411, 4, 30, 32,16411, 4, + 30, 32,16411, 4, 30, 32,16411, 4, 30, 32, + 16411, 4, 30, 32,16411, 4, 30, 32,16411, 4, + + 26, 30, 32, 4, 30, 32, 4, 30, 32, 4, + 30, 32, 4, 30, 32, 4, 30, 32, 4, 30, + 32, 4, 30, 32, 4, 30, 32, 4, 28, 30, + 32, 4, 29, 30, 32, 6, 30, 32, 7, 31, + 32, 6, 30, 32, 6, 15, 30, 32, 6, 30, + 32,16411, 6, 30, 32,16411, 6, 30, 32,16411, + 6, 30, 32,16411, 6, 30, 32,16411, 6, 30, + 32,16411, 6, 26, 30, 32, 6, 30, 32, 6, + 30, 32, 6, 30, 32, 6, 30, 32, 6, 30, + 32, 6, 30, 32, 6, 30, 32, 6, 30, 32, + + 6, 28, 30, 32, 6, 29, 30, 32, 15, 15, + 15, 14, 15,16411, 8219,16411,16411,16411,16411,16411, + 1, 3, 3,16411,16411,16411,16411,16411,16411,16411, + 16411,16411,16411,16411,16411,16411,16411,16411,16411,16411, + 16411,16411, 9, 8219,16411,16411,16411,16411, 25, 22, + 16411, 9,16411,16411,16411,16411, 2,16411,16411,16411, + 16411,16411,16411,16411, 10, 8219,16411,16411,16411,16411, + 16411, 8, 8219, 20,16411,16411,16411, 23, 12, 8219, + 16411,16411,16411,16411, 16, 17, 21,16411,16411, 19, + 24, 18, 13, 8219,16411, 11, 8219, 11 + + } ; + +static yyconst flex_int16_t yy_accept[276] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 2, 4, 6, + 8, 11, 14, 17, 20, 23, 26, 29, 32, 34, + 36, 38, 40, 42, 44, 46, 48, 51, 54, 57, + 59, 62, 65, 68, 72, 76, 80, 84, 88, 92, + 96, 100, 104, 107, 110, 113, 116, 119, 122, 125, + 128, 132, 136, 139, 142, 145, 149, 153, 157, 161, + 165, 169, 173, 177, 180, 183, 186, 189, 192, 195, + 198, 201, 205, 209, 210, 211, 212, 213, 214, 214, + 214, 215, 216, 217, 218, 219, 220, 221, 221, 221, + 221, 221, 221, 221, 221, 221, 221, 221, 222, 222, + + 223, 225, 226, 227, 228, 229, 230, 230, 230, 230, + 230, 230, 230, 230, 230, 230, 230, 231, 232, 233, + 234, 235, 236, 236, 236, 236, 236, 236, 236, 236, + 236, 236, 236, 236, 237, 238, 239, 240, 241, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 243, 243, 243, 245, 246, 247, 248, 249, 249, + 249, 249, 249, 249, 250, 250, 251, 251, 251, 251, + 251, 252, 253, 254, 255, 256, 257, 257, 257, 257, + 257, 257, 257, 257, 257, 258, 259, 260, 261, 262, + 263, 263, 263, 263, 263, 263, 263, 263, 263, 264, + + 265, 265, 267, 268, 269, 269, 269, 269, 269, 269, + 269, 269, 269, 270, 271, 272, 272, 274, 274, 274, + 274, 274, 274, 274, 275, 275, 275, 276, 277, 278, + 278, 278, 279, 279, 279, 279, 279, 279, 279, 281, + 282, 283, 283, 283, 283, 283, 283, 283, 284, 285, + 285, 286, 286, 287, 287, 287, 287, 287, 288, 289, + 290, 290, 291, 291, 292, 292, 293, 293, 295, 296, + 296, 296, 298, 299, 299 + } ; + +static yyconst flex_int32_t yy_ec[256] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, + 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 4, 1, 1, 5, 1, 1, 1, 1, 1, + 1, 1, 1, 6, 7, 8, 1, 9, 9, 9, + 10, 9, 9, 9, 9, 9, 9, 1, 1, 1, + 1, 1, 1, 1, 11, 11, 12, 11, 11, 13, + 14, 11, 15, 11, 11, 16, 17, 11, 11, 11, + 11, 18, 19, 20, 11, 21, 11, 11, 11, 11, + 22, 1, 23, 1, 1, 1, 24, 25, 26, 27, + + 28, 29, 30, 31, 32, 30, 30, 33, 34, 35, + 36, 37, 30, 38, 39, 40, 41, 42, 30, 43, + 44, 30, 45, 1, 46, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1 + } ; + +static yyconst flex_int32_t yy_meta[47] = + { 0, + 1, 2, 2, 3, 1, 4, 5, 5, 3, 3, + 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, + 6, 1, 4, 6, 6, 6, 6, 7, 6, 6, + 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, + 6, 6, 6, 6, 6, 1 + } ; + +static yyconst flex_int16_t yy_base[278] = + { 0, + 0, 42, 81, 0, 127, 0, 619, 620, 620, 39, + 172, 173, 179, 181, 182, 180, 183, 620, 584, 581, + 584, 581, 590, 577, 19, 574, 620, 620, 590, 183, + 620, 620, 42, 0, 185, 187, 193, 194, 188, 206, + 197, 620, 576, 573, 576, 573, 582, 569, 22, 566, + 620, 620, 620, 620, 45, 0, 190, 204, 198, 209, + 192, 217, 620, 569, 566, 569, 566, 575, 562, 26, + 559, 620, 620, 0, 0, 51, 620, 0, 52, 205, + 237, 620, 242, 243, 244, 251, 248, 571, 559, 565, + 561, 552, 559, 558, 561, 564, 568, 620, 251, 56, + + 249, 257, 256, 264, 270, 259, 549, 538, 546, 533, + 34, 536, 534, 542, 531, 548, 272, 266, 262, 268, + 280, 276, 536, 536, 521, 522, 522, 527, 518, 525, + 515, 516, 538, 296, 316, 282, 312, 319, 318, 518, + 537, 512, 518, 517, 505, 327, 512, 513, 508, 540, + 320, 330, 333, 620, 339, 322, 334, 336, 503, 507, + 512, 497, 513, 620, 348, 620, 508, 510, 509, 492, + 335, 620, 343, 341, 344, 349, 500, 482, 495, 476, + 470, 462, 459, 437, 620, 356, 367, 354, 368, 364, + 436, 439, 428, 435, 422, 390, 269, 249, 365, 369, + + 373, 620, 386, 379, 242, 230, 236, 231, 230, 401, + 228, 168, 396, 383, 393, 394, 620, 163, 413, 157, + 157, 53, 423, 620, 46, 52, 403, 415, 404, 39, + 440, 620, 38, 38, 45, 35, 26, 416, 620, 418, + 432, 448, 451, 31, 25, 29, 454, 426, 436, 476, + 620, 480, 620, 483, 486, 489, 492, 620, 455, 465, + 513, 620, 516, 620, 519, 620, 461, 620, 522, 525, + 528, 620, 620, 620, 571, 577, 580 + } ; + +static yyconst flex_int16_t yy_def[278] = + { 0, + 274, 1, 274, 3, 274, 5, 274, 274, 274, 274, + 274, 275, 275, 275, 275, 275, 275, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 11, 275, 275, 275, 275, 275, 275, + 275, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 11, 275, 275, 275, 275, + 275, 275, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 11, 276, 11, 274, 11, 277, 274, + 275, 274, 275, 275, 275, 275, 275, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + + 275, 275, 275, 275, 275, 275, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 275, 275, 275, 275, + 275, 275, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 275, 275, 275, 275, 275, 275, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 275, 274, 274, 274, 275, 275, 275, 275, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 275, 274, 275, 275, 275, 275, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 275, 275, 275, 275, 275, + 274, 274, 274, 274, 274, 274, 274, 274, 275, 275, + + 274, 274, 275, 275, 274, 274, 274, 274, 274, 274, + 274, 274, 275, 275, 275, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 275, 275, 275, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 275, + 275, 274, 274, 274, 274, 274, 274, 275, 275, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 275, 275, + 274, 274, 274, 274, 274, 274, 274, 274, 275, 274, + 274, 274, 274, 0, 274, 274, 274 + } ; + +static yyconst flex_int16_t yy_nxt[667] = + { 0, + 8, 8, 9, 8, 8, 8, 10, 8, 11, 11, + 12, 13, 12, 14, 15, 12, 16, 12, 17, 12, + 12, 8, 18, 19, 8, 20, 21, 22, 8, 8, + 8, 8, 8, 23, 8, 8, 24, 8, 25, 26, + 8, 8, 8, 8, 27, 28, 29, 74, 74, 94, + 74, 74, 94, 74, 74, 95, 94, 77, 95, 76, + 76, 127, 95, 100, 100, 100, 256, 255, 254, 247, + 246, 128, 245, 244, 77, 243, 242, 237, 236, 235, + 30, 31, 31, 32, 31, 31, 31, 33, 31, 34, + 34, 35, 36, 35, 37, 38, 35, 39, 35, 40, + + 35, 41, 31, 42, 43, 31, 44, 45, 46, 31, + 31, 31, 31, 31, 47, 31, 31, 48, 31, 49, + 50, 31, 31, 31, 31, 51, 52, 53, 53, 54, + 53, 53, 53, 55, 53, 56, 56, 57, 58, 57, + 59, 60, 57, 61, 57, 62, 57, 57, 53, 63, + 64, 53, 65, 66, 67, 53, 53, 53, 53, 53, + 68, 53, 53, 69, 53, 70, 71, 53, 53, 53, + 53, 72, 73, 75, 75, 76, 80, 77, 76, 76, + 78, 78, 80, 80, 80, 80, 80, 98, 80, 234, + 80, 80, 233, 80, 77, 80, 80, 80, 230, 79, + + 80, 80, 226, 86, 100, 101, 101, 80, 80, 80, + 87, 86, 80, 94, 83, 86, 85, 82, 84, 95, + 80, 99, 83, 82, 82, 82, 82, 82, 85, 82, + 84, 82, 82, 87, 82, 84, 82, 82, 82, 83, + 80, 82, 82, 85, 87, 80, 80, 80, 82, 82, + 82, 80, 80, 82, 80, 98, 100, 101, 101, 80, + 80, 82, 80, 225, 222, 80, 221, 80, 220, 80, + 104, 80, 219, 80, 218, 80, 212, 102, 103, 80, + 211, 82, 122, 80, 106, 80, 82, 82, 82, 99, + 105, 119, 82, 82, 117, 82, 118, 120, 134, 80, + + 82, 82, 135, 82, 136, 137, 82, 121, 82, 155, + 82, 138, 82, 139, 82, 80, 82, 152, 152, 153, + 82, 80, 80, 80, 82, 80, 82, 151, 165, 165, + 165, 152, 152, 152, 152, 152, 153, 80, 80, 80, + 82, 158, 80, 156, 80, 174, 80, 80, 166, 165, + 165, 165, 80, 175, 171, 187, 82, 201, 186, 80, + 154, 157, 82, 82, 82, 173, 82, 80, 80, 166, + 80, 80, 80, 188, 172, 176, 201, 154, 82, 82, + 82, 189, 216, 82, 190, 82, 80, 82, 82, 80, + 200, 203, 213, 82, 214, 199, 80, 216, 202, 80, + + 82, 204, 223, 223, 223, 227, 238, 80, 82, 82, + 228, 82, 82, 82, 231, 231, 231, 202, 80, 238, + 215, 80, 224, 217, 223, 223, 223, 82, 210, 80, + 82, 229, 241, 240, 232, 80, 209, 82, 217, 80, + 82, 231, 231, 231, 224, 248, 208, 239, 82, 250, + 250, 250, 252, 252, 252, 257, 257, 257, 267, 82, + 239, 232, 82, 207, 267, 259, 206, 249, 80, 251, + 82, 205, 253, 260, 198, 258, 82, 250, 250, 250, + 82, 252, 252, 252, 261, 261, 261, 263, 263, 263, + 265, 265, 265, 257, 257, 257, 197, 251, 269, 268, + + 196, 253, 195, 194, 262, 268, 193, 264, 192, 82, + 266, 191, 185, 258, 261, 261, 261, 263, 263, 263, + 265, 265, 265, 270, 270, 271, 270, 270, 270, 270, + 270, 271, 184, 183, 262, 182, 181, 264, 180, 179, + 266, 178, 177, 170, 169, 168, 167, 164, 163, 162, + 161, 160, 159, 150, 149, 148, 147, 146, 145, 144, + 143, 142, 141, 140, 133, 132, 272, 131, 130, 273, + 129, 126, 272, 81, 125, 124, 81, 81, 75, 75, + 123, 75, 79, 79, 79, 116, 79, 115, 114, 113, + 112, 111, 110, 109, 108, 107, 96, 93, 92, 91, + + 90, 89, 88, 96, 93, 92, 91, 90, 89, 88, + 97, 96, 93, 92, 91, 90, 89, 88, 274, 7, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274 + } ; + +static yyconst flex_int16_t yy_chk[667] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 2, 10, 10, 25, + 33, 33, 49, 55, 55, 25, 70, 79, 49, 76, + 76, 111, 70, 100, 100, 100, 246, 245, 244, 237, + 236, 111, 235, 234, 79, 233, 230, 226, 225, 222, + 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + 5, 5, 5, 11, 11, 11, 12, 11, 11, 11, + 11, 11, 13, 16, 14, 15, 17, 30, 35, 221, + 36, 39, 220, 57, 11, 61, 37, 38, 218, 11, + + 41, 59, 212, 16, 41, 41, 41, 58, 80, 40, + 17, 39, 60, 30, 13, 61, 15, 12, 14, 30, + 62, 30, 36, 13, 16, 14, 15, 17, 38, 35, + 37, 36, 39, 40, 57, 59, 61, 37, 38, 58, + 81, 41, 59, 60, 62, 83, 84, 85, 58, 80, + 40, 87, 101, 60, 86, 99, 101, 101, 101, 103, + 102, 62, 106, 211, 209, 119, 208, 104, 207, 118, + 85, 120, 206, 105, 205, 117, 198, 83, 84, 122, + 197, 81, 106, 121, 87, 136, 83, 84, 85, 99, + 86, 104, 87, 101, 102, 86, 103, 105, 117, 134, + + 103, 102, 118, 106, 119, 120, 119, 105, 104, 136, + 118, 121, 120, 122, 105, 137, 117, 135, 135, 135, + 122, 139, 138, 151, 121, 156, 136, 134, 146, 146, + 146, 152, 152, 152, 153, 153, 153, 157, 171, 158, + 134, 139, 155, 137, 174, 156, 173, 175, 146, 165, + 165, 165, 176, 157, 151, 173, 137, 188, 171, 186, + 135, 138, 139, 138, 151, 155, 156, 190, 199, 165, + 187, 189, 200, 174, 152, 158, 201, 153, 157, 171, + 158, 175, 204, 155, 176, 174, 214, 173, 175, 203, + 187, 189, 199, 176, 200, 186, 215, 216, 188, 213, + + 186, 190, 210, 210, 210, 213, 227, 229, 190, 199, + 214, 187, 189, 200, 219, 219, 219, 201, 228, 238, + 203, 240, 210, 204, 223, 223, 223, 214, 196, 248, + 203, 215, 229, 228, 219, 241, 195, 215, 216, 249, + 213, 231, 231, 231, 223, 240, 194, 227, 229, 242, + 242, 242, 243, 243, 243, 247, 247, 247, 259, 228, + 238, 231, 240, 193, 267, 248, 192, 241, 260, 242, + 248, 191, 243, 249, 184, 247, 241, 250, 250, 250, + 249, 252, 252, 252, 254, 254, 254, 255, 255, 255, + 256, 256, 256, 257, 257, 257, 183, 250, 260, 259, + + 182, 252, 181, 180, 254, 267, 179, 255, 178, 260, + 256, 177, 170, 257, 261, 261, 261, 263, 263, 263, + 265, 265, 265, 269, 269, 269, 270, 270, 270, 271, + 271, 271, 169, 168, 261, 167, 163, 263, 162, 161, + 265, 160, 159, 150, 149, 148, 147, 145, 144, 143, + 142, 141, 140, 133, 132, 131, 130, 129, 128, 127, + 126, 125, 124, 123, 116, 115, 269, 114, 113, 270, + 112, 110, 271, 275, 109, 108, 275, 275, 276, 276, + 107, 276, 277, 277, 277, 97, 277, 96, 95, 94, + 93, 92, 91, 90, 89, 88, 71, 69, 68, 67, + + 66, 65, 64, 50, 48, 47, 46, 45, 44, 43, + 29, 26, 24, 23, 22, 21, 20, 19, 7, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + 274, 274, 274, 274, 274, 274 + } ; + +#define YY_TRAILING_MASK 0x2000 +#define YY_TRAILING_HEAD_MASK 0x4000 +#define REJECT \ +{ \ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ \ +yy_cp = yyg->yy_full_match; /* restore poss. backed-over text */ \ +yyg->yy_lp = yyg->yy_full_lp; /* restore orig. accepting pos. */ \ +yyg->yy_state_ptr = yyg->yy_full_state; /* restore orig. state */ \ +yy_current_state = *yyg->yy_state_ptr; /* restore curr. state */ \ +++yyg->yy_lp; \ +goto find_rule; \ +} + +#define yymore() yymore_used_but_not_detected +#define YY_MORE_ADJ 0 +#define YY_RESTORE_YY_MORE_OFFSET +#line 1 "imp_vrml_v1.l" +/* $Id$ */ +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + + +/* $Id$ */ +/* +libg3d - 3D object loading library +Copyright (C) 2005-2009 Markus Dahms +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#define __USE_POSIX 1 +#define _XOPEN_SOURCE 500 +#define _POSIX_C_SOURCE 200112L +#include +#include +#include +#include +#include +#include +#if DEBUG > 0 +# define vrml_dump_hier(level, section) g_debug("\\%.*s[%s]", \ +level, " ", section) +#else +# define vrml_dump_hier(level, section) /* */ +#endif +#define VRML_OTYPE_MAT 0x0100 +#define VRML_OTYPE_MAT_AMBIENTCOLOR 0x0101 +#define VRML_OTYPE_MAT_DIFFUSECOLOR 0x0102 +#define VRML_OTYPE_MAT_SPECULARCOLOR 0x0103 +#define VRML_OTYPE_MAT_EMISSIVECOLOR 0x0104 +#define VRML_OTYPE_MAT_SHININESS 0x0105 +#define VRML_OTYPE_MAT_TRANSPARENCY 0x0106 +#define VRML_OTYPE_COORD3 0x0200 +#define VRML_OTYPE_COORD3_POINT 0x0201 +#define VRML_OTYPE_IDXFACESET 0x0300 +#define VRML_OTYPE_IDXFACESET_COORDIDX 0x0301 +#define VRML_OTYPE_IDXFACESET_MATIDX 0x0302 +#define VRML_OTYPE_MTRANS 0x0400 +#define VRML_OTYPE_MTRANS_MATRIX 0x0401 +#line 778 "imp_vrml_v1.c" + +#define INITIAL 0 +#define VRMLHEADER 1 +#define COMMENT 2 + +#ifndef YY_NO_UNISTD_H +/* Special case for "unistd.h", since it is non-ANSI. We include it way + * down here because we want the user's section 1 to have been scanned first. + * The user has a chance to override it with an option. + */ +#include +#endif + +#ifndef YY_EXTRA_TYPE +#define YY_EXTRA_TYPE void * +#endif + +/* Holds the entire state of the reentrant scanner. */ +struct yyguts_t + { + + /* User-defined. Not touched by flex. */ + YY_EXTRA_TYPE yyextra_r; + + /* The rest are the same as the globals declared in the non-reentrant scanner. */ + FILE *yyin_r, *yyout_r; + size_t yy_buffer_stack_top; /**< index of top of stack. */ + size_t yy_buffer_stack_max; /**< capacity of stack. */ + YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ + char yy_hold_char; + int yy_n_chars; + int yyleng_r; + char *yy_c_buf_p; + int yy_init; + int yy_start; + int yy_did_buffer_switch_on_eof; + int yy_start_stack_ptr; + int yy_start_stack_depth; + int *yy_start_stack; + yy_state_type yy_last_accepting_state; + char* yy_last_accepting_cpos; + + int yylineno_r; + int yy_flex_debug_r; + + yy_state_type *yy_state_buf; + yy_state_type *yy_state_ptr; + char *yy_full_match; + int yy_lp; + + /* These are only needed for trailing context rules, + * but there's no conditional variable for that yet. */ + int yy_looking_for_trail_begin; + int yy_full_lp; + int *yy_full_state; + + char *yytext_r; + int yy_more_flag; + int yy_more_len; + + }; /* end struct yyguts_t */ + +static int yy_init_globals (yyscan_t yyscanner ); + +int vrml_v1_yylex_init (yyscan_t* scanner); + +int vrml_v1_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); + +/* Accessor methods to globals. + These are made visible to non-reentrant scanners for convenience. */ + +int vrml_v1_yylex_destroy (yyscan_t yyscanner ); + +int vrml_v1_yyget_debug (yyscan_t yyscanner ); + +void vrml_v1_yyset_debug (int debug_flag ,yyscan_t yyscanner ); + +YY_EXTRA_TYPE vrml_v1_yyget_extra (yyscan_t yyscanner ); + +void vrml_v1_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); + +FILE *vrml_v1_yyget_in (yyscan_t yyscanner ); + +void vrml_v1_yyset_in (FILE * in_str ,yyscan_t yyscanner ); + +FILE *vrml_v1_yyget_out (yyscan_t yyscanner ); + +void vrml_v1_yyset_out (FILE * out_str ,yyscan_t yyscanner ); + +int vrml_v1_yyget_leng (yyscan_t yyscanner ); + +char *vrml_v1_yyget_text (yyscan_t yyscanner ); + +int vrml_v1_yyget_lineno (yyscan_t yyscanner ); + +void vrml_v1_yyset_lineno (int line_number ,yyscan_t yyscanner ); + +/* Macros after this point can all be overridden by user definitions in + * section 1. + */ + +#ifndef YY_SKIP_YYWRAP +#ifdef __cplusplus +extern "C" int vrml_v1_yywrap (yyscan_t yyscanner ); +#else +extern int vrml_v1_yywrap (yyscan_t yyscanner ); +#endif +#endif + + static void yyunput (int c,char *buf_ptr ,yyscan_t yyscanner); + +#ifndef yytext_ptr +static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); +#endif + +#ifdef YY_NEED_STRLEN +static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); +#endif + +#ifndef YY_NO_INPUT + +#ifdef __cplusplus +static int yyinput (yyscan_t yyscanner ); +#else +static int input (yyscan_t yyscanner ); +#endif + +#endif + +/* Amount of stuff to slurp up with each read. */ +#ifndef YY_READ_BUF_SIZE +#define YY_READ_BUF_SIZE 8192 +#endif + +/* Copy whatever the last rule matched to the standard output. */ +#ifndef ECHO +/* This used to be an fputs(), but since the string might contain NUL's, + * we now use fwrite(). + */ +#define ECHO fwrite( yytext, yyleng, 1, yyout ) +#endif + +/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, + * is returned in "result". + */ +#ifndef YY_INPUT +#define YY_INPUT(buf,result,max_size) \ + if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ + { \ + int c = '*'; \ + size_t n; \ + for ( n = 0; n < max_size && \ + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ + buf[n] = (char) c; \ + if ( c == '\n' ) \ + buf[n++] = (char) c; \ + if ( c == EOF && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + result = n; \ + } \ + else \ + { \ + errno=0; \ + while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ + { \ + if( errno != EINTR) \ + { \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + break; \ + } \ + errno=0; \ + clearerr(yyin); \ + } \ + }\ +\ + +#endif + +/* No semi-colon after return; correct usage is to write "yyterminate();" - + * we don't want an extra ';' after the "return" because that will cause + * some compilers to complain about unreachable statements. + */ +#ifndef yyterminate +#define yyterminate() return YY_NULL +#endif + +/* Number of entries by which start-condition stack grows. */ +#ifndef YY_START_STACK_INCR +#define YY_START_STACK_INCR 25 +#endif + +/* Report a fatal error. */ +#ifndef YY_FATAL_ERROR +#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) +#endif + +/* end tables serialization structures and prototypes */ + +/* Default declaration of generated scanner - a define so the user can + * easily add parameters. + */ +#ifndef YY_DECL +#define YY_DECL_IS_OURS 1 + +extern int vrml_v1_yylex (yyscan_t yyscanner); + +#define YY_DECL int vrml_v1_yylex (yyscan_t yyscanner) +#endif /* !YY_DECL */ + +/* Code executed at the beginning of each rule, after yytext and yyleng + * have been set up. + */ +#ifndef YY_USER_ACTION +#define YY_USER_ACTION +#endif + +/* Code executed at the end of each rule. */ +#ifndef YY_BREAK +#define YY_BREAK break; +#endif + +#define YY_RULE_SETUP \ + if ( yyleng > 0 ) \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ + (yytext[yyleng - 1] == '\n'); \ + YY_USER_ACTION + +/** The main scanner function which does all the work. + */ +YY_DECL +{ + register yy_state_type yy_current_state; + register char *yy_cp, *yy_bp; + register int yy_act; + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + +#line 86 "imp_vrml_v1.l" + + G3DObject *object = NULL; + G3DFace *face; + G3DMaterial *material = NULL; + guint32 level = 0, off, otype = 0, sep_level = 0; + guint32 ohasmtrx = 0; + guint32 faceidx = 0, faceidxbuf[128]; + guint32 matidx = 0; + gint32 tmps32, i; + G3DFloat matrix[16]; + +#line 1027 "imp_vrml_v1.c" + + if ( !yyg->yy_init ) + { + yyg->yy_init = 1; + +#ifdef YY_USER_INIT + YY_USER_INIT; +#endif + + /* Create the reject buffer large enough to save one state per allowed character. */ + if ( ! yyg->yy_state_buf ) + yyg->yy_state_buf = (yy_state_type *)vrml_v1_yyalloc(YY_STATE_BUF_SIZE ,yyscanner); + if ( ! yyg->yy_state_buf ) + YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yylex()" ); + + if ( ! yyg->yy_start ) + yyg->yy_start = 1; /* first start state */ + + if ( ! yyin ) + yyin = stdin; + + if ( ! yyout ) + yyout = stdout; + + if ( ! YY_CURRENT_BUFFER ) { + vrml_v1_yyensure_buffer_stack (yyscanner); + YY_CURRENT_BUFFER_LVALUE = + vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); + } + + vrml_v1_yy_load_buffer_state(yyscanner ); + } + + while ( 1 ) /* loops until end-of-file is reached */ + { + yy_cp = yyg->yy_c_buf_p; + + /* Support of yytext. */ + *yy_cp = yyg->yy_hold_char; + + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; + + yy_current_state = yyg->yy_start; + yy_current_state += YY_AT_BOL(); + + yyg->yy_state_ptr = yyg->yy_state_buf; + *yyg->yy_state_ptr++ = yy_current_state; + +yy_match: + do + { + register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 275 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + *yyg->yy_state_ptr++ = yy_current_state; + ++yy_cp; + } + while ( yy_base[yy_current_state] != 620 ); + +yy_find_action: + yy_current_state = *--yyg->yy_state_ptr; + yyg->yy_lp = yy_accept[yy_current_state]; +find_rule: /* we branch to this label when backing up */ + for ( ; ; ) /* until we find what rule we matched */ + { + if ( yyg->yy_lp && yyg->yy_lp < yy_accept[yy_current_state + 1] ) + { + yy_act = yy_acclist[yyg->yy_lp]; + if ( yy_act & YY_TRAILING_HEAD_MASK || + yyg->yy_looking_for_trail_begin ) + { + if ( yy_act == yyg->yy_looking_for_trail_begin ) + { + yyg->yy_looking_for_trail_begin = 0; + yy_act &= ~YY_TRAILING_HEAD_MASK; + break; + } + } + else if ( yy_act & YY_TRAILING_MASK ) + { + yyg->yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK; + yyg->yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK; + } + else + { + yyg->yy_full_match = yy_cp; + yyg->yy_full_state = yyg->yy_state_ptr; + yyg->yy_full_lp = yyg->yy_lp; + break; + } + ++yyg->yy_lp; + goto find_rule; + } + --yy_cp; + yy_current_state = *--yyg->yy_state_ptr; + yyg->yy_lp = yy_accept[yy_current_state]; + } + + YY_DO_BEFORE_ACTION; + +do_action: /* This label is used only to access EOF actions. */ + + switch ( yy_act ) + { /* beginning of action switch */ +case 1: +YY_RULE_SETUP +#line 97 "imp_vrml_v1.l" +{ + BEGIN COMMENT; +} + YY_BREAK +case 2: +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 5; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 101 "imp_vrml_v1.l" +{ + /* magic header */ + #if DEBUG > 0 + g_debug("VRML: got header"); + #endif + BEGIN VRMLHEADER; +} + YY_BREAK +case 3: +YY_RULE_SETUP +#line 109 "imp_vrml_v1.l" +{ + #if DEBUG > 0 + g_debug("VRML: version %s", yytext + 1); + #endif +} + YY_BREAK +case 4: +YY_RULE_SETUP +#line 115 "imp_vrml_v1.l" +/* */ + YY_BREAK +case 5: +/* rule 5 can match eol */ +YY_RULE_SETUP +#line 117 "imp_vrml_v1.l" +{ + BEGIN INITIAL; +} + YY_BREAK +case 6: +YY_RULE_SETUP +#line 121 "imp_vrml_v1.l" +{ + #if DEBUG > 0 + g_debug("COMMENT: %s", yytext); + #endif +} + YY_BREAK +case 7: +/* rule 7 can match eol */ +YY_RULE_SETUP +#line 127 "imp_vrml_v1.l" +{ + BEGIN INITIAL; +} + YY_BREAK +case 8: +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 9; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 131 "imp_vrml_v1.l" +{ + vrml_dump_hier(level, "Separator"); + if((object == NULL) || (object->vertex_count == 0)) + { + object = g_new0(G3DObject, 1); + ((G3DModel *)yyextra)->objects = g_slist_append( + ((G3DModel *)yyextra)->objects, object); + sep_level = level; + ohasmtrx = 0; + } +} + YY_BREAK +case 9: +/* rule 9 can match eol */ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 5; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 143 "imp_vrml_v1.l" +{ + vrml_dump_hier(level, "Group"); +} + YY_BREAK +case 10: +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 8; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 147 "imp_vrml_v1.l" +{ + vrml_dump_hier(level, "Material"); + if(object) + { + material = g3d_material_new(); + material->name = g_strdup("object material"); + object->materials = g_slist_append(object->materials, material); + } + otype = VRML_OTYPE_MAT; +} + YY_BREAK +case 11: +/* rule 11 can match eol */ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 15; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 158 "imp_vrml_v1.l" +{ + vrml_dump_hier(level, "MatrixTransform"); + otype = VRML_OTYPE_MTRANS; +} + YY_BREAK +case 12: +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 11; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 163 "imp_vrml_v1.l" +{ + vrml_dump_hier(level, "Coordinate3"); + if(!object) + { + object = g_new0(G3DObject, 1); + object->name = g_strdup("VRML 1 object"); + ((G3DModel *)yyextra)->objects = g_slist_append( + ((G3DModel *)yyextra)->objects, object); + ohasmtrx = 0; + } + otype = VRML_OTYPE_COORD3; +} + YY_BREAK +case 13: +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 14; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 176 "imp_vrml_v1.l" +{ + vrml_dump_hier(level, "IndexedFaceSet"); + otype = VRML_OTYPE_IDXFACESET; +} + YY_BREAK +case 14: +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp -= 1; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 181 "imp_vrml_v1.l" +{ + #if DEBUG > 3 + g_debug("# (0x%04x) %s", otype, yytext); + #endif + if((otype & 0xFF00) == VRML_OTYPE_MAT) + { + if(object == NULL) continue; + material = g_slist_nth_data(object->materials, matidx); + if(material == NULL) + { + material = g3d_material_new(); + material->name = g_strdup_printf("material #%d", matidx); + object->materials = g_slist_append(object->materials, material); + } + matidx ++; + switch(otype) + { + case VRML_OTYPE_MAT_DIFFUSECOLOR: + if(sscanf(yytext, "%f%f%f", + &(material->r), &(material->g), &(material->b)) != 3) + { + #if DEBUG > 0 + g_debug("VRML1: failed to get ambient color"); + #endif + } + break; + + default: + #if DEBUG > 0 + g_debug("VRML: unhandled material property: 0x%02x (%s)", + otype, yytext); + #endif + break; + } + } + else if(otype == VRML_OTYPE_COORD3_POINT) + { + off = object->vertex_count; + object->vertex_count ++; + object->vertex_data = g_realloc(object->vertex_data, + object->vertex_count * 3 * sizeof(G3DFloat)); + + #if DEBUG > 3 + g_debug("VRML: object vertex count: %d", object->vertex_count); + #endif + + if(sscanf(yytext, "%f%f%f", + &(object->vertex_data[off * 3 + 0]), + &(object->vertex_data[off * 3 + 1]), + &(object->vertex_data[off * 3 + 2])) != 3) + { + g_warning("VRML: failed to read vertex (%s)\n", yytext); + } + else + { + #if DEBUG > 3 + if((object->vertex_data[off * 3 + 0] == 0.0) || + (object->vertex_data[off * 3 + 1] == 0.0) || + (object->vertex_data[off * 3 + 2] == 0.0)) + { + g_debug("VRML1: 0.0: %+2.2f %+2.2f %+2.2f (%s)", + object->vertex_data[off * 3 + 0], + object->vertex_data[off * 3 + 1], + object->vertex_data[off * 3 + 2], + yytext); + } + #endif + if(ohasmtrx) + g3d_vector_transform( + &(object->vertex_data[off * 3 + 0]), + &(object->vertex_data[off * 3 + 1]), + &(object->vertex_data[off * 3 + 2]), + matrix); + } + } + else if(otype == VRML_OTYPE_IDXFACESET_COORDIDX) + { + sscanf(yytext, "%i", &tmps32); + if(tmps32 == -1) + { + if(object == NULL) continue; + + face = g_new0(G3DFace, 1); + face->material = material; + if(face->material == NULL) + face->material = g_slist_nth_data( + object->materials, 0); + if(face->material == NULL) + face->material = g_slist_nth_data( + ((G3DModel *)yyextra)->materials, 0); + face->vertex_count = faceidx; + face->vertex_indices = g_new0(guint32, face->vertex_count); + for(i = 0; i < face->vertex_count; i ++) + { + if(faceidxbuf[i] >= object->vertex_count) + { + g_debug("VRML: Face: index %d >= vertex count (%d)", + faceidxbuf[i], object->vertex_count); + } + else + { + face->vertex_indices[i] = faceidxbuf[i]; + } + } + + if(face->vertex_count >= 3) + object->faces = g_slist_prepend(object->faces, face); + faceidx = 0; + } + else + { + #if DEBUG > 3 + if(tmps32 == 0) + g_debug("VRML1: faceidx 0: %s", yytext); + #endif + faceidxbuf[faceidx] = tmps32; + faceidx ++; + } + } + else if(otype == VRML_OTYPE_IDXFACESET_MATIDX) + { + i = atoi(yytext); + #if DEBUG > 3 + g_debug("VRML1: looking for object material #%d", i); + #endif + material = g_slist_nth_data(object->materials, i); + if(material) + { + #if DEBUG > 3 + g_debug("VRML1: got material to update"); + #endif + face = g_slist_nth_data(object->faces, faceidx); + if(face) + { + face->material = material; + #if DEBUG > 1 + g_debug("VRML1: updating material of face #%d", faceidx); + #endif + } + } + faceidx ++; + } +} + YY_BREAK +case 15: +/* rule 15 can match eol */ +YY_RULE_SETUP +#line 325 "imp_vrml_v1.l" +{ + if(otype == VRML_OTYPE_MTRANS_MATRIX) + { + if(sscanf(yytext, "%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f", + &matrix[0 * 4 + 0], + &matrix[0 * 4 + 1], + &matrix[0 * 4 + 2], + &matrix[0 * 4 + 3], + + &matrix[1 * 4 + 0], + &matrix[1 * 4 + 1], + &matrix[1 * 4 + 2], + &matrix[1 * 4 + 3], + + &matrix[2 * 4 + 0], + &matrix[2 * 4 + 1], + &matrix[2 * 4 + 2], + &matrix[2 * 4 + 3], + + &matrix[3 * 4 + 0], + &matrix[3 * 4 + 1], + &matrix[3 * 4 + 2], + &matrix[3 * 4 + 3]) != 16) + { + g_warning("VRML: failed to read matrix line (%s)", yytext); + } + } +} + YY_BREAK +case 16: +/* rule 16 can match eol */ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 12; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 354 "imp_vrml_v1.l" +{ + otype = VRML_OTYPE_MAT_AMBIENTCOLOR; +} + YY_BREAK +case 17: +/* rule 17 can match eol */ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 12; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 358 "imp_vrml_v1.l" +{ + otype = VRML_OTYPE_MAT_DIFFUSECOLOR; +} + YY_BREAK +case 18: +/* rule 18 can match eol */ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 13; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 362 "imp_vrml_v1.l" +{ + otype = VRML_OTYPE_MAT_SPECULARCOLOR; +} + YY_BREAK +case 19: +/* rule 19 can match eol */ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 13; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 366 "imp_vrml_v1.l" +{ + otype = VRML_OTYPE_MAT_EMISSIVECOLOR; +} + YY_BREAK +case 20: +/* rule 20 can match eol */ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 9; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 370 "imp_vrml_v1.l" +{ + otype = VRML_OTYPE_MAT_SHININESS; +} + YY_BREAK +case 21: +/* rule 21 can match eol */ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 12; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 374 "imp_vrml_v1.l" +{ + otype = VRML_OTYPE_MAT_TRANSPARENCY; +} + YY_BREAK +case 22: +/* rule 22 can match eol */ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 5; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 378 "imp_vrml_v1.l" +{ + otype = VRML_OTYPE_COORD3_POINT; +} + YY_BREAK +case 23: +/* rule 23 can match eol */ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 10; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 382 "imp_vrml_v1.l" +{ + if(otype == VRML_OTYPE_IDXFACESET) + otype = VRML_OTYPE_IDXFACESET_COORDIDX; +} + YY_BREAK +case 24: +/* rule 24 can match eol */ +*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ +yyg->yy_c_buf_p = yy_cp = yy_bp + 13; +YY_DO_BEFORE_ACTION; /* set up yytext again */ +YY_RULE_SETUP +#line 387 "imp_vrml_v1.l" +{ + #if DEBUG > 0 + g_debug("VRML1: materialIndex"); + #endif + /*if(otype == VRML_OTYPE_IDXFACESET)*/ + otype = VRML_OTYPE_IDXFACESET_MATIDX; +} + YY_BREAK +case 25: +YY_RULE_SETUP +#line 395 "imp_vrml_v1.l" +{ + if(otype == VRML_OTYPE_MTRANS) + { + otype = VRML_OTYPE_MTRANS_MATRIX; + ohasmtrx = 1; + } +} + YY_BREAK +case 26: +YY_RULE_SETUP +#line 403 "imp_vrml_v1.l" +{ + /* set to parent object */ + otype &= 0xFF00; + matidx = 0; + faceidx = 0; +} + YY_BREAK +case 27: +YY_RULE_SETUP +#line 410 "imp_vrml_v1.l" +{ + vrml_dump_hier(level, yytext); +} + YY_BREAK +case 28: +YY_RULE_SETUP +#line 414 "imp_vrml_v1.l" +{ + level ++; +} + YY_BREAK +case 29: +YY_RULE_SETUP +#line 418 "imp_vrml_v1.l" +{ + #if DEBUG > 3 + g_debug("}"); + #endif + level --; + + if(material) + material = NULL; + + if(object && (sep_level == level)) + { + object = NULL; + } + + /* reset object type */ + otype = 0x0000; +} + YY_BREAK +case 30: +YY_RULE_SETUP +#line 436 "imp_vrml_v1.l" +/* */ + YY_BREAK +case 31: +/* rule 31 can match eol */ +YY_RULE_SETUP +#line 437 "imp_vrml_v1.l" +/* */ + YY_BREAK +case YY_STATE_EOF(INITIAL): +case YY_STATE_EOF(VRMLHEADER): +case YY_STATE_EOF(COMMENT): +#line 439 "imp_vrml_v1.l" +{ + yyterminate(); +} + YY_BREAK +case 32: +YY_RULE_SETUP +#line 443 "imp_vrml_v1.l" +YY_FATAL_ERROR( "flex scanner jammed" ); + YY_BREAK +#line 1655 "imp_vrml_v1.c" + + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1; + + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = yyg->yy_hold_char; + YY_RESTORE_YY_MORE_OFFSET + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * vrml_v1_yylex(). If so, then we have to assure + * consistency between YY_CURRENT_BUFFER and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; + } + + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) + { /* This was really a NUL. */ + yy_state_type yy_next_state; + + yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( yyscanner ); + + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ + + yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner); + + yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; + + if ( yy_next_state ) + { + /* Consume the NUL. */ + yy_cp = ++yyg->yy_c_buf_p; + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = yyg->yy_c_buf_p; + goto yy_find_action; + } + } + + else switch ( yy_get_next_buffer( yyscanner ) ) + { + case EOB_ACT_END_OF_FILE: + { + yyg->yy_did_buffer_switch_on_eof = 0; + + if ( vrml_v1_yywrap(yyscanner ) ) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if ( ! yyg->yy_did_buffer_switch_on_eof ) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + yyg->yy_c_buf_p = + yyg->yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( yyscanner ); + + yy_cp = yyg->yy_c_buf_p; + yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + yyg->yy_c_buf_p = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; + + yy_current_state = yy_get_previous_state( yyscanner ); + + yy_cp = yyg->yy_c_buf_p; + yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR( + "fatal flex scanner internal error--no action found" ); + } /* end of action switch */ + } /* end of scanning one token */ +} /* end of vrml_v1_yylex */ + +/* yy_get_next_buffer - try to read in a new buffer + * + * Returns a code representing an action: + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file + */ +static int yy_get_next_buffer (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + register char *source = yyg->yytext_ptr; + register int number_to_move, i; + int ret_val; + + if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) + YY_FATAL_ERROR( + "fatal flex scanner internal error--end of buffer missed" ); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) + { /* Don't try to fill the buffer, so this is an EOF. */ + if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } + + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } + + /* Try to read more data. */ + + /* First move last chars to start of buffer. */ + number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1; + + for ( i = 0; i < number_to_move; ++i ) + *(dest++) = *(source++); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0; + + else + { + int num_to_read = + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) + { /* Not enough room in the buffer - grow it. */ + + YY_FATAL_ERROR( +"input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); + + } + + if ( num_to_read > YY_READ_BUF_SIZE ) + num_to_read = YY_READ_BUF_SIZE; + + /* Read in more data. */ + YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), + yyg->yy_n_chars, (size_t) num_to_read ); + + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; + } + + if ( yyg->yy_n_chars == 0 ) + { + if ( number_to_move == YY_MORE_ADJ ) + { + ret_val = EOB_ACT_END_OF_FILE; + vrml_v1_yyrestart(yyin ,yyscanner); + } + + else + { + ret_val = EOB_ACT_LAST_MATCH; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = + YY_BUFFER_EOF_PENDING; + } + } + + else + ret_val = EOB_ACT_CONTINUE_SCAN; + + if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { + /* Extend the array by 50%, plus the number we really need. */ + yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) vrml_v1_yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner ); + if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); + } + + yyg->yy_n_chars += number_to_move; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; + + yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + + return ret_val; +} + +/* yy_get_previous_state - get the state just before the EOB char was reached */ + + static yy_state_type yy_get_previous_state (yyscan_t yyscanner) +{ + register yy_state_type yy_current_state; + register char *yy_cp; + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + yy_current_state = yyg->yy_start; + yy_current_state += YY_AT_BOL(); + + yyg->yy_state_ptr = yyg->yy_state_buf; + *yyg->yy_state_ptr++ = yy_current_state; + + for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) + { + register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 275 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + *yyg->yy_state_ptr++ = yy_current_state; + } + + return yy_current_state; +} + +/* yy_try_NUL_trans - try to make a transition on the NUL character + * + * synopsis + * next_state = yy_try_NUL_trans( current_state ); + */ + static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) +{ + register int yy_is_jam; + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ + + register YY_CHAR yy_c = 1; + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 275 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + yy_is_jam = (yy_current_state == 274); + if ( ! yy_is_jam ) + *yyg->yy_state_ptr++ = yy_current_state; + + return yy_is_jam ? 0 : yy_current_state; +} + + static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner) +{ + register char *yy_cp; + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + yy_cp = yyg->yy_c_buf_p; + + /* undo effects of setting up yytext */ + *yy_cp = yyg->yy_hold_char; + + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ + register int number_to_move = yyg->yy_n_chars + 2; + register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; + register char *source = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; + + while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + *--dest = *--source; + + yy_cp += (int) (dest - source); + yy_bp += (int) (dest - source); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = + yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; + + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + YY_FATAL_ERROR( "flex scanner push-back overflow" ); + } + + *--yy_cp = (char) c; + + yyg->yytext_ptr = yy_bp; + yyg->yy_hold_char = *yy_cp; + yyg->yy_c_buf_p = yy_cp; +} + +#ifndef YY_NO_INPUT +#ifdef __cplusplus + static int yyinput (yyscan_t yyscanner) +#else + static int input (yyscan_t yyscanner) +#endif + +{ + int c; + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + *yyg->yy_c_buf_p = yyg->yy_hold_char; + + if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) + /* This was really a NUL. */ + *yyg->yy_c_buf_p = '\0'; + + else + { /* need more input */ + int offset = yyg->yy_c_buf_p - yyg->yytext_ptr; + ++yyg->yy_c_buf_p; + + switch ( yy_get_next_buffer( yyscanner ) ) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ + + /* Reset buffer status. */ + vrml_v1_yyrestart(yyin ,yyscanner); + + /*FALLTHROUGH*/ + + case EOB_ACT_END_OF_FILE: + { + if ( vrml_v1_yywrap(yyscanner ) ) + return EOF; + + if ( ! yyg->yy_did_buffer_switch_on_eof ) + YY_NEW_FILE; +#ifdef __cplusplus + return yyinput(yyscanner); +#else + return input(yyscanner); +#endif + } + + case EOB_ACT_CONTINUE_SCAN: + yyg->yy_c_buf_p = yyg->yytext_ptr + offset; + break; + } + } + } + + c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */ + *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ + yyg->yy_hold_char = *++yyg->yy_c_buf_p; + + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); + + return c; +} +#endif /* ifndef YY_NO_INPUT */ + +/** Immediately switch to a different input stream. + * @param input_file A readable stream. + * @param yyscanner The scanner object. + * @note This function does not reset the start condition to @c INITIAL . + */ + void vrml_v1_yyrestart (FILE * input_file , yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + if ( ! YY_CURRENT_BUFFER ){ + vrml_v1_yyensure_buffer_stack (yyscanner); + YY_CURRENT_BUFFER_LVALUE = + vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); + } + + vrml_v1_yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); + vrml_v1_yy_load_buffer_state(yyscanner ); +} + +/** Switch to a different input buffer. + * @param new_buffer The new input buffer. + * @param yyscanner The scanner object. + */ + void vrml_v1_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + /* TODO. We should be able to replace this entire function body + * with + * vrml_v1_yypop_buffer_state(); + * vrml_v1_yypush_buffer_state(new_buffer); + */ + vrml_v1_yyensure_buffer_stack (yyscanner); + if ( YY_CURRENT_BUFFER == new_buffer ) + return; + + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *yyg->yy_c_buf_p = yyg->yy_hold_char; + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; + } + + YY_CURRENT_BUFFER_LVALUE = new_buffer; + vrml_v1_yy_load_buffer_state(yyscanner ); + + /* We don't actually know whether we did this switch during + * EOF (vrml_v1_yywrap()) processing, but the only time this flag + * is looked at is after vrml_v1_yywrap() is called, so it's safe + * to go ahead and always set it. + */ + yyg->yy_did_buffer_switch_on_eof = 1; +} + +static void vrml_v1_yy_load_buffer_state (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; + yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; + yyg->yy_hold_char = *yyg->yy_c_buf_p; +} + +/** Allocate and initialize an input buffer state. + * @param file A readable stream. + * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. + * @param yyscanner The scanner object. + * @return the allocated buffer state. + */ + YY_BUFFER_STATE vrml_v1_yy_create_buffer (FILE * file, int size , yyscan_t yyscanner) +{ + YY_BUFFER_STATE b; + + b = (YY_BUFFER_STATE) vrml_v1_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_create_buffer()" ); + + b->yy_buf_size = size; + + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *) vrml_v1_yyalloc(b->yy_buf_size + 2 ,yyscanner ); + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_create_buffer()" ); + + b->yy_is_our_buffer = 1; + + vrml_v1_yy_init_buffer(b,file ,yyscanner); + + return b; +} + +/** Destroy the buffer. + * @param b a buffer created with vrml_v1_yy_create_buffer() + * @param yyscanner The scanner object. + */ + void vrml_v1_yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + if ( ! b ) + return; + + if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ + YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; + + if ( b->yy_is_our_buffer ) + vrml_v1_yyfree((void *) b->yy_ch_buf ,yyscanner ); + + vrml_v1_yyfree((void *) b ,yyscanner ); +} + +#ifndef __cplusplus +extern int isatty (int ); +#endif /* __cplusplus */ + +/* Initializes or reinitializes a buffer. + * This function is sometimes called more than once on the same buffer, + * such as during a vrml_v1_yyrestart() or at EOF. + */ + static void vrml_v1_yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) + +{ + int oerrno = errno; + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + vrml_v1_yy_flush_buffer(b ,yyscanner); + + b->yy_input_file = file; + b->yy_fill_buffer = 1; + + /* If b is the current buffer, then vrml_v1_yy_init_buffer was _probably_ + * called from vrml_v1_yyrestart() or through yy_get_next_buffer. + * In that case, we don't want to reset the lineno or column. + */ + if (b != YY_CURRENT_BUFFER){ + b->yy_bs_lineno = 1; + b->yy_bs_column = 0; + } + + b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; + + errno = oerrno; +} + +/** Discard all buffered characters. On the next scan, YY_INPUT will be called. + * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. + * @param yyscanner The scanner object. + */ + void vrml_v1_yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + if ( ! b ) + return; + + b->yy_n_chars = 0; + + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + + b->yy_buf_pos = &b->yy_ch_buf[0]; + + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; + + if ( b == YY_CURRENT_BUFFER ) + vrml_v1_yy_load_buffer_state(yyscanner ); +} + +/** Pushes the new state onto the stack. The new state becomes + * the current state. This function will allocate the stack + * if necessary. + * @param new_buffer The new state. + * @param yyscanner The scanner object. + */ +void vrml_v1_yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + if (new_buffer == NULL) + return; + + vrml_v1_yyensure_buffer_stack(yyscanner); + + /* This block is copied from vrml_v1_yy_switch_to_buffer. */ + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *yyg->yy_c_buf_p = yyg->yy_hold_char; + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; + } + + /* Only push if top exists. Otherwise, replace top. */ + if (YY_CURRENT_BUFFER) + yyg->yy_buffer_stack_top++; + YY_CURRENT_BUFFER_LVALUE = new_buffer; + + /* copied from vrml_v1_yy_switch_to_buffer. */ + vrml_v1_yy_load_buffer_state(yyscanner ); + yyg->yy_did_buffer_switch_on_eof = 1; +} + +/** Removes and deletes the top of the stack, if present. + * The next element becomes the new top. + * @param yyscanner The scanner object. + */ +void vrml_v1_yypop_buffer_state (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + if (!YY_CURRENT_BUFFER) + return; + + vrml_v1_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner); + YY_CURRENT_BUFFER_LVALUE = NULL; + if (yyg->yy_buffer_stack_top > 0) + --yyg->yy_buffer_stack_top; + + if (YY_CURRENT_BUFFER) { + vrml_v1_yy_load_buffer_state(yyscanner ); + yyg->yy_did_buffer_switch_on_eof = 1; + } +} + +/* Allocates the stack if it does not exist. + * Guarantees space for at least one push. + */ +static void vrml_v1_yyensure_buffer_stack (yyscan_t yyscanner) +{ + int num_to_alloc; + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + if (!yyg->yy_buffer_stack) { + + /* First allocation is just for 2 elements, since we don't know if this + * scanner will even need a stack. We use 2 instead of 1 to avoid an + * immediate realloc on the next call. + */ + num_to_alloc = 1; + yyg->yy_buffer_stack = (struct yy_buffer_state**)vrml_v1_yyalloc + (num_to_alloc * sizeof(struct yy_buffer_state*) + , yyscanner); + if ( ! yyg->yy_buffer_stack ) + YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yyensure_buffer_stack()" ); + + memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); + + yyg->yy_buffer_stack_max = num_to_alloc; + yyg->yy_buffer_stack_top = 0; + return; + } + + if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){ + + /* Increase the buffer to prepare for a possible push. */ + int grow_size = 8 /* arbitrary grow size */; + + num_to_alloc = yyg->yy_buffer_stack_max + grow_size; + yyg->yy_buffer_stack = (struct yy_buffer_state**)vrml_v1_yyrealloc + (yyg->yy_buffer_stack, + num_to_alloc * sizeof(struct yy_buffer_state*) + , yyscanner); + if ( ! yyg->yy_buffer_stack ) + YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yyensure_buffer_stack()" ); + + /* zero only the new slots.*/ + memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*)); + yyg->yy_buffer_stack_max = num_to_alloc; + } +} + +/** Setup the input buffer state to scan directly from a user-specified character buffer. + * @param base the character buffer + * @param size the size in bytes of the character buffer + * @param yyscanner The scanner object. + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE vrml_v1_yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) +{ + YY_BUFFER_STATE b; + + if ( size < 2 || + base[size-2] != YY_END_OF_BUFFER_CHAR || + base[size-1] != YY_END_OF_BUFFER_CHAR ) + /* They forgot to leave room for the EOB's. */ + return 0; + + b = (YY_BUFFER_STATE) vrml_v1_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_scan_buffer()" ); + + b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ + b->yy_buf_pos = b->yy_ch_buf = base; + b->yy_is_our_buffer = 0; + b->yy_input_file = 0; + b->yy_n_chars = b->yy_buf_size; + b->yy_is_interactive = 0; + b->yy_at_bol = 1; + b->yy_fill_buffer = 0; + b->yy_buffer_status = YY_BUFFER_NEW; + + vrml_v1_yy_switch_to_buffer(b ,yyscanner ); + + return b; +} + +/** Setup the input buffer state to scan a string. The next call to vrml_v1_yylex() will + * scan from a @e copy of @a str. + * @param yystr a NUL-terminated string to scan + * @param yyscanner The scanner object. + * @return the newly allocated buffer state object. + * @note If you want to scan bytes that may contain NUL values, then use + * vrml_v1_yy_scan_bytes() instead. + */ +YY_BUFFER_STATE vrml_v1_yy_scan_string (yyconst char * yystr , yyscan_t yyscanner) +{ + + return vrml_v1_yy_scan_bytes(yystr,strlen(yystr) ,yyscanner); +} + +/** Setup the input buffer state to scan the given bytes. The next call to vrml_v1_yylex() will + * scan from a @e copy of @a bytes. + * @param bytes the byte buffer to scan + * @param len the number of bytes in the buffer pointed to by @a bytes. + * @param yyscanner The scanner object. + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE vrml_v1_yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner) +{ + YY_BUFFER_STATE b; + char *buf; + yy_size_t n; + int i; + + /* Get memory for full buffer, including space for trailing EOB's. */ + n = _yybytes_len + 2; + buf = (char *) vrml_v1_yyalloc(n ,yyscanner ); + if ( ! buf ) + YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_scan_bytes()" ); + + for ( i = 0; i < _yybytes_len; ++i ) + buf[i] = yybytes[i]; + + buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; + + b = vrml_v1_yy_scan_buffer(buf,n ,yyscanner); + if ( ! b ) + YY_FATAL_ERROR( "bad buffer in vrml_v1_yy_scan_bytes()" ); + + /* It's okay to grow etc. this buffer, and we should throw it + * away when we're done. + */ + b->yy_is_our_buffer = 1; + + return b; +} + +#ifndef YY_EXIT_FAILURE +#define YY_EXIT_FAILURE 2 +#endif + +static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner) +{ + (void) fprintf( stderr, "%s\n", msg ); + exit( YY_EXIT_FAILURE ); +} + +/* Redefine yyless() so it works in section 3 code. */ + +#undef yyless +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + yytext[yyleng] = yyg->yy_hold_char; \ + yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ + yyg->yy_hold_char = *yyg->yy_c_buf_p; \ + *yyg->yy_c_buf_p = '\0'; \ + yyleng = yyless_macro_arg; \ + } \ + while ( 0 ) + +/* Accessor methods (get/set functions) to struct members. */ + +/** Get the user-defined data for this scanner. + * @param yyscanner The scanner object. + */ +YY_EXTRA_TYPE vrml_v1_yyget_extra (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + return yyextra; +} + +/** Get the current line number. + * @param yyscanner The scanner object. + */ +int vrml_v1_yyget_lineno (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + if (! YY_CURRENT_BUFFER) + return 0; + + return yylineno; +} + +/** Get the current column number. + * @param yyscanner The scanner object. + */ +int vrml_v1_yyget_column (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + if (! YY_CURRENT_BUFFER) + return 0; + + return yycolumn; +} + +/** Get the input stream. + * @param yyscanner The scanner object. + */ +FILE *vrml_v1_yyget_in (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + return yyin; +} + +/** Get the output stream. + * @param yyscanner The scanner object. + */ +FILE *vrml_v1_yyget_out (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + return yyout; +} + +/** Get the length of the current token. + * @param yyscanner The scanner object. + */ +int vrml_v1_yyget_leng (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + return yyleng; +} + +/** Get the current token. + * @param yyscanner The scanner object. + */ + +char *vrml_v1_yyget_text (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + return yytext; +} + +/** Set the user-defined data. This data is never touched by the scanner. + * @param user_defined The data to be associated with this scanner. + * @param yyscanner The scanner object. + */ +void vrml_v1_yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + yyextra = user_defined ; +} + +/** Set the current line number. + * @param line_number + * @param yyscanner The scanner object. + */ +void vrml_v1_yyset_lineno (int line_number , yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + /* lineno is only valid if an input buffer exists. */ + if (! YY_CURRENT_BUFFER ) + yy_fatal_error( "vrml_v1_yyset_lineno called with no buffer" , yyscanner); + + yylineno = line_number; +} + +/** Set the current column. + * @param line_number + * @param yyscanner The scanner object. + */ +void vrml_v1_yyset_column (int column_no , yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + /* column is only valid if an input buffer exists. */ + if (! YY_CURRENT_BUFFER ) + yy_fatal_error( "vrml_v1_yyset_column called with no buffer" , yyscanner); + + yycolumn = column_no; +} + +/** Set the input stream. This does not discard the current + * input buffer. + * @param in_str A readable stream. + * @param yyscanner The scanner object. + * @see vrml_v1_yy_switch_to_buffer + */ +void vrml_v1_yyset_in (FILE * in_str , yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + yyin = in_str ; +} + +void vrml_v1_yyset_out (FILE * out_str , yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + yyout = out_str ; +} + +int vrml_v1_yyget_debug (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + return yy_flex_debug; +} + +void vrml_v1_yyset_debug (int bdebug , yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + yy_flex_debug = bdebug ; +} + +/* Accessor methods for yylval and yylloc */ + +/* User-visible API */ + +/* vrml_v1_yylex_init is special because it creates the scanner itself, so it is + * the ONLY reentrant function that doesn't take the scanner as the last argument. + * That's why we explicitly handle the declaration, instead of using our macros. + */ + +int vrml_v1_yylex_init(yyscan_t* ptr_yy_globals) + +{ + if (ptr_yy_globals == NULL){ + errno = EINVAL; + return 1; + } + + *ptr_yy_globals = (yyscan_t) vrml_v1_yyalloc ( sizeof( struct yyguts_t ), NULL ); + + if (*ptr_yy_globals == NULL){ + errno = ENOMEM; + return 1; + } + + /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ + memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); + + return yy_init_globals ( *ptr_yy_globals ); +} + +/* vrml_v1_yylex_init_extra has the same functionality as vrml_v1_yylex_init, but follows the + * convention of taking the scanner as the last argument. Note however, that + * this is a *pointer* to a scanner, as it will be allocated by this call (and + * is the reason, too, why this function also must handle its own declaration). + * The user defined value in the first argument will be available to vrml_v1_yyalloc in + * the yyextra field. + */ + +int vrml_v1_yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals ) + +{ + struct yyguts_t dummy_yyguts; + + vrml_v1_yyset_extra (yy_user_defined, &dummy_yyguts); + + if (ptr_yy_globals == NULL){ + errno = EINVAL; + return 1; + } + + *ptr_yy_globals = (yyscan_t) vrml_v1_yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); + + if (*ptr_yy_globals == NULL){ + errno = ENOMEM; + return 1; + } + + /* By setting to 0xAA, we expose bugs in + yy_init_globals. Leave at 0x00 for releases. */ + memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); + + vrml_v1_yyset_extra (yy_user_defined, *ptr_yy_globals); + + return yy_init_globals ( *ptr_yy_globals ); +} + +static int yy_init_globals (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + /* Initialization is the same as for the non-reentrant scanner. + * This function is called from vrml_v1_yylex_destroy(), so don't allocate here. + */ + + yyg->yy_buffer_stack = 0; + yyg->yy_buffer_stack_top = 0; + yyg->yy_buffer_stack_max = 0; + yyg->yy_c_buf_p = (char *) 0; + yyg->yy_init = 0; + yyg->yy_start = 0; + + yyg->yy_start_stack_ptr = 0; + yyg->yy_start_stack_depth = 0; + yyg->yy_start_stack = NULL; + + yyg->yy_state_buf = 0; + yyg->yy_state_ptr = 0; + yyg->yy_full_match = 0; + yyg->yy_lp = 0; + +/* Defined in main.c */ +#ifdef YY_STDINIT + yyin = stdin; + yyout = stdout; +#else + yyin = (FILE *) 0; + yyout = (FILE *) 0; +#endif + + /* For future reference: Set errno on error, since we are called by + * vrml_v1_yylex_init() + */ + return 0; +} + +/* vrml_v1_yylex_destroy is for both reentrant and non-reentrant scanners. */ +int vrml_v1_yylex_destroy (yyscan_t yyscanner) +{ + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + + /* Pop the buffer stack, destroying each element. */ + while(YY_CURRENT_BUFFER){ + vrml_v1_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); + YY_CURRENT_BUFFER_LVALUE = NULL; + vrml_v1_yypop_buffer_state(yyscanner); + } + + /* Destroy the stack itself. */ + vrml_v1_yyfree(yyg->yy_buffer_stack ,yyscanner); + yyg->yy_buffer_stack = NULL; + + /* Destroy the start condition stack. */ + vrml_v1_yyfree(yyg->yy_start_stack ,yyscanner ); + yyg->yy_start_stack = NULL; + + vrml_v1_yyfree ( yyg->yy_state_buf , yyscanner); + yyg->yy_state_buf = NULL; + + /* Reset the globals. This is important in a non-reentrant scanner so the next time + * vrml_v1_yylex() is called, initialization will occur. */ + yy_init_globals( yyscanner); + + /* Destroy the main struct (reentrant only). */ + vrml_v1_yyfree ( yyscanner , yyscanner ); + yyscanner = NULL; + return 0; +} + +/* + * Internal utility routines. + */ + +#ifndef yytext_ptr +static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) +{ + register int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; +} +#endif + +#ifdef YY_NEED_STRLEN +static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner) +{ + register int n; + for ( n = 0; s[n]; ++n ) + ; + + return n; +} +#endif + +void *vrml_v1_yyalloc (yy_size_t size , yyscan_t yyscanner) +{ + return (void *) malloc( size ); +} + +void *vrml_v1_yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner) +{ + /* The cast to (char *) in the following accommodates both + * implementations that use char* generic pointers, and those + * that use void* generic pointers. It works with the latter + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return (void *) realloc( (char *) ptr, size ); +} + +void vrml_v1_yyfree (void * ptr , yyscan_t yyscanner) +{ + free( (char *) ptr ); /* see vrml_v1_yyrealloc() for (char *) cast */ +} + +#define YYTABLES_NAME "yytables" + +#line 443 "imp_vrml_v1.l" + + + + 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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef vrml_v1_yyHEADER_H +#define vrml_v1_yyHEADER_H 1 +#define vrml_v1_yyIN_HEADER 1 + +#line 6 "imp_vrml_v1.h" + +#line 8 "imp_vrml_v1.h" + +#define YY_INT_ALIGNED short int + +/* A lexical scanner generated by flex */ + +#define FLEX_SCANNER +#define YY_FLEX_MAJOR_VERSION 2 +#define YY_FLEX_MINOR_VERSION 5 +#define YY_FLEX_SUBMINOR_VERSION 35 +#if YY_FLEX_SUBMINOR_VERSION > 0 +#define FLEX_BETA +#endif + +/* First, we deal with platform-specific or compiler-specific issues. */ + +/* begin standard C headers. */ +#include +#include +#include +#include + +/* end standard C headers. */ + +/* flex integer type definitions */ + +#ifndef FLEXINT_H +#define FLEXINT_H + +/* C99 systems have . Non-C99 systems may or may not. */ + +#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + +/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, + * if you want the limit (max/min) macros for int types. + */ +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS 1 +#endif + +#include +typedef int8_t flex_int8_t; +typedef uint8_t flex_uint8_t; +typedef int16_t flex_int16_t; +typedef uint16_t flex_uint16_t; +typedef int32_t flex_int32_t; +typedef uint32_t flex_uint32_t; +#else +typedef signed char flex_int8_t; +typedef short int flex_int16_t; +typedef int flex_int32_t; +typedef unsigned char flex_uint8_t; +typedef unsigned short int flex_uint16_t; +typedef unsigned int flex_uint32_t; + +/* Limits of integral types. */ +#ifndef INT8_MIN +#define INT8_MIN (-128) +#endif +#ifndef INT16_MIN +#define INT16_MIN (-32767-1) +#endif +#ifndef INT32_MIN +#define INT32_MIN (-2147483647-1) +#endif +#ifndef INT8_MAX +#define INT8_MAX (127) +#endif +#ifndef INT16_MAX +#define INT16_MAX (32767) +#endif +#ifndef INT32_MAX +#define INT32_MAX (2147483647) +#endif +#ifndef UINT8_MAX +#define UINT8_MAX (255U) +#endif +#ifndef UINT16_MAX +#define UINT16_MAX (65535U) +#endif +#ifndef UINT32_MAX +#define UINT32_MAX (4294967295U) +#endif + +#endif /* ! C99 */ + +#endif /* ! FLEXINT_H */ + +#ifdef __cplusplus + +/* The "const" storage-class-modifier is valid. */ +#define YY_USE_CONST + +#else /* ! __cplusplus */ + +/* C99 requires __STDC__ to be defined as 1. */ +#if defined (__STDC__) + +#define YY_USE_CONST + +#endif /* defined (__STDC__) */ +#endif /* ! __cplusplus */ + +#ifdef YY_USE_CONST +#define yyconst const +#else +#define yyconst +#endif + +/* An opaque pointer. */ +#ifndef YY_TYPEDEF_YY_SCANNER_T +#define YY_TYPEDEF_YY_SCANNER_T +typedef void* yyscan_t; +#endif + +/* For convenience, these vars (plus the bison vars far below) + are macros in the reentrant scanner. */ +#define yyin yyg->yyin_r +#define yyout yyg->yyout_r +#define yyextra yyg->yyextra_r +#define yyleng yyg->yyleng_r +#define yytext yyg->yytext_r +#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) +#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) +#define yy_flex_debug yyg->yy_flex_debug_r + +/* Size of default input buffer. */ +#ifndef YY_BUF_SIZE +#define YY_BUF_SIZE 16384 +#endif + +#ifndef YY_TYPEDEF_YY_BUFFER_STATE +#define YY_TYPEDEF_YY_BUFFER_STATE +typedef struct yy_buffer_state *YY_BUFFER_STATE; +#endif + +#ifndef YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef size_t yy_size_t; +#endif + +#ifndef YY_STRUCT_YY_BUFFER_STATE +#define YY_STRUCT_YY_BUFFER_STATE +struct yy_buffer_state + { + FILE *yy_input_file; + + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + yy_size_t yy_buf_size; + + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; + + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; + + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; + + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; + + int yy_bs_lineno; /**< The line count. */ + int yy_bs_column; /**< The column count. */ + + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; + + int yy_buffer_status; + + }; +#endif /* !YY_STRUCT_YY_BUFFER_STATE */ + +void vrml_v1_yyrestart (FILE *input_file ,yyscan_t yyscanner ); +void vrml_v1_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); +YY_BUFFER_STATE vrml_v1_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner ); +void vrml_v1_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); +void vrml_v1_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); +void vrml_v1_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); +void vrml_v1_yypop_buffer_state (yyscan_t yyscanner ); + +YY_BUFFER_STATE vrml_v1_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); +YY_BUFFER_STATE vrml_v1_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); +YY_BUFFER_STATE vrml_v1_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); + +void *vrml_v1_yyalloc (yy_size_t ,yyscan_t yyscanner ); +void *vrml_v1_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner ); +void vrml_v1_yyfree (void * ,yyscan_t yyscanner ); + +/* Begin user sect3 */ + +#define yytext_ptr yytext_r + +#ifdef YY_HEADER_EXPORT_START_CONDITIONS +#define INITIAL 0 +#define VRMLHEADER 1 +#define COMMENT 2 + +#endif + +#ifndef YY_NO_UNISTD_H +/* Special case for "unistd.h", since it is non-ANSI. We include it way + * down here because we want the user's section 1 to have been scanned first. + * The user has a chance to override it with an option. + */ +#include +#endif + +#ifndef YY_EXTRA_TYPE +#define YY_EXTRA_TYPE void * +#endif + +int vrml_v1_yylex_init (yyscan_t* scanner); + +int vrml_v1_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); + +/* Accessor methods to globals. + These are made visible to non-reentrant scanners for convenience. */ + +int vrml_v1_yylex_destroy (yyscan_t yyscanner ); + +int vrml_v1_yyget_debug (yyscan_t yyscanner ); + +void vrml_v1_yyset_debug (int debug_flag ,yyscan_t yyscanner ); + +YY_EXTRA_TYPE vrml_v1_yyget_extra (yyscan_t yyscanner ); + +void vrml_v1_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); + +FILE *vrml_v1_yyget_in (yyscan_t yyscanner ); + +void vrml_v1_yyset_in (FILE * in_str ,yyscan_t yyscanner ); + +FILE *vrml_v1_yyget_out (yyscan_t yyscanner ); + +void vrml_v1_yyset_out (FILE * out_str ,yyscan_t yyscanner ); + +int vrml_v1_yyget_leng (yyscan_t yyscanner ); + +char *vrml_v1_yyget_text (yyscan_t yyscanner ); + +int vrml_v1_yyget_lineno (yyscan_t yyscanner ); + +void vrml_v1_yyset_lineno (int line_number ,yyscan_t yyscanner ); + +/* Macros after this point can all be overridden by user definitions in + * section 1. + */ + +#ifndef YY_SKIP_YYWRAP +#ifdef __cplusplus +extern "C" int vrml_v1_yywrap (yyscan_t yyscanner ); +#else +extern int vrml_v1_yywrap (yyscan_t yyscanner ); +#endif +#endif + +#ifndef yytext_ptr +static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); +#endif + +#ifdef YY_NEED_STRLEN +static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); +#endif + +#ifndef YY_NO_INPUT + +#endif + +/* Amount of stuff to slurp up with each read. */ +#ifndef YY_READ_BUF_SIZE +#define YY_READ_BUF_SIZE 8192 +#endif + +/* Number of entries by which start-condition stack grows. */ +#ifndef YY_START_STACK_INCR +#define YY_START_STACK_INCR 25 +#endif + +/* Default declaration of generated scanner - a define so the user can + * easily add parameters. + */ +#ifndef YY_DECL +#define YY_DECL_IS_OURS 1 + +extern int vrml_v1_yylex (yyscan_t yyscanner); + +#define YY_DECL int vrml_v1_yylex (yyscan_t yyscanner) +#endif /* !YY_DECL */ + +/* yy_get_previous_state - get the state just before the EOB char was reached */ + +#undef YY_NEW_FILE +#undef YY_FLUSH_BUFFER +#undef yy_set_bol +#undef yy_new_buffer +#undef yy_set_interactive +#undef YY_DO_BEFORE_ACTION + +#ifdef YY_DECL_IS_OURS +#undef YY_DECL_IS_OURS +#undef YY_DECL +#endif + +#line 446 "imp_vrml_v1.l" + + +#line 334 "imp_vrml_v1.h" +#undef vrml_v1_yyIN_HEADER +#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 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# plugins/import/imp_vrml2/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + +pkgdatadir = $(datadir)/libg3d +pkglibdir = $(libdir)/libg3d +pkgincludedir = $(includedir)/libg3d +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = plugins/import/imp_vrml2 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_vrml2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_vrml2_la_OBJECTS = imp_vrml2.lo imp_vrml_read.lo \ + imp_vrml2_types.lo +imp_vrml2_la_OBJECTS = $(am_imp_vrml2_la_OBJECTS) +#am_imp_vrml2_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_vrml2_la_SOURCES) +DIST_SOURCES = $(imp_vrml2_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar +AR = ar +AS = as +AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf +AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader +AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DBG_CFLAGS = -O2 +DEBUG = 0 +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = dlltool +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +F77 = +FFLAGS = +GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_GENMARSHAL = glib-genmarshal +GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +GLIB_MKENUMS = glib-mkenums +GOBJECT_QUERY = gobject-query +GREP = /bin/grep +GTKDOC_CHECK = /usr/bin/gtkdoc-check +GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 +HTML_DIR = ${datadir}/gtk-doc/html +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LDFLAGS = +LEX = flex +LEXLIB = -lfl +LEX_OUTPUT_ROOT = lex.yy +LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 +LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 +LIBOBJS = +LIBS = -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +LN_S = ln -s +LTLIBOBJS = +LTVERSION = 0:8:0 +MAGIC_LIBS = -lmagic +MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo +MATH_LIBS = -lm +MKDIR_P = /bin/mkdir -p +OBJDUMP = objdump +OBJEXT = o +PACKAGE = libg3d +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PLUGINS_LDFLAGS = -avoid-version -export-dynamic +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.0.8 +XML2_CONFIG = /usr/bin/xml2-config +XML_CPPFLAGS = -I/usr/include/libxml2 +XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 +Z_CFLAGS = +Z_LIBS = -lz +abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2 +abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2 +abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_builddir = ../../.. +top_srcdir = ../../.. +pluginimpdir = $(pkglibdir)/plugins/import +#pluginimp_LTLIBRARIES = imp_vrml2.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + -O2 -DDEBUG=0 \ + -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + -avoid-version -export-dynamic + +imp_vrml2_la_SOURCES = imp_vrml2.c imp_vrml2.h \ + imp_vrml_read.c imp_vrml_read.h \ + imp_vrml_types.h \ + imp_vrml2_types.c imp_vrml2_types.h \ + imp_vrml2_nodes.h + +imp_vrml2_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_vrml2.la: $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_DEPENDENCIES) + $(LINK) $(am_imp_vrml2_la_rpath) $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/imp_vrml2.Plo +include ./$(DEPDIR)/imp_vrml2_types.Plo +include ./$(DEPDIR)/imp_vrml_read.Plo + +.c.o: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c $< + +.c.obj: + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +# source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: + $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< + mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +# source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +pluginimpdir = $(pkglibdir)/plugins/import + +if EXPERIMENTAL +pluginimp_LTLIBRARIES = imp_vrml2.la +endif + +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include + +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +LIBTOOL += --quiet + +imp_vrml2_la_SOURCES = imp_vrml2.c imp_vrml2.h \ + imp_vrml_read.c imp_vrml_read.h \ + imp_vrml_types.h \ + imp_vrml2_types.c imp_vrml2_types.h \ + imp_vrml2_nodes.h +imp_vrml2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in new file mode 100644 index 0000000..5c08daa --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in @@ -0,0 +1,518 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins/import/imp_vrml2 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ + $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/g3d/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pluginimpdir)" +pluginimpLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pluginimp_LTLIBRARIES) +imp_vrml2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la +am_imp_vrml2_la_OBJECTS = imp_vrml2.lo imp_vrml_read.lo \ + imp_vrml2_types.lo +imp_vrml2_la_OBJECTS = $(am_imp_vrml2_la_OBJECTS) +@EXPERIMENTAL_TRUE@am_imp_vrml2_la_rpath = -rpath $(pluginimpdir) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imp_vrml2_la_SOURCES) +DIST_SOURCES = $(imp_vrml2_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBG_CFLAGS = @DBG_CFLAGS@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ +GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ +LIBGSF_LIBS = @LIBGSF_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ --quiet +LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +LIBXML2_LIBS = @LIBXML2_LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTVERSION = @LTVERSION@ +MAGIC_LIBS = @MAGIC_LIBS@ +MAKEINFO = @MAKEINFO@ +MATH_LIBS = @MATH_LIBS@ +MKDIR_P = @MKDIR_P@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XML2_CONFIG = @XML2_CONFIG@ +XML_CPPFLAGS = @XML_CPPFLAGS@ +XML_LIBS = @XML_LIBS@ +Z_CFLAGS = @Z_CFLAGS@ +Z_LIBS = @Z_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +pluginimpdir = $(pkglibdir)/plugins/import +@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_vrml2.la +AM_CFLAGS = \ + -Wall -ansi -pedantic \ + -DG_LOG_DOMAIN=\"LibG3D\" \ + @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ + @GLIB_CFLAGS@ + +INCLUDES = -I$(top_srcdir)/include +AM_LDFLAGS = \ + -no-undefined -module \ + @PLUGINS_LDFLAGS@ + +imp_vrml2_la_SOURCES = imp_vrml2.c imp_vrml2.h \ + imp_vrml_read.c imp_vrml_read.h \ + imp_vrml_types.h \ + imp_vrml2_types.c imp_vrml2_types.h \ + imp_vrml2_nodes.h + +imp_vrml2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pluginimpLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ + done + +clean-pluginimpLTLIBRARIES: + -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) + @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imp_vrml2.la: $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_DEPENDENCIES) + $(LINK) $(am_imp_vrml2_la_rpath) $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml2.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml2_types.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml_read.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pluginimpdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-pluginimpLTLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pluginimpLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +/* + * an experiment to parse VRML without flex, version 2 is tried as a starter, + * v1 and Inventor stuff will be added if successful. + */ + +#include +#include +#include + +#include +#include + +#include "imp_vrml2.h" +#include "imp_vrml_read.h" + +EAPI +gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, + G3DModel *model, gpointer user_data) +{ + gchar buf[128]; + gboolean retval; + VrmlReader *reader; + + setlocale(LC_NUMERIC, "C"); + + buf[127] = '\0'; + g3d_stream_read_line(stream, buf, 127); + if(strncmp(buf, "#VRML V2.0 utf8", 15) != 0) { + g_warning("%s is not a valid VRML 2.0 UTF-8 stream", stream->uri); + return FALSE; + } + + reader = g_new0(VrmlReader, 1); + reader->max_bufsize = 2048; + reader->buffer = g_new0(gchar, reader->max_bufsize); + reader->bufp = reader->buffer; + reader->line = 2; + reader->stream = stream; + reader->model = model; + + retval = vrml_read_global(reader); + + g_free(reader); + + return retval; +} + +EAPI +gchar *plugin_description(void) +{ + return g_strdup("VRML v2 models."); +} + +EAPI +gchar **plugin_extensions(void) +{ + return g_strsplit("wrl", ":", 0); +} + +/*****************************************************************************/ 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_VRML2_H +#define _IMP_VRML2_H + +#include + +#include +#include + +typedef struct { + G3DStream *stream; + gchar *buffer; + gchar *bufp; + gsize bufsize; + gsize max_bufsize; + guint32 line; + + G3DModel *model; + G3DObject *object; +} VrmlReader; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_VRML2_NODES_H +#define _IMP_VRML2_NODES_H + +#include "imp_vrml_types.h" + +static VrmlNodeDef vrml2_nodes[] = { + { "Appearence", NULL }, + { "Background", NULL }, + { "Color", NULL }, + { "Coordinate", NULL }, + { "IndexedFaceSet", NULL }, + { "Material", NULL }, + { "Normal", NULL }, + { "Shape", NULL }, + { "Transform", NULL }, + { "Viewpoint", NULL }, + + { NULL, NULL } +}; + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include + +#include "imp_vrml_types.h" +#include "imp_vrml_read.h" + +VrmlType vrml2_type_cb__float3(VrmlReader *reader) +{ + if(!vrml_read_skip_ws(reader)) + return T_UNKNOWN; + if(*(reader->bufp) == '[') + return T_LIST_FLOAT3; + return T_FLOAT3; +} + +VrmlType vrml2_type_cb__int(VrmlReader *reader) +{ + if(!vrml_read_skip_ws(reader)) + return T_UNKNOWN; + if(*(reader->bufp) == '[') + return T_LIST_INT; + return T_INT; +} + +VrmlType vrml2_type_cb_field(VrmlReader *reader) +{ + gchar *id; + VrmlType t = T_UNKNOWN; + + id = vrml_read_id(reader); + if(!id) { + g_warning("VRML: vrml2_type_cb_field: failed to read id"); + return T_UNKNOWN; + } + if(strcmp(id, "SFFloat") == 0) + t = T_TOKEN2; /* data 0 */ + + g_free(id); + return t; +} + +VrmlType vrml2_type_cb_children(VrmlReader *reader) +{ + if(!vrml_read_skip_ws(reader)) + return T_UNKNOWN; + if(*(reader->bufp) == '[') + return T_LIST_OBJECT; + return T_OBJECT; +} + +VrmlType vrml2_type_cb_color(VrmlReader *reader) +{ + if(!vrml_read_skip_ws(reader)) + return T_UNKNOWN; + if(*(reader->bufp) == '[') + return T_LIST_FLOAT3; + return T_OBJECT; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_VRML2_TYPES_H +#define _IMP_VRML2_TYPES_H + +#include "imp_vrml2.h" +#include "imp_vrml_types.h" + +/* list or not list */ +VrmlType vrml2_type_cb__float3(VrmlReader *reader); +VrmlType vrml2_type_cb__int(VrmlReader *reader); + +VrmlType vrml2_type_cb_field(VrmlReader *reader); +VrmlType vrml2_type_cb_children(VrmlReader *reader); +VrmlType vrml2_type_cb_color(VrmlReader *reader); + +static VrmlTypeDef vrml2_types[] = { + { "ambientIntensity", T_FLOAT, NULL }, + { "appearance", T_OBJECT, NULL }, + { "autoOffset", T_BOOLEAN, NULL }, + { "ccw", T_BOOLEAN, NULL }, + { "center", T_FLOAT_X, NULL }, + { "children", T_UNKNOWN, vrml2_type_cb_children }, + { "color", T_UNKNOWN, vrml2_type_cb_color }, + { "colorIndex", T_LIST_INT, vrml2_type_cb__int }, + { "colorPerVertex", T_BOOLEAN, NULL }, + { "convex", T_BOOLEAN, NULL }, + { "coord", T_OBJECT, NULL }, + { "coordIndex", T_LIST_INT, NULL }, + { "creaseAngle", T_FLOAT, NULL }, + { "cycleInterval", T_INT, NULL }, + { "description", T_STRING, NULL }, + { "diffuseColor", T_FLOAT3, NULL }, + { "emissiveColor", T_FLOAT3, NULL }, + { "eventIn", T_TOKEN2, NULL }, + { "eventOut", T_TOKEN2, NULL }, + { "field", T_UNKNOWN, vrml2_type_cb_field }, + { "fieldOfView", T_FLOAT, NULL }, + { "geometry", T_OBJECT, NULL }, + { "groundAngle", T_LIST_FLOAT2, NULL }, + { "groundColor", T_LIST_FLOAT3, NULL }, + { "height", T_FLOAT, NULL }, + { "info", T_LIST_STRING, NULL }, + { "key", T_LIST_FLOAT, NULL }, + { "keyValue", T_LIST_FLOAT4, NULL }, + { "material", T_OBJECT, NULL }, + { "maxPosition", T_FLOAT_X, NULL }, + { "minPosition", T_FLOAT_X, NULL }, + { "normal", T_OBJECT, NULL }, + { "normalIndex", T_LIST_INT, NULL }, + { "normalPerVertex", T_BOOLEAN, NULL }, + { "offset", T_FLOAT_X, NULL }, + { "orientation", T_FLOAT4, NULL }, + { "parameter", T_STRING, NULL }, + { "point", T_LIST_FLOAT_X, NULL }, + { "position", T_FLOAT3, NULL }, + { "radius", T_FLOAT, NULL }, + { "repeatS", T_BOOLEAN, NULL }, + { "repeatT", T_BOOLEAN, NULL }, + { "rotation", T_FLOAT_X, NULL }, + { "scale", T_FLOAT_X, NULL }, + { "scaleOrientation", T_FLOAT_X, NULL }, + { "shininess", T_FLOAT, NULL }, + { "size", T_FLOAT3, NULL }, + { "skyAngle", T_LIST_FLOAT2, NULL }, + { "skyColor", T_LIST_FLOAT3, vrml2_type_cb__float3 }, + { "solid", T_BOOLEAN, NULL }, + { "specularColor", T_FLOAT3, NULL }, + { "startTime", T_INT, NULL }, + { "stopTime", T_INT, NULL }, + { "texCoord", T_OBJECT, NULL }, + { "texCoordIndex", T_LIST_INT, NULL }, + { "texture", T_OBJECT, NULL }, + { "textureTransform", T_OBJECT, NULL }, + { "translation", T_FLOAT3, NULL }, + { "transparency", T_FLOAT, NULL }, + { "type", T_STRING, NULL }, + { "url", T_STRING, NULL }, + { "vector", T_LIST_FLOAT3, NULL }, + + { NULL, T_UNKNOWN } +}; + +#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 @@ +/* $Id$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include +#include + +#include "imp_vrml_types.h" +#include "imp_vrml_read.h" + +#include "imp_vrml2_nodes.h" +#include "imp_vrml2_types.h" + +gboolean vrml_read_check_buffer(VrmlReader *reader) +{ + if(reader->bufsize > 0) + return TRUE; + if(g3d_stream_eof(reader->stream)) + return FALSE; + memset(reader->buffer, '\0', reader->max_bufsize); + g3d_stream_read_line(reader->stream, reader->buffer, + reader->max_bufsize - 1); + reader->line ++; + reader->bufsize = strlen(reader->buffer); + reader->bufp = reader->buffer; + return (reader->bufsize > 0); +} + +gboolean vrml_read_skip_ws(VrmlReader *reader) +{ + if(!vrml_read_check_buffer(reader)) + return FALSE; + while(g_ascii_isspace(*(reader->bufp))) { + vrml_read_dec(reader); + if(!vrml_read_check_buffer(reader)) + return FALSE; + } + return TRUE; +} + +gchar *vrml_read_token(VrmlReader *reader) +{ + gchar *s = NULL; + gsize len = 0; + + if(!vrml_read_skip_ws(reader)) + return NULL; + while(vrml_read_check_buffer(reader) && + !g_ascii_isspace(*(reader->bufp)) && + (*(reader->bufp) != ',')) { + len ++; + s = g_realloc(s, (len + 1) * sizeof(gchar)); + s[len - 1] = *(reader->bufp); + s[len - 0] = '\0'; + vrml_read_dec(reader); + } +#if DEBUG > 3 + g_debug("token: %s", s); +#endif + return s; +} + +gchar *vrml_read_numeric(VrmlReader *reader) +{ + gchar *s = NULL; + gsize len = 0; + gboolean first = TRUE; + + if(!vrml_read_skip_ws(reader)) + return NULL; + while(vrml_read_check_buffer(reader) && + (g_ascii_isdigit(*(reader->bufp)) || + strchr(".-e", *(reader->bufp)))) { + + if(first) { + if(*(reader->bufp) == 'e') + return NULL; + first = FALSE; + } + + len ++; + s = g_realloc(s, (len + 1) * sizeof(gchar)); + s[len - 1] = *(reader->bufp); + s[len - 0] = '\0'; + vrml_read_dec(reader); + } +#if DEBUG > 3 + g_debug("numeric: %s", s); +#endif + return s; +} + +gchar *vrml_read_id(VrmlReader *reader) +{ + gchar *buf; + gsize bufsize; + + if(!vrml_read_skip_ws(reader)) + return NULL; + if(!vrml_read_check_buffer(reader)) + return NULL; + bufsize = 2; + buf = g_new(gchar, 2 * sizeof(gchar)); + buf[0] = *(reader->bufp); + buf[1] = '\0'; + if(!(g_ascii_isalpha(buf[0]) || strchr("_", buf[0]))) { + g_free(buf); + return NULL; + } + vrml_read_dec(reader); + if(!vrml_read_check_buffer(reader)) + return buf; + while(g_ascii_isalnum(*(reader->bufp)) || strchr("_.", *(reader->bufp))) { + bufsize ++; + buf = g_realloc(buf, bufsize * sizeof(gchar)); + buf[bufsize - 2] = *(reader->bufp); + buf[bufsize - 1] = '\0'; + vrml_read_dec(reader); + if(!vrml_read_check_buffer(reader)) + return buf; + } + return buf; +} + +gchar *vrml_read_string(VrmlReader *reader) +{ + gchar *buf = NULL; + gsize bufsize = 0; + + if(!vrml_read_check_buffer(reader)) + return NULL; + while(*(reader->bufp) != '"') { + bufsize ++; + buf = g_realloc(buf, (bufsize + 1) * sizeof(gchar)); + buf[bufsize - 1] = *(reader->bufp); + buf[bufsize] = '\0'; + vrml_read_dec(reader); + if(!vrml_read_check_buffer(reader)) + return buf; + } + vrml_read_dec(reader); + return buf; +} + +gboolean vrml_read_skip_unknown(VrmlReader *reader) +{ + gchar c, *s; +#if DEBUG > 0 + g_debug("vrml: skipping unknown stuff in line %d", reader->line); +#endif + + while(vrml_read_check_buffer(reader)) { + c = *(reader->bufp); + vrml_read_dec(reader); + switch(c) { + case '"': + s = vrml_read_string(reader); + if(s) { + g_debug("found string '%s'", s); + g_free(s); + } + break; + case '{': + case '[': + vrml_read_skip_unknown(reader); + break; + case '}': + case ']': + return TRUE; + break; + default: + break; + } + } + return FALSE; +} + +gchar *vrml_read_nodeid(VrmlReader *reader) +{ + gchar *id; + id = vrml_read_id(reader); + if(id == NULL) + return NULL; + if(!g_ascii_isupper(id[0])) { + g_free(id); + return NULL; + } + return id; +} + +gboolean vrml_read_expect(VrmlReader *reader, const gchar c) +{ + gchar b; + if(!vrml_read_skip_ws(reader)) + return FALSE; + if(!vrml_read_check_buffer(reader)) + return FALSE; + b = *(reader->bufp); + vrml_read_dec(reader); + return (b == c); +} + +gboolean vrml_read_list(VrmlReader *reader, vrml_read_list_item_callback cb, + gpointer user_data) +{ + if(!vrml_read_expect(reader, '[')) + return FALSE; + + while(vrml_read_skip_ws(reader)) { + if(*(reader->bufp) == ']') { + vrml_read_dec(reader); + return TRUE; + } + if(!cb(reader, user_data)) + return FALSE; + + if(!vrml_read_skip_ws(reader)) + return FALSE; + if(*(reader->bufp) == ',') + vrml_read_dec(reader); + } + /* should not be reached */ + return vrml_read_expect(reader, ']'); +} + +/*****************************************************************************/ + +static VrmlObject *vrml_lookup_object(VrmlReader *reader, const gchar *id) +{ + VrmlObject *object; + + object = g_new0(VrmlObject, 1); + object->defid = g_strdup(id); + object->name = g_strdup("object from library"); + + return object; +} + +static gboolean vrml_read_float_n(VrmlReader *reader, G3DFloat *a, guint32 n) +{ + gint i; + gchar *s; + + for(i = 0; i < n; i ++) { + s = vrml_read_numeric(reader); + if(s) { + a[i] = atof(s); + g_free(s); + } else + return FALSE; + } + return TRUE; +} + +static gboolean vrml_read_token_n(VrmlReader *reader, VrmlProperty *property, + guint32 n) +{ + gchar *token; + gint32 i; + + for(i = 0; i < n; i ++) { + token = vrml_read_token(reader); +#if DEBUG > 2 + g_debug("Token: %s", token); +#endif + g_free(token); + } + + return TRUE; +} + +/* property list callbacks */ + +gboolean vrml_read_list_object_cb(VrmlReader *reader, gpointer data) +{ + VrmlProperty *property = data; + + property->n_items ++; + property->v_object = g_realloc(property->v_object, + property->n_items * sizeof(VrmlObject *)); + property->v_object[property->n_items - 1] = + vrml_read_object(reader, property->level + 1); + return (property->v_object[property->n_items - 1] != NULL); +} + +gboolean vrml_read_list_string_cb(VrmlReader *reader, gpointer data) +{ + VrmlProperty *property = data; + + if(!vrml_read_expect(reader, '"')) + return FALSE; + + property->n_items ++; + property->v_str = g_realloc(property->v_str, + property->n_items * sizeof(gchar *)); + property->v_str[property->n_items - 1] = + vrml_read_string(reader); + return TRUE; +} + +gboolean vrml_read_list_int_cb(VrmlReader *reader, gpointer data) +{ + VrmlProperty *property = data; + gchar *s; + + s = vrml_read_numeric(reader); + if(s) { + property->n_items ++; + property->v_int = g_realloc(property->v_int, + property->n_items * sizeof(gint32)); + property->v_int[property->n_items - 1] = atoi(s); + g_free(s); + return TRUE; + } + return FALSE; +} + +gboolean vrml_read_list_float_cb(VrmlReader *reader, gpointer data) +{ + VrmlProperty *property = data; + + property->n_items ++; + property->v_float = g_realloc(property->v_float, + property->n_items * sizeof(G3DFloat)); + return vrml_read_float_n(reader, + property->v_float + (property->n_items - 1), 1); +} + +gboolean vrml_read_list_float2_cb(VrmlReader *reader, gpointer data) +{ + VrmlProperty *property = data; + + property->n_items += 2; + property->v_float = g_realloc(property->v_float, + property->n_items * sizeof(G3DFloat)); + return vrml_read_float_n(reader, + property->v_float + (property->n_items - 2), 2); +} + +gboolean vrml_read_list_float3_cb(VrmlReader *reader, gpointer data) +{ + VrmlProperty *property = data; + + property->n_items += 3; + property->v_float = g_realloc(property->v_float, + property->n_items * sizeof(G3DFloat)); + return vrml_read_float_n(reader, + property->v_float + (property->n_items - 3), 3); +} + +gboolean vrml_read_list_float4_cb(VrmlReader *reader, gpointer data) +{ + VrmlProperty *property = data; + + property->n_items += 4; + property->v_float = g_realloc(property->v_float, + property->n_items * sizeof(G3DFloat)); + return vrml_read_float_n(reader, + property->v_float + (property->n_items - 4), 4); +} + +gboolean vrml_read_list_floatx_cb(VrmlReader *reader, gpointer data) +{ + VrmlProperty *property = data; + gchar *s; + + s = vrml_read_numeric(reader); + while(s) { + property->n_items ++; + property->v_float = g_realloc(property->v_float, + property->n_items * sizeof(G3DFloat)); + property->v_float[property->n_items - 1] = atof(s); + g_free(s); + s = vrml_read_numeric(reader); + } + return TRUE; +} + +/* property reader */ + +VrmlProperty *vrml_read_property(VrmlReader *reader, guint32 level) +{ + VrmlProperty *property; + VrmlTypeDef *type = NULL; + gint i; + gchar *id, *s; + + id = vrml_read_id(reader); + if(id == NULL) + return NULL; + + /* look up object */ + for(i = 0; vrml2_types[i].name != NULL; i ++) + if(strcmp(id, vrml2_types[i].name) == 0) { + type = &(vrml2_types[i]); + break; + } + if(type == NULL) { + g_warning("VRML: unknown type %s in line %d", id, reader->line); + return NULL; + } + property = g_new0(VrmlProperty, 1); + property->name = id; + if(type->detect != NULL) + property->id = type->detect(reader); + else + property->id = type->id; + property->level = level; + +#if DEBUG > 0 + g_debug("\\%sproperty '%s', type %d", + vrml_read_padding + strlen(vrml_read_padding) - 1 - level, + id, property->id); +#endif + + switch(property->id) { + case T_OBJECT: + property->n_items = 1; + property->v_object = g_new0(VrmlObject *, 1); + property->v_object[0] = vrml_read_object(reader, level + 1); + break; + case T_TOKEN2: + vrml_read_token_n(reader, property, 2); + break; + case T_TOKEN3: + vrml_read_token_n(reader, property, 3); + break; + case T_STRING: + property->n_items = 1; + if(!vrml_read_expect(reader, '"')) + return FALSE; + property->v_str = g_new0(gchar *, 1); + property->v_str[0] = vrml_read_string(reader); + break; + case T_BOOLEAN: + s = vrml_read_token(reader); + if(s) { + if(strcmp(s, "TRUE") == 0) + property->v_boolean = TRUE; + g_free(s); + } + break; + case T_INT: + s = vrml_read_numeric(reader); + if(s) { + property->n_items = 1; + property->v_int = g_new0(gint32, 1); + property->v_int[0] = atoi(s); + g_free(s); + } + break; + case T_FLOAT: + property->n_items = 1; + property->v_float = g_new0(G3DFloat, 1); + vrml_read_float_n(reader, property->v_float, 1); + break; + case T_FLOAT2: + property->n_items = 2; + property->v_float = g_new0(G3DFloat, 2); + vrml_read_float_n(reader, property->v_float, 2); + break; + case T_FLOAT3: + property->n_items = 3; + property->v_float = g_new0(G3DFloat, 3); + vrml_read_float_n(reader, property->v_float, 3); + break; + case T_FLOAT4: + property->n_items = 4; + property->v_float = g_new0(G3DFloat, 4); + vrml_read_float_n(reader, property->v_float, 4); + break; + case T_FLOAT_X: + s = vrml_read_numeric(reader); + while(s) { + property->n_items ++; + property->v_float = g_realloc(property->v_float, + property->n_items * sizeof(G3DFloat)); + property->v_float[property->n_items - 1] = atof(s); +#if DEBUG > 2 + g_debug("T_FLOAT_X: %i: %.2f", property->n_items, + property->v_float[property->n_items - 1]); +#endif + g_free(s); + s = vrml_read_numeric(reader); + } + break; + case T_LIST_OBJECT: + vrml_read_list(reader, vrml_read_list_object_cb, property); + break; + case T_LIST_STRING: + vrml_read_list(reader, vrml_read_list_string_cb, property); + break; + case T_LIST_INT: + vrml_read_list(reader, vrml_read_list_int_cb, property); + break; + case T_LIST_FLOAT: + vrml_read_list(reader, vrml_read_list_float_cb, property); + break; + case T_LIST_FLOAT2: + vrml_read_list(reader, vrml_read_list_float2_cb, property); + break; + case T_LIST_FLOAT3: + vrml_read_list(reader, vrml_read_list_float3_cb, property); + break; + case T_LIST_FLOAT4: + vrml_read_list(reader, vrml_read_list_float4_cb, property); + break; + case T_LIST_FLOAT_X: + vrml_read_list(reader, vrml_read_list_floatx_cb, property); + break; + + default: + g_free(property->name); + g_free(property); + return NULL; + break; + } + + return property; +} + +static VrmlObject *vrml_read_route_object(VrmlReader *reader, guint32 level) +{ + VrmlObject *object; + gchar *id; +#if DEBUG > 2 + g_debug("ROUTE object"); +#endif + id = vrml_read_id(reader); /* source */ + if(id == NULL) { + g_warning("ROUTE: could not get source"); + return NULL; + } + g_free(id); + id = vrml_read_id(reader); /* TO */ + if(id == NULL) { + g_warning("ROUTE: could not get TO"); + return NULL; + } + g_free(id); + id = vrml_read_id(reader); /* destination */ + if(id == NULL) { + g_warning("ROUTE: could not get destination"); + return NULL; + } + g_free(id); + object = g_new0(VrmlObject, 1); + object->name = g_strdup("ROUTE object"); + object->level = level; + return object; +} + +VrmlObject *vrml_read_object(VrmlReader *reader, guint32 level) +{ + VrmlObject *object; + VrmlProperty *property; + gchar *id, *defid = NULL; + gboolean define = FALSE; + + id = vrml_read_id(reader); + if(id == NULL) + return NULL; + if(strcmp(id, "NULL") == 0) { + return NULL; + } else if(strcmp(id, "DEF") == 0) { + define = TRUE; + defid = vrml_read_id(reader); + if(defid == NULL) + return NULL; + id = vrml_read_id(reader); + if(id == NULL) + return NULL; + } else if(strcmp(id, "USE") == 0) { + defid = vrml_read_id(reader); +#if DEBUG > 2 + g_debug("looking up '%s'", defid); +#endif + return vrml_lookup_object(reader, defid); + } else if(strcmp(id, "ROUTE") == 0) { + return vrml_read_route_object(reader, level); + } + + if(!vrml_read_expect(reader, '{')) { + g_warning("vrml_read_object: expected '{' in line %d", reader->line); + g_free(id); + if(defid) + g_free(defid); + return FALSE; + } +#if DEBUG > 0 + g_debug("\\%sobject '%s'", + vrml_read_padding + strlen(vrml_read_padding) - 1 - level, + id); +#endif + + object = g_new0(VrmlObject, 1); + object->name = id; + object->defid = defid; + object->define = define; + object->level = level; + + /* read properties */ + while(vrml_read_skip_ws(reader)) { +#if DEBUG > 2 + g_debug("O: '%c'", *(reader->bufp)); +#endif + if(*(reader->bufp) == '}') { + vrml_read_dec(reader); + return object; + } + property = vrml_read_property(reader, level + 1); + if(property != NULL) + object->properties = g_slist_append(object->properties, property); + else { + vrml_read_skip_unknown(reader); + return object; + } + } + vrml_read_expect(reader, '}'); + return object; +} + +gboolean vrml_read_global(VrmlReader *reader) +{ + while(vrml_read_skip_ws(reader)) { + if(!vrml_read_object(reader, 0)) + return FALSE; + } + return TRUE; +} 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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_VRML_READ_H +#define _IMP_VRML_READ_H + +#include "imp_vrml2.h" +#include "imp_vrml_types.h" + +typedef gboolean (* vrml_read_list_item_callback)(VrmlReader *reader, + gpointer user_data); + +gboolean vrml_read_global(VrmlReader *reader); +gboolean vrml_read_check_buffer(VrmlReader *reader); +gboolean vrml_read_skip_ws(VrmlReader *reader); +gboolean vrml_read_skip_unknown(VrmlReader *reader); +gboolean vrml_read_expect(VrmlReader *reader, const gchar c); +gboolean vrml_read_list(VrmlReader *reader, vrml_read_list_item_callback cb, + gpointer user_data); + +gchar *vrml_read_token(VrmlReader *reader); +gchar *vrml_read_numeric(VrmlReader *reader); +gchar *vrml_read_id(VrmlReader *reader); +gchar *vrml_read_nodeid(VrmlReader *reader); +gchar *vrml_read_string(VrmlReader *reader); + +VrmlProperty *vrml_read_property(VrmlReader *reader, guint32 level); +VrmlObject *vrml_read_object(VrmlReader *reader, guint32 level); + +static inline void vrml_read_dec(VrmlReader *reader) +{ + reader->bufp ++; + reader->bufsize --; +} + +static gchar vrml_read_padding[] = " "; + +#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 @@ +/* $Id:$ */ + +/* + libg3d - 3D object loading library + + Copyright (C) 2005-2009 Markus Dahms + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef _IMP_VRML_TYPES_H +#define _IMP_VRML_TYPES_H + +#include "imp_vrml2.h" + +typedef enum { + T_UNKNOWN = 0, + T_SPECIAL, + T_OBJECT, + T_TOKEN2, + T_TOKEN3, + T_STRING, + T_BOOLEAN, + T_INT, + T_FLOAT, + T_FLOAT2, + T_FLOAT3, + T_FLOAT4, + T_FLOAT_X, + T_LIST_OBJECT, + T_LIST_STRING, + T_LIST_INT, + T_LIST_FLOAT, + T_LIST_FLOAT2, + T_LIST_FLOAT3, + T_LIST_FLOAT4, + T_LIST_FLOAT_X, + N_TYPES +} VrmlType; + +typedef struct { + gchar *name; + gchar *defid; + gboolean define; + guint32 level; + GSList *properties; +} VrmlObject; + +typedef struct { + gchar *name; + VrmlType id; + + gsize n_items; + VrmlObject **v_object; + gchar **v_str; + G3DFloat *v_float; + gint32 *v_int; + gboolean v_boolean; + guint32 level; +} VrmlProperty; + +typedef VrmlType (* VrmlTypeDetect)(VrmlReader *reader); + +typedef struct { + const gchar *name; + VrmlType id; + VrmlTypeDetect detect; +} VrmlTypeDef; + +typedef gboolean (* VrmlNodeCallback)(VrmlReader *reader, VrmlObject *object); + +typedef struct { + const gchar *name; + VrmlNodeCallback callback; +} VrmlNodeDef; + +#endif /* _IMP_VRML_TYPES_H */ -- cgit v1.1