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
Layer
Parameters: layer – The layer to show. Its scale
will 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.Clock
tied 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()
.