A
A
Andrey Andryushchenko2015-05-03 16:27:57
Java
Andrey Andryushchenko, 2015-05-03 16:27:57

How to render shape in libGDX?

How to use the ShapeRenderer class to render Shape objects, in particular PolygonShape?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Olenev, 2015-05-03
@delphikettle

1) Somewhere in your code you create a ShapeRenderer. Important: it must be one. pretty tough class.
2) Between shapeRenderer.begin() and shapeRenderer.end() draw whatever you want, like your shapeRenderer.polygon(...).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question