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 x1,
float y1,
float x2,
float y2,
float srcX1,
float srcY1,
float srcX2,
float srcY2,
int[] light,
int filter) |
void |
drawFrame(int row,
int frame,
float x,
float y,
float scale,
int filter) |
void |
drawFrame(int row,
int frame,
float x,
float y,
float scale,
int[] light,
int filter) |
void |
drawRow(int row,
float x1,
float y1,
float x2,
float y2,
float srcX1,
float srcY1,
float srcX2,
float srcY2,
int[] light,
int filter) |
void |
drawRow(int row,
float x,
float y,
float scale,
int filter) |
void |
drawRow(int row,
float x,
float y,
float scale,
int[] light,
int filter) |
void |
drawRow(long timeOffsetMillis,
int row,
float x1,
float y1,
float x2,
float y2,
float srcX1,
float srcY1,
float srcX2,
float srcY2,
int[] light,
int filter) |
void |
drawRow(long timeOffsetMillis,
int row,
float x,
float y,
float scale,
int filter) |
void |
drawRow(long timeOffsetMillis,
int row,
float x,
float y,
float scale,
int[] light,
int 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.lang.Exception
java.lang.Exceptionpublic void drawFrame(int row,
int frame,
float x,
float y,
float scale,
int filter)
public void drawFrame(int row,
int frame,
float x,
float y,
float scale,
int[] light,
int filter)
public void drawFrame(int row,
int frame,
float x1,
float y1,
float x2,
float y2,
float srcX1,
float srcY1,
float srcX2,
float srcY2,
int[] light,
int filter)
public void drawRow(int row,
float x,
float y,
float scale,
int filter)
public void drawRow(int row,
float x,
float y,
float scale,
int[] light,
int filter)
public void drawRow(int row,
float x1,
float y1,
float x2,
float y2,
float srcX1,
float srcY1,
float srcX2,
float srcY2,
int[] light,
int filter)
public void drawRow(long timeOffsetMillis,
int row,
float x,
float y,
float scale,
int filter)
public void drawRow(long timeOffsetMillis,
int row,
float x,
float y,
float scale,
int[] light,
int filter)
public void drawRow(long timeOffsetMillis,
int row,
float x1,
float y1,
float x2,
float y2,
float srcX1,
float srcY1,
float srcX2,
float srcY2,
int[] light,
int filter)