mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[libgdx] It is safe to use unordered arrays for the Triangulator convexPolygons and convexPolygonsIndices.
Saves copying when removing empty polygons.
This commit is contained in:
parent
adc3bbb774
commit
6b680f7b53
@ -36,8 +36,8 @@ import com.badlogic.gdx.utils.Pool;
|
||||
import com.badlogic.gdx.utils.ShortArray;
|
||||
|
||||
class Triangulator {
|
||||
private final Array<FloatArray> convexPolygons = new Array();
|
||||
private final Array<ShortArray> convexPolygonsIndices = new Array();
|
||||
private final Array<FloatArray> convexPolygons = new Array(false, 16);
|
||||
private final Array<ShortArray> convexPolygonsIndices = new Array(false, 16);
|
||||
|
||||
private final ShortArray indicesArray = new ShortArray();
|
||||
private final BooleanArray isConcaveArray = new BooleanArray();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user