On Wed, Oct 27, 2010 at 11:04 PM, B W <[email protected]> wrote:
> > So what's the upshot: are people really only using graphics.OrderedGroup to > sequence their batches, and wrapping the batch calls in immediate mode > glEnable/glDisable/glPushMatrix/glPopMatrix calls in on_draw()? > This is all legacy stuff: Enable/Disable go away when you move to shaders, Push/PopMatrix go away with OpenGL 3+... I haven't ever used the fixed-function pipeline in Pyglet (beyond the examples in the distribution), so I can't help you much with that. Once one moves to shaders, it is much simplified: you bind a shader, bind the necessary textures, update the uniform matrices and draw the batch. Rinse and repeat - it is well suited to encapsulating in single class. -- 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.
