gillcup_graphics.mainwindow¶
Utilities for interfacing gillcup_graphics with the rest of the world
-
class
gillcup_graphics.Window(layer, *args, **kwargs)[source]¶ A main window
A convenience subclass of pyglet.window.Window that shows a
LayerParameters: layer – The layer to show. Its scalewill be automatically adjusted to fit the window (and re-adjusted when the window’s size changes).Other arguments are passed to Pyglet’s window constructor. The most common arguments to pass are:
Parameters: - width – Width of the window
- height – Height of the window
- caption – Caption that appears in the title, taskbar, etc.
- fullscreen – If true, the window will cover the screen
- resizable – If true, the user can resize the window
Other arguments are explained in the Pyglet documentation.
-
class
gillcup_graphics.RealtimeClock[source]¶ A
gillcup.Clocktied to the system timeNote that the Pyglet main loop must be running (or the Pyglet clock must be ticked otherwise) for this to work.
-
gillcup_graphics.run()¶ Runs the Pyglet main loop. Alias for
pyglet.app.run().