Pyglet

Latest version: v2.1.3

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

Scan your dependencies

Page 4 of 10

2.0.5

Changes and Improvements
------------------------
- windows.key: add support for extended function keys
- Windows now uses "Apartment Threaded" mode for better compatibility with other libraries.
- image: allow blanking newly created Textures (skipped by default when creating from image).

Bugfixes
--------
- input.macos: Fix ControllerManager hot-plugging on macOS.
- font.windows: Fix 32bit crashes with DirectWrite font backend.
- math: Fix incorrect calculation in Mat4.look_at method.
- image: Fix blitting from regions, caused by invalid unpacking settings.

2.0.4

Changes and Improvements
------------------------
- input.win32: ControlManager now supports both DirectInput and XInput devices.
- input: Many cleanups and reorganization.
- math: Add Vec2.reflect method.
- shapes: Add new BezierCurve shape.
- gl: Add support for GL sync functions.

Bugfixes
--------
- gui: Prevent two TextEntry widgets from being active at the same time. 747
- win32: Fix broken lib debug, and multiple related bugs due to depreacted functions.
- input: Controller mappings now indexed correctly on macOS and Windows.

2.0.3

Changes and Improvements
------------------------
- shapes: Batch and Group can now be changed on shapes after instantiation, similar to Sprites.
- font: DirectWrite & Freetype fonts now expose a `filename` attribute. macOS not yet implemented.
- Windows: DirectWrite fonts parse font names in a more correct manner. Setting `pyglet.options['dw_legacy_naming']`
to True will restore the old behavior, but this may be removed at a later date.
- math: Vec types can now be updated with slices (`velocity[:] = 1, 2`)
- math: Matrix operations now behave more like GLSL.

Bugfixes
--------
- macOS: fix crash when supplying OpenGL Config without explicit major/minor versions 739
- To prevent crashing on many OpenGL drivers, Textures are no longer initialized with empty data.
- fixed `font_comparison.py` example.

2.0.2.1

Bugfixes
--------
- Fix Config.opengl_api being always set to None.
- Windows: fix Display.get_default_screen() always returning the first index.

Changes
-------
- Remove legacy Xlib backend code.
- Add initial support for Compute Shaders.
- Windows: a high performance event timer is requested by the PlatformEventLoop.

2.0.1

Bugfixes
--------
- Windows: only enable DirectWrite color font for supported OSes.
- gui: don't unset TextEntry widget focus on mouse motion.
- image: Prevent BufferManager crash when stencil buffer query fails 703
- macOS input: fix broken get_guid link for Controllers.
- math: fix Mat4.look_at. 708
- shader: fix vertex_list passing id instead of self to Batch.get_domain
- shapes: fix crash when setting Arc.visible = False

Changes
-------
- shapes: add Arc.start_angle setter
- graphics: Various default Group changes to help improve Group consolidation

2.0.0

Major Release

Changes
-------
- pyglet has been upgraded to use use OpenGL 3.3+ core functionality.
- All high level modules have been internally updated to use modern OpenGL.
- A large number of cleanups and optimizations.

Features
--------
- New `pyglet.math` module including common Matrix and Vector operations.
- New `pyglet.graphics.shader` module for easily managing Shader objects.
- New OpenGL bindings, and binding tools.
- New Game Controller API for modern game controllers, including rumble and automapping.
- New Framebuffer classes.

Page 4 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.