earlygrey / shapedrawer

A library for libGDX that draws simple shapes using a batch.
MIT License
187 stars 31 forks source link

Fix PolygonBatchManager triangles length #68

Closed TCreutzenberg closed 1 month ago

TCreutzenberg commented 1 month ago

Both verts.length as well as VERTEX_SIZE are both ints, so Math.ceil will not work... Casting to double should do the trick.