Pyglet

Latest version: v2.0.15

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

Scan your dependencies

Page 1 of 8

2.0.15

Changes and Improvements
------------------------
- font: Clean up win32 legacy font renderer to remove unused or outdated code.
- font: Boxes are now primary update method for TextLayout instead of relying on the vertex_list of the TextLayout.
- font: More typing additions.
- gui.widgets: Add _set_enabled hook (1073)
- shapes: Add missing BezierCurve thickness property.
- graphics: Re-raise error for attributes during shader creation with better error descriptions. (1076)
- docs: Start adding GUI section to the programming guide.
- typing: Add stub file for init package to workaround IDE inspection/completion issues with lazy loading modules. (1077)
- examples: Add more visual feedback to the Controller example

Bugfixes
--------
- Xaudio2: Fix missing `)` to POINTER which causes XAudio2 to fail to be imported. (1068)
- font.caret: Fix caret positioning and moving the cursor during cursor selection. (932)
- input.controller: User added mappings should take higher priority over default mappings.
- input.controller: Properly handle inverted axis as dpad (1078)
- shapes: Added a None check to ShapeBase.delete (1075)
- shapes: Fix Line being off-centered when setting thickness 1083
- image: Fix BufferManager.get_depth_buffer() for GL3+.

2.0.14b

Changes and Improvements
------------------------
- shapes: Add new MultiLine shape. (1057)
- font: Enhance UserDefinedFonts to allow using custom font mapping functions (1067)
- typing: Improve Xaudio2 COM type hints (1062)
- text: Raise Exception when attempting to change IncrementalTextLayout.rotation, as it's not supported.
- tests.integration: Add simple sanity tests for creation of all Label, Document, and Layout objects.

Bugfixes
--------
- input.win32: Fix broken xinput get_devices and get_controllers methods (1060)
- shapes: Fix incorrect BezierCurve positioning, and Line rotation. (1084)
- app: Fix CFSTR.release() bugs in macOS event loop. (1059)
- font: Fix missing annotation import causing a crash for GDI.
- text.caret: Caret now properly works with other Layout content valigns other than top.
- text.layout: Ensure all TextLayouts have consistent argument ordering.
- text.layout: Fix left, right, bottom, top Layout parameters not being correct.
- text.layout: Fix changing anchor not updating the translation.
- text.layout: Fix for lines getting garbled in an IncrementalTextLayout when using a content-valign other than top.
- text.layout: Fix IncrementalTextLayout setting visible line count instead of total line count.
- text.layout: Fix translation sometimes not updating all of the GlyphBoxes.
- text.layout: Fix _update_anchor not updating vertex lists of IncrementalTextLayout.
- text.layout: Fix _update_flow_glyphs not updating line count when it breaks it's loop.
- text.layout: Fix deleting lines at the end of a multilined IncrementalTextLayout not reducing view size.
- text.layout: Fix shader to conform to new anchors.
- text.layout: Rotation no longer requires destroying the whole layout, it now just updates attributes.
- text.layout: Anchor bottom fix for Scrollable/Incremental.

2.0.12

Note: This version is a quick bugfix release that superceeds v2.0.11.
The previous release contained a bug that broke Batch/Group migration, which has now been fixed (and a unit test added for).

Changes and Improvements
------------------------
- media: major internal audio cleanup, bugfixes, and improvements on all platforms.
- various typing and documentation improvements.
- math: add Quaternion class with common methods.
- shader: add support for setting and getting arrays in a Uniform via wrapper. (1005)
- shapes: add radius property get and set to Arc class. (1013)
- sprite, shapes: Avoid extra step of updating vertex list after creation. (1016)
- shapes: allow setting the line thickness of Arc and BezierCurve shapes. (1028, 1030)
- text: add Caret.select_all method.
- text: performance improvements on instantiation, visibility, anchors, positions. (1004)
- text: add left, right, bottom, top attributes. (1004)
- text: add program argument for custom shaders. (1037)
- text: add get_as_texture function to render text to a new texture. (1037)
- font: skip pre-parsing all system fonts to improve speed. Check only when needed.

Bugfixes
--------
- macOS: prevent crash when scanning for Controllers if device.transport is None. (995)
- input: avoid crash when encountering controls with invalid min/max values. (986)
- xlib: fix missed argument in window drag.
- media: fix bad behavior when clearing XAudio2AudioPlayer. (1011)
- pyglet.__init__: don't install debug_trace until after module proxies 1046
- media: numerous fixes to race conditions and deadlocks across all backends.
- experimental: Fix incorrect texture UVs and final positioning for GeometryShader Sprite.
- image: add missing binding calls for blit_to/texture methods.

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

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.