Esempio n. 1
0
//Bone* createBone(unsigned short handle);
BoneHandle skeleton_create_bone_with_handle(SkeletonHandle handle, unsigned short bone_handle)
{
    Ogre::Skeleton* skeleton = static_cast<Ogre::Skeleton*>(handle);
    Ogre::Bone* bone = skeleton->createBone(bone_handle);
    return static_cast<BoneHandle>(bone);
}
Esempio n. 2
0
//Bone* createBone(const String& name, unsigned short handle);
BoneHandle skeleton_create_bone_with_name_and_handle(SkeletonHandle handle, const char* name, unsigned short bone_handle)
{
    Ogre::Skeleton* skeleton = static_cast<Ogre::Skeleton*>(handle);
    Ogre::Bone* bone = skeleton->createBone(Ogre::String(name), bone_handle);
    return static_cast<BoneHandle>(bone);
}
Esempio n. 3
0
//Bone* createBone(void);
BoneHandle skeleton_create_bone(SkeletonHandle handle)
{
    Ogre::Skeleton* skeleton = static_cast<Ogre::Skeleton*>(handle);
    Ogre::Bone* bone = skeleton->createBone();
    return static_cast<BoneHandle>(bone);
}