mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
[libgdx] Delegate to the specific batch rendering methods.
This commit is contained in:
parent
ce3c04da6d
commit
409f7ed133
@ -62,6 +62,14 @@ public class SkeletonRenderer {
|
||||
private final Color temp6 = new Color();
|
||||
|
||||
public void draw (Batch batch, Skeleton skeleton) {
|
||||
if (batch instanceof PolygonSpriteBatch) {
|
||||
draw((PolygonSpriteBatch)batch, skeleton);
|
||||
return;
|
||||
} else if (batch instanceof TwoColorPolygonBatch) {
|
||||
draw((TwoColorPolygonBatch)batch, skeleton);
|
||||
return;
|
||||
}
|
||||
|
||||
VertexEffect vertexEffect = this.vertexEffect;
|
||||
if (vertexEffect != null) vertexEffect.begin(skeleton);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user