I have a typical Libgdx class with the render () function.
In the render () function, I have a ShapeRenderer batch:
Gdx.gl10.glLineWidth(width); renderer.begin(ShapeType.Line); renderer.setColor(25,0, 0, alpha); renderer.line(point_x1, point_y1, point_x2, point_y2); renderer.end();
this function also has:
camera.update(); renderer.setProjectionMatrix(camera.combined);
and when you change the projection properties, the line points are translated correctly, but the line width remains the same !
Is it possible to change the line width due to the width and height of the projection?
considers
source share