Skip to content

Releases: pyglet/pyglet

v2.0.5

28 Feb 06:22
Compare
Choose a tag to compare

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.

v2.0.4

01 Feb 07:07
Compare
Choose a tag to compare

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.

v2.0.3

02 Jan 07:31
Compare
Choose a tag to compare

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.

v2.0.2

20 Dec 07:15
Compare
Choose a tag to compare

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.

v2.0.1

02 Dec 02:00
Compare
Choose a tag to compare

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

v2.0.0

01 Nov 08:24
Compare
Choose a tag to compare

pyglet 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.

v1.5.27

21 Sep 11:18
Compare
Choose a tag to compare

Bugfixes

  • Windows - stop setting HWND_TOPMOST for fullscreen windows
  • obj decoder - Fix GL_SHININESS (Ns) value parsing
  • Fix broken property setter for shapes.Polygon (#676)
  • Fix keys getting "stuck" in KeyStateHandler when Window loses focus (#682)

v1.5.24

12 May 10:38
Compare
Choose a tag to compare

Features

  • Add initial support for FFmpeg 5.0
  • Windows - The GDI font renderer now supports Unicode font names.

Bugfixes

  • Windows - Fix on_resize event not dispatched when set_size is called.
  • Documentation updates, fixed links, and corrections.
  • Windows - Fix crash when font characters are more than one codepoint in length.

v1.5.23

21 Mar 08:04
Compare
Choose a tag to compare

Features

  • Windows - Add win32_disable_shaping option. This can improve font performance when shaping isn't required.
  • Backport the latest pyglet.math module changes from the development branch.

Bugfixes

  • Linux - Fix crash when Gstreamer Gst bindings are not installed.
  • Fix math.Vec4.clamp method.

v1.5.22

02 Mar 00:45
Compare
Choose a tag to compare

Features

  • If the PyOgg module is installed, it can be used for loading various Vorbis audio formats.
  • Add a new CameraGroup example, to show implementing a Camera with pyglet's Groups.
  • Add angle and start_angle property/setter to shapes.Sector.
  • Windows - new WMF based encoder for faster saving of common image formats.

Bugfixes

  • Fix indexing error when setting text.Label.opacity (#481)
  • Windows - Fix shift modifier + exclusive mouse mode (#472)
  • Linux - Prevent non-Tablet devices from being detected as Tablets (#491)
  • Windows - Prevent distortion with multiple XAudio2 audio sources (#515)
  • Fix frame dropping bug with FFMpeg decoder.
  • Windows - Fix Video alpha channel for WMF decoder.
  • Varios documentation and docstring fixes. Thanks everyone!