Pyglet

Latest version: v2.1.3

Safety actively analyzes 714772 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 10

2.1.3

⚠️ This release is part of the new 2.1 series, and has BREAKING CHANGES from the 2.0 series. Please see the migration guide in the documentation for more details: https://pyglet.readthedocs.io/en/latest/programming_guide/migration.html

Changes
-------
- window: Change the default znear/zfar to (-8192, 8192).
- docs: Fix top-left version display and copyright auto-generation (1264).
- docs: fixes in the quickstart guide, and lots of other cleanups.
- clean up legacy super() call syntax around the codebase.

Bugfixes
--------
- shapes: disable depth testing by default, due to usability issues.
- window.xlib: prevent crash if initial configuration notify event has invalid width/height.
- window.xlib: fix screen mode showing dotclock instead of Hz.
- model: fix the (undocumented) Sphere and Cube test shapes.
- examples.model.fpscamera: don't normalize the movement input.
- window: Fix ImageMouseCursor positioning not adapting to scaling (1278).

2.1.2

⚠️ This release is part of the new 2.1 series, and has BREAKING CHANGES from the 2.0 series. Please see the migration guide in the documentation for more details: https://pyglet.readthedocs.io/en/latest/programming_guide/migration.html

Bugfixes
--------
- shapes: disable depth testing by default, due to usability issues.

2.1.1

:warning: This release is part of the new 2.1 series, and has BREAKING CHANGES from the 2.0 series. Please see the migration guide in the documentation for more details: https://pyglet.readthedocs.io/en/latest/programming_guide/migration.html

Bugfixes
--------
- input.Controller: Fix DirectInput dpad (hat control) regressions.
- input.Controller: Fix sign calculation bug for devices with analog axis as dpad.

2.1.0

MAJOR RELEASE

This is the first release in the 2.1 series, and has BREAKING CHANGES from the 2.0 series.
Please see the migration guide in the documentation for more details:
https://pyglet.readthedocs.io/en/latest/programming_guide/migration.html


Changes
-------
- Changed default argument order to bring consistency to text Labels and Layouts.
- For API consistency with other modules, Shapes now use degrees for all applicable objects.
- Controller events dispatch `Vec2`s for analog sticks and directional-pad movement.
- The `pyglet.canvas` module has been renamed to `pyglet.display`.

Features
--------
- More control over DPI scaling for Hi-DPI displays (see pyglet.options.dpi_scaling).
- Objects in the math module (Vec2/3/4, Mat3/4, Quaternion) are now all immutable and hashable.
- Shapes now offer a Z property for basic depth sorting.

2.0.21

Bugfixes
--------
- font: Fix DirectWrite bitmap width being cut off for some fonts. (1253)

2.0.20

Changes and Improvements
------------------------
- media: add support for FFmpeg 7.x

Page 1 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.