On Sun, Aug 16, 2009 at 1:31 PM, freevryheid <[email protected]> wrote:

>
> From the manual I read:
>
> "The pyglet.app event loop takes care of dispatching events, ticking
> the clock, calling the draw function and flipping the window buffer."
>
> So this event ticks the clock right? This being the case, how do I
> retrieve the number of seconds since the last tick? Is it still
> necessary to call clock.tick()?
>

When you schedule an update function, the update function will be called
with the time delta:

def update(time_elapsed_since_last_frame):
pass

pyglet.clock.schedule(update)


-- 
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