mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[libgdx] Don't need an immediate mode renderer.
This commit is contained in:
parent
ac72220dc0
commit
787170fa46
@ -34,10 +34,8 @@ import com.badlogic.gdx.graphics.Color;
|
||||
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.glutils.ImmediateModeRenderer;
|
||||
import com.badlogic.gdx.math.Vector2;
|
||||
import com.badlogic.gdx.utils.Array;
|
||||
import com.badlogic.gdx.utils.Disposable;
|
||||
import com.badlogic.gdx.utils.FloatArray;
|
||||
import com.badlogic.gdx.utils.NumberUtils;
|
||||
import com.badlogic.gdx.utils.ShortArray;
|
||||
@ -49,13 +47,12 @@ import com.esotericsoftware.spine.attachments.SkeletonAttachment;
|
||||
import com.esotericsoftware.spine.utils.SkeletonClipping;
|
||||
import com.esotericsoftware.spine.utils.TwoColorPolygonBatch;
|
||||
|
||||
public class SkeletonRenderer implements Disposable {
|
||||
public class SkeletonRenderer {
|
||||
static private final short[] quadTriangles = {0, 1, 2, 2, 3, 0};
|
||||
|
||||
private boolean premultipliedAlpha;
|
||||
private final FloatArray vertices = new FloatArray(32);
|
||||
private final SkeletonClipping clipper = new SkeletonClipping();
|
||||
private ImmediateModeRenderer renderer;
|
||||
private VertexEffect vertexEffect;
|
||||
private final Vector2 temp = new Vector2();
|
||||
|
||||
@ -411,10 +408,6 @@ public class SkeletonRenderer implements Disposable {
|
||||
this.vertexEffect = vertexEffect;
|
||||
}
|
||||
|
||||
public void dispose () {
|
||||
renderer.dispose();
|
||||
}
|
||||
|
||||
static public interface VertexEffect {
|
||||
public void begin (Skeleton skeleton);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user