public class Animation
extends java.lang.Object
| Constructor and Description |
|---|
Animation(ITexture 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(ITexture texture,
java.io.InputStream infoStream) |
public Animation(ITexture texture, int frameWidth, int frameHeight, java.util.List<AnimationRow> rows)
public static Animation fromStream(ITexture texture, java.io.InputStream infoStream) 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)