Re: Correction for the *Drawing primitives* document page

The *Drawing primitives* page 
<http://www.pyglet.org/doc/programming_guide/drawing_primitives.html> has a 
minor error in one of its examples.

The first example of indexed drawing that is listed as...

pyglet.graphics.draw_indexed(2, pyglet.gl.GL_POINTS,
    [0, 1, 2, 3],
    ('v2i', (10, 15, 30, 35))
)


...has too many vertex indices (four) listed.  
The 'v2i' means that each vertex index refers to a pair of integers, 
so the example should be listed as...

pyglet.graphics.draw_indexed(2, pyglet.gl.GL_POINTS,
    [0, 1],
    ('v2i', (10, 15, 30, 35))
)


...so as to list only the two vertex indices (each of which refers to a 
pair of integers).

(The very next example on that page has the correct number of indices.) 

http://www.pyglet.org/doc/programming_guide/drawing_primitives.html

(If there is a better place to submit webpage corrections than this list 
let me know.)

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to