Class cocos.custom_clocks.ScreenReaderClock

pyglet.clock._ClockBase --+    
                          |    
         pyglet.clock.Clock --+
                              |
                             ScreenReaderClock

Make frames happen every 1/framerate and takes screenshots

This class is compatible with pyglet 1.1.4release, it is not compatible with pyglet 1.2dev

Methods

  __init__(self, framerate, template, duration)
Initialise a Clock, with optional framerate limit and custom time function.
float tick(self, poll=False)
Signify that one frame has passed.
Inherited from pyglet.clock.Clock: call_scheduled_functions, get_fps, get_fps_limit, get_sleep_time, schedule, schedule_interval, schedule_interval_soft, schedule_once, set_fps_limit, unschedule, update_time Inherited from pyglet.clock._ClockBase: sleep

Constants

Inherited from pyglet.clock.Clock: MIN_SLEEP, SLEEP_UNDERSHOOT

Method Details

__init__

(Constructor) __init__(self, framerate, template, duration)
Initialise a Clock, with optional framerate limit and custom time function.
Overrides:
pyglet.clock.Clock.__init__

tick

tick(self, poll=False)
Signify that one frame has passed.
Returns:
float: The number of seconds since the last "tick", or 0 if this was the first frame.
Overrides:
pyglet.clock.Clock.tick