public LTexture getSpriteImage(int idx) { if (currentFrameIndex > -1 && currentFrameIndex < size) { Animation animation = playAnimations.get(currentFrameIndex); return animation.getSpriteImage(idx); } else { return null; } }
public void createUI(GLEx g) { if (isVisible) { g.drawTexture(animation.getSpriteImage(), x(), y()); } }
public LTexture getBitmap() { return animation.getSpriteImage(); }