X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=swig%2Fpmd.i;h=f858e8b34effaf44f2824b92f2ce4968b9b0c81a;hb=f23a64d31b4afefc535b21c1304e6dfe8beab804;hp=d2325f81412b294b5889b4f0e3de622fdf13abf9;hpb=af0f7ea2da9ace619ff51edef564fe4669582074;p=meshio%2Fmeshio.git diff --git a/swig/pmd.i b/swig/pmd.i index d2325f8..f858e8b 100644 --- a/swig/pmd.i +++ b/swig/pmd.i @@ -14,6 +14,7 @@ using namespace pmd; %include "std_vector.i" %include "std_wstring.i" %include "std_string.i" +%include "std_pair.i" %include "../include/color.h" %include "../include/la.h" %include "../include/pmd.h" @@ -29,6 +30,9 @@ using namespace pmd; %template(UshortVector) std::vector; %template(Vector3Vector) std::vector; %template(PBoneVector) std::vector; +%template(BoneGroupVector) std::vector; +%template(DisplayPair) std::pair; +%template(BoneDisplayVector) std::vector >; /////////////////////////////////////////////////////////////////////////////// // meshio::pmd::IO::each_vertex @@ -80,6 +84,12 @@ const meshio::pmd::Vertex* _dereferenceVertex( // addMaterial // addBone // addMorph +// addIK +// addBoneDisplay +// addBoneGroup +// getToonTexture +// addRigidBody +// addConstraint /////////////////////////////////////////////////////////////////////////////// %extend meshio::pmd::IO { @@ -119,10 +129,10 @@ void addBoneDisplay(unsigned short bone_index, unsigned char display_index) std::make_pair(bone_index, display_index)); } -meshio::pmd::BoneDisplayName *addBoneDisplayName() +meshio::pmd::BoneGroup *addBoneGroup() { - $self->bone_display_name_list.push_back(meshio::pmd::BoneDisplayName()); - return &($self->bone_display_name_list.back()); + $self->bone_group_list.push_back(meshio::pmd::BoneGroup()); + return &($self->bone_group_list.back()); } meshio::pmd::ToonTexture *getToonTexture(int index)