
Home — pyglet
pyglet is a powerful yet easy-to-use Python library for developing games and other visually rich applications on Windows, macOS, and Linux. It supports windowing, mouse and keyboard, …
pyglet — pyglet v2.1.12
By default, pyglet creates a hidden window with a GL context when pyglet.gl is imported. This allows resources to be loaded before the application window is created, and permits GL …
pyglet Documentation — pyglet v2.1.12
pyglet is a cross-platform windowing and multimedia library for Python, intended for developing games and other visually rich applications. It supports windowing, user interface event …
Shaders and Rendering — pyglet v3.0.dev1
In Pyglet, when a vertex list is added to a Batch, it is effectively combined with similar objects in a large buffer. This significantly increases performance, but also presents the question, how do I …
Images and Sprites — pyglet v2.1.12
pyglet provides functions for loading and saving images in various formats using native operating system services. If the Pillow library is installed, many additional formats can be supported. …
Simple Widgets & GUI — pyglet v2.1.12
The pyglet.gui module provides a selection of widgets that can be used to add user interface elements to your game or application. The selection is limited, but should cover the most …
Application resources — pyglet v2.1.12
There are also convenience functions for loading media files for pyglet. The following table shows the equivalent resource functions for the standard file functions.
pyglet — pyglet v3.0.dev1
By default, pyglet has opted to go for Single-Threaded Apartment (STA) for compatibility reasons. Many other third party libraries used with Python explicitly set STA.
pyglet.gl — pyglet v2.1.12
It is available in digital and paper editions. The following subpackages are imported into this “mega” package already (and so are available by importing pyglet.gl): pyglet.gl.gl OpenGL …
pyglet.app — pyglet v2.1.12
Called by pyglet internal processes when the operating system is about to block due to a user interaction. For example, this is common when the user begins resizing or moving a window.