
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 …
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 …
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. …
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 …
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.
The OpenGL interface — pyglet v2.1.11
The OpenGL interface pyglet provides a direct interface to OpenGL. The interface is used by all of pyglet’s higher-level API’s, so that all rendering is done efficiently by the graphics card, rather …
Installation — pyglet v3.0.dev1
Installation pyglet is a pure Python library, with no hard dependencies on other modules. No special steps or compilation are required for installation. You can install from on PyPI via pip. …
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 …