www.jpct.net
jPCT - a 3d engine for Java => Support => Topic started by: aZen on December 09, 2013, 10:32:32 pm
-
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!
-
From the docs:
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.
-
Thanks. I think I was blind there (time to stop working...).