I'm trying to draw a filled rectangle in Libgdx and according to the API this should work:
shapeRenderer.begin(ShapeRenderer.ShapeType.FilledRectangle);
But it gives me an error and tells me to change FilledRectangle
to Filled
, Point
or Line
.
imports: import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
Any ideas on what is causing this?