Main Menu

Polyline

Started by aZen, December 09, 2013, 10:32:32 PM

Previous topic - Next topic

aZen

I'm trying to add a Polyline to the world. However it is never rendered. Does it not work with the software renderer? Or am I missing something obvious?

Polyline polyline = new Polyline(triangle, Color.BLACK);
polyline.setWidth(2f);
addPolyline(polyline);


...is the code that I'm using.

Thank you!

AGP

From the docs:

Quote
A Polyline is a line strip in world space. You can add a Polyline to a world and it will be rendered after all objects have been drawn.
This doesn't work for the software renderer.

aZen

Thanks. I think I was blind there (time to stop working...).