libgdx API

com.badlogic.gdx.graphics.g3d.loaders.md5
Class MD5Animation

java.lang.Object
  extended by com.badlogic.gdx.graphics.g3d.Animation
      extended by com.badlogic.gdx.graphics.g3d.loaders.md5.MD5Animation

public class MD5Animation
extends Animation

Represents an MD5 (Doom 3) skeletal animation.

Author:
Mario Zechner , Nathan Sweet , Dave Clayton

Field Summary
 BoundingBox[] bounds
           
 int frameRate
           
 MD5Joints[] frames
           
 java.lang.String name
           
 float secondsPerFrame
           
 
Constructor Summary
MD5Animation()
           
 
Method Summary
 float getLength()
           
 int getNumFrames()
           
static void interpolate(MD5Joints skeletonA, MD5Joints skeletonB, MD5Joints skeletonOut, float t)
           
 void read(java.io.DataInputStream in)
           
 void write(java.io.DataOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frameRate

public int frameRate

secondsPerFrame

public float secondsPerFrame

frames

public MD5Joints[] frames

bounds

public BoundingBox[] bounds

name

public java.lang.String name
Constructor Detail

MD5Animation

public MD5Animation()
Method Detail

write

public void write(java.io.DataOutputStream out)
           throws java.io.IOException
Throws:
java.io.IOException

read

public void read(java.io.DataInputStream in)
          throws java.io.IOException
Throws:
java.io.IOException

interpolate

public static void interpolate(MD5Joints skeletonA,
                               MD5Joints skeletonB,
                               MD5Joints skeletonOut,
                               float t)

getLength

public float getLength()
Specified by:
getLength in class Animation

getNumFrames

public int getNumFrames()
Specified by:
getNumFrames in class Animation

libgdx API

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