SHARE
TWEET
Untitled
a guest
Oct 5th, 2015
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- float[] f = new float[] {100, 0, 100, 40, 0, 40};
- PolygonRegion pr = new PolygonRegion(new TextureRegion(new Texture("terrain.png")), f, triangulator.computeTriangles(f).items);
- //Later in render
- batch.draw(pr, 50, 50, 100, 50); //Yes it's a PolygonSpriteBatch
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

