Is it possible to draw shapes using a ShapeRenderer between calls to SpriteBatch begin and end .
I tried, but no result, only the SpriteBatch textures are drawn, it doesnβt appear on the scene. Sample code is as follows:
shapeRenderer.begin(ShapeType.FilledCircle); shapeRenderer.setColor(0f, 1f, 0f, 1f); shapeRenderer.filledCircle( 100, 100, 100); shapeRenderer.end();
I have a spelling camera created by these commands:
camera = new OrthographicCamera(1, Gdx.graphics.getHeight() / Gdx.graphics.getWidth()); camera.setToOrtho(true);
source share