Author Topic: Polyline  (Read 713 times)

Offline aZen

  • int
  • **
  • Posts: 94
    • View Profile
Polyline
« 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?

Code: [Select]
Polyline polyline = new Polyline(triangle, Color.BLACK);
polyline.setWidth(2f);
addPolyline(polyline);

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

Thank you!

Offline AGP

  • quad
  • ******
  • Posts: 1518
    • View Profile
Re: Polyline
« Reply #1 on: December 09, 2013, 10:34:30 pm »
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.

Offline aZen

  • int
  • **
  • Posts: 94
    • View Profile
Re: Polyline
« Reply #2 on: December 09, 2013, 11:48:28 pm »
Thanks. I think I was blind there (time to stop working...).