Changes for libgdx Batch refactoring.

This commit is contained in:
NathanSweet 2013-11-30 15:55:35 +01:00
parent 9bc138716c
commit 57c94b51d7

View File

@ -38,8 +38,8 @@ import com.esotericsoftware.spine.attachments.RegionAttachment;
import com.badlogic.gdx.graphics.GL11;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.Array;
public class SkeletonRenderer {
@ -82,7 +82,7 @@ public class SkeletonRenderer {
}
}
public void draw (SpriteBatch batch, Skeleton skeleton) {
public void draw (Batch batch, Skeleton skeleton) {
boolean premultipliedAlpha = this.premultipliedAlpha;
int srcFunc = premultipliedAlpha ? GL11.GL_ONE : GL11.GL_SRC_ALPHA;
batch.setBlendFunction(srcFunc, GL11.GL_ONE_MINUS_SRC_ALPHA);