dev notes: There’s code duplication here, but having separated codepaths would help to follow changes in pyglet 1.2dev. When released, we could refactor this with some confidence.
References to the classes defined here are discouraged in code outside this module because of possible changes.
Bases: pyglet.clock.Clock
Make frames follow a test plan
This class is compatible with pyglet 1.1.4release, it is not compatible with pyglet 1.2dev
Bases: pyglet.clock.Clock
Make frames follow a test plan
This class is compatible with pyglet 1.2dev, it is not compatible with pyglet 1.1.4release
sleep time between frames; 0.0 as as we want to run as fast as possible
Return type: | float |
---|---|
Returns: | The number of seconds since the last update_time, or 0 if this was the first time it was called. |
Bases: pyglet.clock.Clock
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
Signify that one frame has passed.
Bases: pyglet.clock.Clock
Make frames happen every 1/framerate and takes screenshots
This class is compatible with pyglet 1.2dev, it is not compatible with pyglet 1.1.4release
sleep time between frames; 0.0 as as we want to run as fast as possible
Return type: | float |
---|---|
Returns: | The number of seconds since the last update_time, or 0 if this was the first time it was called. |
Returns a clock object suitable to be used as a pyglet app clock, which will follow a test plan to advance time and take snapshots.
The clock object class depends on the pyglet version, and is determined automatically.
Parameters: |
|
---|
Returns a clock object suitable to be used as a pyglet app clock, which will provide a steady framerate, and saves a snapshot for each frame from time=0 to time=duration
The clock object class depends on the pyglet version, and is set automatically
Parameters: |
|
---|
Sets the cocos (or pyglet) app clock to a custom one