On Mar 31, 12:06 pm, Tristam MacDonald <swiftco...@gmail.com> wrote:Thanks a lot, so there is an error on the docs at
> You can't batch line strips at all, unless your card supports one of the
> fence extensions, which lets you specify the end of a primitive list. I
> would suggest you just use GL_LINES - the duplicate vertices shouldn't hurt
> performance too much.
http://www.pyglet.org/doc/api/pyglet.graphics-module.html when it is
talking about drawing modes you se this line:
"When using GL_LINE_STRIP, GL_TRIANGLE_STRIP or GL_QUAD_STRIP care
must be taken to insert degenrate vertices at the beginning and end of
each vertex list. For example, given the vertex list:"
It should actually say GL_LINES right?
and then in the end:
"Alternatively, the NV_primitive_restart extension can be used if it
is present. This also permits use of GL_POLYGON, GL_LINE_LOOP and
GL_TRIANGLE_FAN. Unfortunatley the extension is not provided by older
video drivers, and requires indexed vertex lists."
There should be a GL_LINE_STRIP in there also.