libgdx API

com.badlogic.gdx.graphics.g3d.model.skeleton
Class SkeletonModelGpuSkinned

java.lang.Object
  extended by com.badlogic.gdx.graphics.g3d.model.skeleton.SkeletonModel
      extended by com.badlogic.gdx.graphics.g3d.model.skeleton.SkeletonModelGpuSkinned
All Implemented Interfaces:
AnimatedModel, Model

public class SkeletonModelGpuSkinned
extends SkeletonModel


Field Summary
static java.lang.String BoneIndexAttribue
           
static java.lang.String BoneWeightAttribue
           
 
Fields inherited from class com.badlogic.gdx.graphics.g3d.model.skeleton.SkeletonModel
animations, skeleton, subMeshes
 
Constructor Summary
SkeletonModelGpuSkinned(Skeleton skeleton, SkeletonSubMesh[] subMeshes)
           
 
Method Summary
static SkeletonModel CreateFromSkeletonModel(SkeletonModel skeletonModel)
           
 void setAnimation(java.lang.String animation, float time, boolean loop)
          Start playing the given animation at the given time in the animation and specify wether or not the animation will loop.
 void setupGpuSkin()
           
 
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
 

Field Detail

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
Constructor Detail

SkeletonModelGpuSkinned

public SkeletonModelGpuSkinned(Skeleton skeleton,
                               SkeletonSubMesh[] subMeshes)
Method Detail

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?)

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)