On 17/08/2009, at 8:48 AM, freevryheid wrote:
> Thanks for the response. What then is the need for on_draw since the
> pyglet.clock.schedule(update) calls update instead, right? So I can
> put all my *.draw() calls in update. I'm just trying to make sense of
> the pyglet.app event loop.
on_draw will be invoked when you need to render the window contents -
when the window contents are made dirty by some action external to
your program (window min/max/resize/obscure). If your scene is not
animated then on_draw is the way to go.
Richard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---