Yay, I fixed it! Well, since I was just testing out OpenGL functions,
I thought that making new vertex lists on each draw event wasn't so
bad. I moved the vertex list outside the event and now it seems to
work alright. Now, how do I go about textures?

Thanks in advance!

On May 18, 4:34 am, "Alex Holkner" <[EMAIL PROTECTED]> wrote:
> On Sat, May 17, 2008 at 10:59 PM, eFFeeMMe
>
>
>
> <[EMAIL PROTECTED]> wrote:
>
> > YET more questions! I'm such a noob. =p
>
> > Why does this flicker?
>
> > indexed_vertex_list = pyglet.graphics.vertex_list_indexed(6,
> >                        (0, 1, 2, 3,
> >                         2, 3, 4, 5),
> >                        ('v2i', (10, 25,
> >                                 30, 45,
> >                                 60, 30,
> >                                 40, 10,
> >                                 80, 20,
> >                                 70, 0)
> >                        ),
> >                        ('c3B', (0, 0, 255,
> >                                 0, 255, 0,
> >                                 255, 0, 0,
> >                                 0, 255, 0,
> >                                 0, 0, 255,
> >                                 0, 255, 0))
> >                        )
>
> >        indexed_vertex_list.draw(pyglet.gl.GL_QUADS)
>
> You'll need to provide a more complete example.
>
> Alex.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to pyglet-users@googlegroups.com
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