com.badlogic.gdx.graphics.g3d.model.skeleton
Class SkeletonModelGpuSkinned
java.lang.Object
com.badlogic.gdx.graphics.g3d.model.skeleton.SkeletonModel
com.badlogic.gdx.graphics.g3d.model.skeleton.SkeletonModelGpuSkinned
- All Implemented Interfaces:
- AnimatedModel, Model
public class SkeletonModelGpuSkinned
- extends SkeletonModel
Methods inherited from class com.badlogic.gdx.graphics.g3d.model.skeleton.SkeletonModel |
dispose, getAnimation, getAnimations, getBoundingBox, getSubMesh, getSubMeshes, getSubModel, render, render, setBindPose, setMaterial, setMaterials, skin |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoneIndexAttribue
public static final java.lang.String BoneIndexAttribue
- See Also:
- Constant Field Values
BoneWeightAttribue
public static final java.lang.String BoneWeightAttribue
- See Also:
- Constant Field Values
SkeletonModelGpuSkinned
public SkeletonModelGpuSkinned(Skeleton skeleton,
SkeletonSubMesh[] subMeshes)
CreateFromSkeletonModel
public static SkeletonModel CreateFromSkeletonModel(SkeletonModel skeletonModel)
setupGpuSkin
public void setupGpuSkin()
setAnimation
public void setAnimation(java.lang.String animation,
float time,
boolean loop)
- Description copied from interface:
AnimatedModel
- Start playing the given animation at the given time in the animation and specify wether or not the animation will loop.
- Specified by:
setAnimation
in interface AnimatedModel
- Overrides:
setAnimation
in class SkeletonModel
- Parameters:
animation
- The name of the animation in this Model
that you should play.time
- The time, in seconds, of the section to start the animation.loop
- Whether or not the animation will loop if the time is after the end of the animation. (TODO what happens when
you reach the end of the animation and this is not set?)
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)