Pyglet

Latest version: v2.0.18

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

Scan your dependencies

Page 2 of 9

2.0.10

Changes and Improvements
------------------------
- sprite: moving Sprites is now about 35% faster (as tested on R5 5600X)
- gui: Add TextEntry.focus property to allow programmatic focus control
- gui: Allow set TextEntry.width and TextEntry.height
- Window: Add experimental Window.get_clipboard_text and Window.set_clipboard_text methods
- experimental: Add new pyglet.experimental package for easier wider testing of new ideas
- experimental: Add `geoshader_sprite.py` that is more complex, but faster than the standard Sprite
- experimental: Add `net` module with Server/Client proof of concept
- tests: Add new interactive spot test to visually confirm shapes are working as expected
- shapes: Move rotate functionality to ShapeBase class, and allow all shapes to rotate
- VertexDomain: bind all buffers to VAO in __init__, and avoid binding each draw
- gl.Context: Add a new cached `Context.create_program` method to assist in shader reuse
- examples.model.fpscamera: fix drifting input, and other improvements
- contrib.qt_sprite_preview.py: Modify to allow using either PySide2 or PyQt5 (959)
- examples: Carry over the soundspace example (972)
- media: The "Silent" audio driver now behaves more like a real driver
- text: Add RGB color setter fallback for HTML labels, assuming 255 alpha
- shapes: Add a new (unfilled) Box shape
- gl: Take threading into account when deleting OpenGL objects (988)

Bugfixes
--------
- gl: Stop storing doomed VAOs in object space (918)
- xlib: Do a better job of detecting UTF8 capability (520)
- media.Player: for Video playback, set context when updating Textures
- shapes: fix re-positioning of BezierCurve and Polygon shapes
- media.codecs: Fix use-after-frees and memory leaks in the wmf decoder 962
- text.Caret: Fix caret blinking (971)
- text.layout: Fix incorrect background color vertex data
- Windows: Implement fix for ctypes.wintypes.BYTE in Python < 3.12 (977)
- input.evdev: Fix for pypy3 by removing usage of os.readv

2.0.9

Changes and Improvements
------------------------
- app: Passing `None` to pyglet.app.run will disable automatic Window redraws.
- window: Add a Window.draw method to help when manually scheduling Window redraws.
- shapes: Add a `border` thickness setter to BorderedRectangle.
- docs: Various docstring improvements and cleanups.
- examples: Add minimal ComputeShader example.

Bugfixes
--------
- media: Fix multiple on_eos events from OpenAL players, and major MediaThreads overhaul.
- macos: Fix on_key events (898)
- macos: Workaround for CGDisplaySetDisplayMode bug
- Xaudio2: Fix packet refill crash when removing a player that was deleted mid callback.
- gui: Fix incorrectly named on_mouse_scroll arguments (904).

2.0.8

Changes and Improvements
------------------------
- Add missing OpenGL extensions
- Add support for FFmpeg 6.0
- Sprite width & height properties are now settable, allowing scaling by pixels
- documentation: updates to migration guide, media, and events
- shapes: Allow checking if a point is in a shape, using the `in` operator

Bugfixes
--------
- clock: Fix clock swallowing ReferenceErrors
- documentation: fix some sphinx build issues on ReadTheDocs
- font: multiple macOS fixes, including issues with double-byte fonts
- input: ensure Xinput controllers dispatch events on the main thread

2.0.7

Changes and Improvements
------------------------
- gui: Add alpha value to the Caret's default color.
- docs: Some minor rewording of sections, and type fixes.

Bugfixes
--------
- Fix broken struct format strings in png and ttf decoders.
- text: Clear Group cache when a Layout's Group is changed.
- Fix incorrect string formatting in the timer.py example.

2.0.6

Changes and Improvements
------------------------
- Initialize AudioDriver when media module is imported, prevent pause on first sound playback.
- New TextureArrayBin class for managing TextureArray based atlases.
- macOS: implement "file_drop" support for Windows.
- macOS: add support for CoreAudio, allowing native mp3, aiff, etc. support without FFMpeg.
- macOS: alternative NSApplication based event loop, to avoid missing events on M1 Macs. 794
- text: Caret supports RGBA color, in line with other pyglet objects.
- Windows: New context manager for handling of safer handling of platform resources.

Bugfixes
--------
- Fix numerous bugs remaining with IncrementalTextLayout, with translation, caret, etc. 786
- Windows: fix incorrect on_resize values.
- macOS: numerous memory leak fixes.
- shader: add missing sampler type definitions.
- Add missing docstrings, and various documentation fixes.

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.

Page 2 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.