On Wed, Apr 1, 2009 at 10:05 AM, Leonardo Santagada <[email protected]>wrote:
>
>  On Mar 31, 12:06 pm, Tristam MacDonald <[email protected]> wrote:
> > 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.
>
> Thanks a lot, so there is an error on the docs at
> 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?


GL_LINES doesn't need degenerate vertices, since each segment is independent
of the preceeding segment - unfortunately, it also requires twice as many
vertices as a strip. GL_LINE_STRIP doesn't work with degenerate vertices,
only quad/triangle-strips.

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.


Ja, I think so. However, I really don't know how widespread that extension
is.

-- 
Tristam MacDonald
http://swiftcoder.wordpress.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to