public class Animation
extends java.lang.Object
| Constructor and Description |
|---|
Animation(Texture texture,
int frameWidth,
int frameHeight,
java.util.List<AnimationRow> rows) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawFrame(int row,
int frame,
float x,
float y,
float scale,
org.newdawn.slick.Color filter) |
void |
drawRow(int row,
float x,
float y,
float scale,
org.newdawn.slick.Color filter) |
static Animation |
fromStream(java.io.InputStream textureStream,
java.io.InputStream infoStream,
java.lang.String name) |
public Animation(Texture texture, int frameWidth, int frameHeight, java.util.List<AnimationRow> rows)
public static Animation fromStream(java.io.InputStream textureStream, java.io.InputStream infoStream, java.lang.String name) throws java.io.IOException, org.newdawn.slick.SlickException
java.io.IOExceptionorg.newdawn.slick.SlickExceptionpublic void drawFrame(int row,
int frame,
float x,
float y,
float scale,
org.newdawn.slick.Color filter)
public void drawRow(int row,
float x,
float y,
float scale,
org.newdawn.slick.Color filter)