Debian Codegraph @

RELEASE_NOTES

raw
1 pyglet 2.1.14
2
3 Bugfixes
4 --------
5 shapes: Handle ZeroDivisionError and domain error when calculating miter scale (#1418)
6 window: On macOS, fix RecursionError when resizing Windows. (#1421)
7 text: Fix larger sized characters causing wrap issues. (#1426)
8
9 Improvements
10 ------------
11 typing: Fix the Label type hints for font_family. (#1407)
12 typing: Add type hints to the Quaternion.from_mat* methods. (#1406)
13 typing: Provide concrete typing for Window based on selected platform. (#1409)
14 docs: Fix typo. (#1416)
15
16
17 pyglet 2.1.13
18
19 Bugfixes
20 --------
21 shapes: fix rotation behaviour of Sector when later setting radius/angle/etc. (#1405)
22 window.win32: check Windows version before importing shcore. (#1402)
23 gui.PushButton: fix missing argument in on_mouse_leave handler. (#1397)
24
25
26 pyglet 2.1.12
27
28 Bugfixes
29 --------
30 shapes: On vertex_list creation, ensure vertex data is initialized for rotation.
31
32
33 pyglet 2.1.11
34
35 Changes
36 -------
37 shader: Add some missing Uniform type definitions that were missed for less common types. #1380
38 ffmpeg: Remove some missing attributes (libavformat version loading) that have been removed in FFMpeg 8.0.
39
40 Bugfixes
41 --------
42 media.ffmpeg: Fix source padding issue for some sources. #1386
43 window.win32: Fix memory address issues when queuing events during Windows OS window creation. #1382
44 font.dwrite: Fix bug in font_files indixing (use first object, not font_fact index).
45
46
47 pyglet 2.1.10
48
49 Changes
50 -------
51 media: Add support for FFmpeg 8.0 (#1365)
52 window: Update default dpi_scaling option to "platform". (#1383)
53 window: Convert the Window event queue to a deque. (#1362)
54 input.evdev: Do not attempt to reuse Controller instances on re-connect, as naming conflicts can occur.
55
56 Bugfixes
57 --------
58 text: fix typing of Label.__init__'s align argument. (#1361)
59 text: Update the passed args for attributed text. (#1379)
60 shader: Fixed number of elements for GL_FLOAT_MAT3 (9, not 6) in pyglet.graphics.shader._uniform_setters. (#1364)
61
62
63 pyglet 2.1.9
64
65 Changes
66 -------
67 docs: Improve missing or underdeveloped math doc (#1295)
68 input: Add new Controller properties for polling - Controller.dpad, Controller.leftanalog, Controller.rightanalog Vec2s.
69
70
71 Bugfixes
72 -------
73 input.linux.evdev: Add support for the SYN_DROPPED event, to prevent "stuck" controls when events are lost.
74 input.linux.evdev: Implement missing EvdevDevice.poll method.
75 graphics.shaders: Fix attribute pointer issue for integers. (#1351)
76 window.headless: Add missing abstract methods to HeadlessScreen (#1350)
77
78
79 pyglet 2.1.8
80
81 Changes
82 -------
83 docs: Improve camera example documentation. (#1326)
84 gl: Add type hints to GL functions. (#1237) (#1325)
85 font: Add font shaping support to MacOSX.
86 window: Add support for MacOSX to have transparent windows and overlays. (#1339)
87 window: Add new `on_clipboard_copy` & `on_clipboard_paste` events, and add support to the Caret class. (#1313)
88 examples: Add a `get_mouse_scale` helper method to the FixedResolution class.
89 math: Remove `if` checks from `__matmul__` operations for small performance improvement.
90
91 Bugfixes
92 --------
93 font: Fix get_text_size for DirectWrite to include trailing whitespaces.
94 font: Cache glyphs based on unique ID and indices to reduce cache collions. (#1346)
95 font: Fix issue with inline elements crashing in a non-multiline scenario. (#1346)
96 media: Fix WMFDecoder delivering audio data as float. (#1315) (#1316)
97 window: Fix bugs with transparent framebuffers for transparent windows. (#1333)
98 window: Adjust software cursor scale factor for MacOS for HiDPI. (#1343)
99
100
101 pyglet 2.1.7
102
103 Changes
104 -------
105 event: Add EventDispatcher.post_event method for posting events to main thread
106 window: Clamp width and height to minimum of (1,1) in internal resize events (#1322)
107 window.mouse: Add __getattr__ to the MouseStateHandler (#1311)
108
109 Bugfixes
110 --------
111 docs: Fix outbound link, cross-refs, and formatting for programming guide image page (#1318)
112 input.Controller: fix Nonetype error if a mapping points towards a non-existing HAT Control
113 math: fix bugged Vec methods (#1310)
114 window: Fix window transparency for Windows OS.
115 window: Fix X11 clipboard selection by not setting XlibWindow._clipboard_str in self.get_clipboard_text
116
117
118 pyglet 2.1.6
119
120 Bugfixes
121 --------
122 shapes: revert color -> colors in default shader.
123 shaders: fix UniformBlock introspection for creating an array of single types, like float.
124 shaders: in compute_shader example, fix incorrect assumption that bind_image_texture used uniform location.
125
126
127 pyglet 2.1.5
128
129 Changes
130 -------
131 - docs: Add shape guide crossrefs (#1291)
132 - Updated the opengl torus example to work with the material updates in 3.1 (#1281)
133 - Add homebrew lib search location for Apple Silicon.
134 - Bump Qt example to use PySide6 and PyQt6 (#1305)
135
136 Bugfixes
137 --------
138 - shapes.earcut: Fix int casting bug for large polygons (#1282)
139 - Linux: Use dotclock instead of rate in xlib vidmoderestore (#1285)
140 - tests: Fix many interactive tests, and other test fixes
141 - app: Fix run(None) crashing on macOS
142 - docs: Correct the docstring for the start_angle of an arc to indicate it is in degrees and not radians (#1290)
143 - controller: Fix dpad bias for controller.min > 0 (#1296)
144 - controller: Only use 0x1 desktop page axis for controller indexing on macOS (#1297)
145 - gui: Fix the position range of the slider knob when repositioning the slider (#1299)
146
147
148 pyglet 2.1.3
149
150 Changes
151 -------
152 - window: Change the default znear/zfar to (-8192, 8192).
153 - docs: Fix top-left version display and copyright auto-generation (#1264).
154 - docs: fixes in the quickstart guide, and lots of other cleanups.
155 - clean up legacy super() call syntax around the codebase.
156
157 Bugfixes
158 --------
159 - shapes: disable depth testing by default, due to usability issues.
160 - window.xlib: prevent crash if initial configuration notify event has invalid width/height.
161 - window.xlib: fix screen mode showing dotclock instead of Hz.
162 - model: fix the (undocumented) Sphere and Cube test shapes.
163 - examples.model.fpscamera: don't normalize the movement input.
164 - window: Fix ImageMouseCursor positioning not adapting to scaling (#1278).
165
166
167 pyglet 2.1.2
168
169 Bugfixes
170 --------
171 - shapes: disable depth testing by default, due to usability issues.
172
173
174
175 pyglet 2.1.1
176
177 Bugfixes
178 --------
179 - input.Controller: Fix DirectInput dpad (hat control) regressions.
180 - input.Controller: Fix sign calculation bug for devices with analog axis as dpad.
181
182
183 pyglet 2.1.0
184 Major Release
185
186 Changes
187 -------
188 - Changed default argument order to bring consistencty to text Labels and Layouts.
189 - For API consistency with other modules, Shapes now use degrees for all applicable objects.
190 - Controller events dispatch `Vec2`s for analog sticks and directional-pad movement.
191 - The `pyglet.canvas` module has been renamed to `pyglet.display`.
192
193 Features
194 --------
195 - More control over DPI scaling for Hi-DPI displays (see pyglet.options.dpi_scaling).
196 - Objects in the math module (Vec2/3/4, Mat3/4, Quaternion) are now all immutable and hashable.
197 - Shapes now offer a Z property for basic depth sorting.
198
199
200 pyglet 2.0.21
201
202 Bugfixes
203 --------
204 - font: Fix DirectWrite bitmap width being cut off for some fonts. (#1253)
205
206
207 pyglet 2.0.20
208
209 Changes and Improvements
210 ------------------------
211 - media: add support for FFmpeg 7.x
212
213
214 pyglet 2.0.19
215
216 Changes and Improvements
217 ------------------------
218 docs: update vertexbuffer.py module docstrings
219
220 Bugfixes
221 --------
222 - macos: stop F5 from autocompleting (#1229)
223 - input.base: Don't skip Axis Controls without names
224 - window.xlib: don't send on_mouse_release events for scrolling (#1235)
225
226
227 pyglet 2.0.18
228
229 Changes and Improvements
230 ------------------------
231 - shader: add support for OpenGL structures in UBO's (#1212)
232 - win32.com: get libs/win32/com.py ready for incoming 3.13 changes #1199
233 - docs: fix various typos, and example code to align with docs #1200, #1201
234 - text.document: add new AbstractDocument.append_text method for more efficient end-of-text additions #1182
235 - tests: fix issues with broken tests on macOS.
236 - input.macos: add missing axis alias for modern controllers (Stadia, newer XBOX One)
237 - gui.NinePatch: Add a new NinePatch.create_around_layout class method
238 - typing: add py.typed file #1205
239
240 Bugfixes
241 --------
242 - shader: fix matrix uniform assignment #1194
243 - text: fix missing caret top level import
244 - text.layout: fix updating anchor on the X axis #1213
245 - text.layout: move get_line_count function into the base TextLayout class
246 - window.macos: fix blinking cursor in bottom left of window #1204
247 - examples: fix rectangle not appearing in text_input example
248 - macos: fix missing dealloc for text view.
249 - macos: fix some deallocation issues when creating multiple windows.
250 - macos: fix event loop termination exiting the entire app.
251 - macos: fix focus being stolen by other apps during launch. (#1211)
252 - macos: fix error about pygletUpdate when closing a window. (#1219)
253 - macos: fix function keys not registering. (#1220)
254 - docs: move check for `sys.modules['sphinx']` into doc/conf.py to prevent conflicts with jupyter #1215
255
256
257 pyglet 2.0.17
258
259 Changes and Improvements
260 ------------------------
261 - image: Use dedicated shader for blitting to fix blending issues. (#1170)
262 - shapes: Add a way to set blend mode on initialization and after.
263 - shapes: Add a get_shape_group function.
264 - shapes: Add a way to change shape shader program.
265 - pyglet.experimental: Add multi-texture sprite support. (#1166)
266 - graphics.vertexbuffer: (internal) Rename buffer object `sub_data` to `commit` to better reflect it's usage. (#1186)
267 - gui: Add on_mouse_enter/leave event handler to WidgetBase and use it in Buttons (#1190)
268 - graphics.vertexdomain: Update program migration to its own function: update_shader.
269 - graphics.vertexdomain: Changing programs no longer requires batch, as that doesn't change with a program change.
270 - graphics.vertexdomain: Allow migration of shaders through deleting vertex lists.
271 - graphics.vertexdomain: Remove `isinstance` check for VertexList and go off the class variable that is set.
272
273 Bugfixes
274 --------
275 - image: Fix Texture3D.create_for_images method.
276 - typing: Fix pyglet.options type checking.
277 - shader: Fix UBO arrays. (#1168)
278 - sprite: Fix paused animation frame index. (#1180)
279 - window: win32: Fix Window.set_icon.best_icon. (#1183)
280 - options: Fix audio and vsync env vars. (#1185)
281 - audio: Remove `PreciseStreamingSource`; Move audio buffering back into Players. (#1175)
282
283
284 pyglet 2.0.16
285
286 Changes and Improvements
287 ------------------------
288 - library-wide overhaul of docstrings, and addition of type hints. (#1084)
289 - sprite: Add `blend_mode` property to change BLEND_MODE without needing to re-create the Sprite.
290 - sprite: Deprecate `AdvancedSprite`, and merge functionality into default `Sprite` class.
291 - sprite: Add `get_sprite_group` method, allowing easy usage of custom SpriteGroups in subclasses.
292 - image: Code for `Texture.blit` has been inlined. (#1109)
293 - shapes: Concave polygon can be drawn by earcutting a polygon. (#1121)
294 - shapes: Add Rounded Rectangle shape. (#1131)
295 - shapes: Add `thickness` property to `Box` shapes.
296 - libs: Add `pyglet.libs.ioctl` module, to consolidate shared code on Linux.
297 - gui: Add a pseudo "nine-path" Sprite-like class for variable sized windows.
298 - math: Add `match` statement support to Vec classes.
299 - graphics: Don't re-create a Shader each call to `draw` or `draw_indexed`.
300 - pyglet.options: Add runtime typing enforcement to user-set options.
301 - pyglet.experimental: Add simple GPU-based particle system in `particles` module.
302 - text.layout: Update `on_style_text` to be more efficient.
303
304 Bugfixes
305 --------
306 - window.macos: Fix constant appearance of blinking caret on M1 based Macs. (#1160)
307 - window.xlib: Avoid XSet/UnsetICFocus calls when _have_utf8 is False. (#1049)
308 - window.win32: Fix application not updating timers and redrawing during moves. (#1125)
309 - shapes: Add missing `thickness` property to Box.
310 - shapes: Add missing docstrings to `Arc` `thickness` property.
311 - shapes: Fix ShapeBase.group setter to only migrate batch when batch is not None. (#1090)
312 - shapes: BezierCurve: fix miter artifacts from #1134. (#1155)
313 - examples: Fix "more" button outline in soundspace example. (#1085)
314 - tests: Fix a rarely-failing audio time test. (#1092)
315 - input.controller: Fix accidentally missed mappings.
316 - graphics.shader: Add missing parent program reference in Uniforms (#1103)
317 - graphics.domain: Fix VertexList.resize method.
318 - text.directwrite: Fix crash with dw_legacy_naming. Check if a custom collection exists before find a font with it.
319
320
321 pyglet 2.0.15
322
323 Changes and Improvements
324 ------------------------
325 - font: Clean up win32 legacy font renderer to remove unused or outdated code.
326 - font: Boxes are now primary update method for TextLayout instead of relying on the vertex_list of the TextLayout.
327 - font: More typing additions.
328 - gui.widgets: Add _set_enabled hook (#1073)
329 - shapes: Add missing BezierCurve thickness property.
330 - graphics: Re-raise error for attributes during shader creation with better error descriptions. (#1076)
331 - docs: Start adding GUI section to the programming guide.
332 - typing: Add stub file for init package to workaround IDE inspection/completion issues with lazy loading modules. (#1077)
333 - examples: Add more visual feedback to the Controller example
334
335 Bugfixes
336 --------
337 - Xaudio2: Fix missing `)` to POINTER which causes XAudio2 to fail to be imported. (#1068)
338 - font.caret: Fix caret positioning and moving the cursor during cursor selection. (#932)
339 - input.controller: User added mappings should take higher priority over default mappings.
340 - input.controller: Properly handle inverted axis as dpad (#1078)
341 - shapes: Added a None check to ShapeBase.delete (#1075)
342 - shapes: Fix Line being off-centered when setting thickness #1083
343 - image: Fix BufferManager.get_depth_buffer() for GL3+.
344
345
346 pyglet 2.0.14
347
348 Changes and Improvements
349 ------------------------
350 - shapes: Add new MultiLine shape. (#1057)
351 - font: Enhance UserDefinedFonts to allow using custom font mapping functions (#1067)
352 - typing: Improve Xaudio2 COM type hints (#1062)
353 - text: Raise Exception when attempting to change IncrementalTextLayout.rotation, as it's not supported.
354 - tests.integration: Add simple sanity tests for creation of all Label, Document, and Layout objects.
355
356 Bugfixes
357 --------
358 - input.win32: Fix broken xinput get_devices and get_controllers methods (#1060)
359 - shapes: Fix incorrect BezierCurve positioning, and Line rotation. (#1084)
360 - app: Fix CFSTR.release() bugs in macOS event loop. (#1059)
361 - font: Fix missing annotation import causing a crash for GDI.
362 - text.caret: Caret now properly works with other Layout content valigns other than top.
363 - text.layout: Ensure all TextLayouts have consistent argument ordering.
364 - text.layout: Fix left, right, bottom, top Layout parameters not being correct.
365 - text.layout: Fix changing anchor not updating the translation.
366 - text.layout: Fix for lines getting garbled in an IncrementalTextLayout when using a content-valign other than top.
367 - text.layout: Fix IncrementalTextLayout setting visible line count instead of total line count.
368 - text.layout: Fix translation sometimes not updating all of the GlyphBoxes.
369 - text.layout: Fix _update_anchor not updating vertex lists of IncrementalTextLayout.
370 - text.layout: Fix _update_flow_glyphs not updating line count when it breaks it's loop.
371 - text.layout: Fix deleting lines at the end of a multilined IncrementalTextLayout not reducing view size.
372 - text.layout: Fix shader to conform to new anchors.
373 - text.layout: Rotation no longer requires destroying the whole layout, it now just updates attributes.
374 - text.layout: Anchor bottom fix for Scrollable/Incremental.
375
376
377 pyglet 2.0.13
378
379 Withdrawn due to Label creation bug.
380
381
382 pyglet 2.0.12
383
384 Bugfixes
385 --------
386 - graphics: fix Batch/Group migration.
387
388
389 pyglet 2.0.11
390
391 Changes and Improvements
392 ------------------------
393 - media: major internal audio cleanup, bugfixes, and improvements on all platforms.
394 - various typing and documentation improvements.
395 - math: add Quaternion class with common methods.
396 - shader: add support for setting and getting arrays in a Uniform via wrapper. (#1005)
397 - shapes: add radius property get and set to Arc class. (#1013)
398 - sprite, shapes: Avoid extra step of updating vertex list after creation. (#1016)
399 - shapes: allow setting the line thickness of Arc and BezierCurve shapes. (#1028, #1030)
400 - text: add Caret.select_all method.
401 - text: performance improvements on instantiation, visibility, anchors, positions. (#1004)
402 - text: add left, right, bottom, top attributes. (#1004)
403 - text: add program argument for custom shaders. (#1037)
404 - text: add get_as_texture function to render text to a new texture. (#1037)
405 - font: skip pre-parsing all system fonts to improve speed. Check only when needed.
406
407 Bugfixes
408 --------
409 - macOS: prevent crash when scanning for Controllers if device.transport is None. (#995)
410 - input: avoid crash when encountering controls with invalid min/max values. (#986)
411 - xlib: fix missed argument in window drag.
412 - media: fix bad behavior when clearing XAudio2AudioPlayer. (#1011)
413 - pyglet.__init__: don't install debug_trace until after module proxies #1046
414 - media: numerous fixes to race conditions and deadlocks across all backends.
415 - experimental: Fix incorrect texture UVs and final positioning for GeometryShader Sprite.
416 - image: add missing binding calls for blit_to/texture methods.
417
418
419 pyglet 2.0.10
420
421 Changes and Improvements
422 ------------------------
423 - sprite: moving Sprites is now about 35% faster (as tested on R5 5600X)
424 - gui: Add TextEntry.focus property to allow programmatic focus control
425 - gui: Allow set TextEntry.width and TextEntry.height
426 - Window: Add experimental Window.get_clipboard_text and Window.set_clipboard_text methods
427 - experimental: Add new pyglet.experimental package for easier wider testing of new ideas
428 - experimental: Add `geoshader_sprite.py` that is more complex, but faster than the standard Sprite
429 - experimental: Add `net` module with Server/Client proof of concept
430 - tests: Add new interactive spot test to visually confirm shapes are working as expected
431 - shapes: Move rotate functionality to ShapeBase class, and allow all shapes to rotate
432 - VertexDomain: bind all buffers to VAO in __init__, and avoid binding each draw
433 - gl.Context: Add a new cached `Context.create_program` method to assist in shader reuse
434 - examples.model.fpscamera: fix drifting input, and other improvements
435 - contrib.qt_sprite_preview.py: Modify to allow using either PySide2 or PyQt5 (#959)
436 - examples: Carry over the soundspace example (#972)
437 - media: The "Silent" audio driver now behaves more like a real driver
438 - text: Add RGB color setter fallback for HTML labels, assuming 255 alpha
439 - shapes: Add a new (unfilled) Box shape
440 - gl: Take threading into account when deleting OpenGL objects (#988)
441
442 Bugfixes
443 --------
444 - gl: Stop storing doomed VAOs in object space (#918)
445 - xlib: Do a better job of detecting UTF8 capability (#520)
446 - media.Player: for Video playback, set context when updating Textures
447 - shapes: fix re-positioning of BezierCurve and Polygon shapes
448 - media.codecs: Fix use-after-frees and memory leaks in the wmf decoder #962
449 - text.Caret: Fix caret blinking (#971)
450 - text.layout: Fix incorrect background color vertex data
451 - Windows: Implement fix for ctypes.wintypes.BYTE in Python < 3.12 (#977)
452 - input.evdev: Fix for pypy3 by removing usage of os.readv
453
454
455 pyglet 2.0.9
456
457 Changes and Improvements
458 ------------------------
459 - app: Passing `None` to pyglet.app.run will disable automatic Window redraws.
460 - window: Add a Window.draw method to help when manually scheduling Window redraws.
461 - shapes: Add a `border` thickness setter to BorderedRectangle.
462 - docs: Various docstring improvements and cleanups.
463 - examples: Add minimal ComputeShader example.
464
465 Bugfixes
466 --------
467 - media: Fix multiple on_eos events from OpenAL players, and major MediaThreads overhaul.
468 - macos: Fix on_key events (#898)
469 - macos: Workaround for CGDisplaySetDisplayMode bug
470 - Xaudio2: Fix packet refill crash when removing a player that was deleted mid callback.
471 - gui: Fix incorrectly named on_mouse_scroll arguments (#904).
472
473
474 pyglet 2.0.8
475
476 Changes and Improvements
477 ------------------------
478 - Add missing OpenGL extensions
479 - Add support for FFmpeg 6.0
480 - Sprite width & height properties are now settable, allowing scaling by pixels
481 - documentation: updates to migration guide, media, and events
482 - shapes: Allow checking if a point is in a shape, using the `in` operator
483
484 Bugfixes
485 --------
486 - clock: Fix clock swallowing ReferenceErrors
487 - documentation: fix some sphinx build issues on ReadTheDocs
488 - font: multiple macOS fixes, including issues with double-byte fonts
489 - input: ensure Xinput controllers dispatch events on the main thread
490
491
492 pyglet 2.0.7
493
494 Changes and Improvements
495 ------------------------
496 - gui: Add alpha value to the Caret's default color.
497 - docs: Some minor rewording of sections, and type fixes.
498
499 Bugfixes
500 --------
501 - Fix broken struct format strings in png and ttf decoders.
502 - text: Clear Group cache when a Layout's Group is changed.
503 - Fix incorrect string formatting in the timer.py example.
504
505
506 pyglet 2.0.6
507
508 Changes and Improvements
509 ------------------------
510 - Initialize AudioDriver when media module is imported, prevent pause on first sound playback.
511 - New TextureArrayBin class for managing TextureArray based atlases.
512 - macOS: implement "file_drop" support for Windows.
513 - macOS: add support for CoreAudio, allowing native mp3, aiff, etc. support without FFMpeg.
514 - macOS: alternative NSApplication based event loop, to avoid missing events on M1 Macs. #794
515 - text: Caret supports RGBA color, in line with other pyglet objects.
516 - Windows: New context manager for handling of safer handling of platform resources.
517
518 Bugfixes
519 --------
520 - Fix numerous bugs remaining with IncrementalTextLayout, with translation, caret, etc. #786
521 - Windows: fix incorrect on_resize values.
522 - macOS: numerous memory leak fixes.
523 - shader: add missing sampler type definitions.
524 - Add missing docstrings, and various documentation fixes.
525
526
527 pyglet 2.0.5
528
529 Changes and Improvements
530 ------------------------
531 - windows.key: add support for extended function keys
532 - Windows now uses "Apartment Threaded" mode for better compatibility with other libraries.
533 - image: allow blanking newly created Textures (skipped by default when creating from image).
534
535 Bugfixes
536 --------
537 - input.macos: Fix ControllerManager hot-plugging on macOS.
538 - font.windows: Fix 32bit crashes with DirectWrite font backend.
539 - math: Fix incorrect calculation in Mat4.look_at method.
540 - image: Fix blitting from regions, caused by invalid unpacking settings.
541
542
543 pyglet 2.0.4
544
545 Changes and Improvements
546 ------------------------
547 - input.win32: ControlManager now supports both DirectInput and XInput devices.
548 - input: Many cleanups and reorganization.
549 - math: Add Vec2.reflect method.
550 - shapes: Add new BezierCurve shape.
551 - gl: Add support for GL sync functions.
552
553 Bugfixes
554 --------
555 - gui: Prevent two TextEntry widgets from being active at the same time. #747
556 - win32: Fix broken lib debug, and multiple related bugs due to deprecated functions.
557 - input: Controller mappings now indexed correctly on macOS and Windows.
558
559
560 pyglet 2.0.3
561
562 Changes and Improvements
563 ------------------------
564 - shapes: Batch and Group can now be changed on shapes after instantiation, similar to Sprites.
565 - font: DirectWrite & Freetype fonts now expose a `filename` attribute. macOS not yet implemented.
566 - Windows: DirectWrite fonts parse font names in a more correct manner. Setting `pyglet.options['dw_legacy_naming']`
567 to True will restore the old behavior, but this may be removed at a later date.
568 - math: Vec types can now be updated with slices (`velocity[:] = 1, 2`)
569 - math: Matrix operations now behave more like GLSL.
570
571 Bugfixes
572 --------
573 - macOS: fix crash when supplying OpenGL Config without explicit major/minor versions #739
574 - To prevent crashing on many OpenGL drivers, Textures are no longer initialized with empty data.
575 - fixed `font_comparison.py` example.
576
577
578 pyglet 2.0.2
579
580 Bugfixes
581 --------
582 - Fix Config.opengl_api being always set to None.
583 - Windows: fix Display.get_default_screen() always returning the first index.
584
585 Changes
586 -------
587 - Remove legacy Xlib backend code.
588 - Add initial support for Compute Shaders.
589 - Windows: a high performance event timer is requested by the PlatformEventLoop.
590
591
592 pyglet 2.0.1
593
594 Bugfixes
595 --------
596 - Windows: only enable DirectWrite color font for supported OSes.
597 - gui: don't unset TextEntry widget focus on mouse motion.
598 - image: Prevent BufferManager crash when stencil buffer query fails #703
599 - macOS input: fix broken get_guid link for Controllers.
600 - math: fix Mat4.look_at. #708
601 - shader: fix vertex_list passing id instead of self to Batch.get_domain
602 - shapes: fix crash when setting Arc.visible = False
603
604 Changes
605 -------
606 - shapes: add Arc.start_angle setter
607 - graphics: Various default Group changes to help improve Group consolidation
608
609
610 pyglet 2.0.0
611 Major Release
612
613 Changes
614 -------
615 - pyglet has been upgraded to use use OpenGL 3.3+ core functionality.
616 - All high level modules have been internally updated to use modern OpenGL.
617 - A large number of cleanups and optimizations.
618
619 Features
620 --------
621 - New `pyglet.math` module including common Matrix and Vector operations.
622 - New `pyglet.graphics.shader` module for easily managing Shader objects.
623 - New OpenGL bindings, and binding tools.
624 - New Game Controller API for modern game controllers, including rumble and automapping.
625 - New Framebuffer classes.
626
627
628 pyglet 1.5.27
629
630 Bugfixes
631 --------
632 - Windows - stop setting HWND_TOPMOST for fullscreen windows
633 - obj decoder - Fix GL_SHININESS (Ns) value parsing
634 - Fix broken property setter for shapes.Polygon (#676)
635 - Fix keys getting "stuck" in KeyStateHandler when Window loses focus (#682)
636
637
638 pyglet 1.5.26
639
640 Bugfixes
641 --------
642 - Windows - Backport WIC codec changes from 2.0
643 - Fix library loading when passing multiple library names.
644
645
646 pyglet 1.5.25
647
648 Bugfixes
649 --------
650 - Windows - Prevent ImportError when attempting to load more than one DLL version.
651
652
653 pyglet 1.5.24
654
655 Features
656 --------
657 - Add initial support for FFmpeg 5.0
658 - Windows - The GDI font renderer now supports Unicode font names.
659
660 Bugfixes
661 --------
662 - Windows - Fix `on_resize` event not dispatched when `set_size` is called.
663 - Documentation updates, fixed links, and corrections.
664 - Windows - Fix crash when font characters are more than one codepoint in length.
665
666
667 pyglet 1.5.23
668
669 Features
670 --------
671 - Windows - Add `win32_disable_shaping` option. This can improve font performance when shaping isn't required.
672 - Backport the latest pyglet.math module changes from the development branch.
673
674 Bugfixes
675 --------
676 - Linux - Fix crash when Gstreamer Gst bindings are not installed.
677 - Fix math.Vec4.clamp method.
678
679
680 pyglet 1.5.22
681
682 Features
683 --------
684 - If the PyOgg module is installed, it can be used for loading various Vorbis audio formats.
685 - Add a new CameraGroup example, to show implementing a Camera with pyglet's Groups.
686 - Add `angle` and `start_angle` property/setter to `shapes.Sector`.
687 - Windows - new WMF based encoder for faster saving of common image formats.
688
689 Bugfixes
690 --------
691 - Fix indexing error when setting text.Label.opacity (#481)
692 - Windows - Fix shift modifier + exclusive mouse mode (#472)
693 - Linux - Prevent non-Tablet devices from being detected as Tablets (#491)
694 - Windows - Prevent distortion with multiple XAudio2 audio sources (#515)
695 - Fix frame dropping bug with FFMpeg decoder.
696 - Windows - Fix Video alpha channel for WMF decoder.
697 - Various documentation and docstring fixes. Thanks everyone!
698
699
700 pyglet 1.5.21
701
702 Features
703 --------
704 - A new MovableFrame that allows repositioning Widgets when a specified key modifier is held.
705 - Text Layouts now have `opacity` and `visible` attributes, similar to Sprites.
706 - Add new shapes.Ellipse class.
707
708 Bugfixes
709 --------
710 - Xlib - don't enable certain Window options if transparency is not enabled. (#454)
711 - Windows - Fix issue with some fonts where glyphs overhanging their advance would be cut off.
712
713
714 pyglet 1.5.20
715
716 Features
717 --------
718 - Experimental support for transparent and overlay windows on Linux and Windows.
719 - Shapes - Allow rotation and changing of border color for the BorderedRectangle.
720
721 Bugfixes
722 --------
723 - Xlib - Fix the mouse Y position being off by 1-pixel.
724 - Windows - Fix gapless audio playback on the XAudio2 backend.
725
726
727 pyglet 1.5.19
728
729 Features
730 --------
731 - Add new 'Sector' class to shapes module, for creating sectors of a circle.
732
733 Bugfixes
734 --------
735 - Ensure that the FFmpegDecoder returns the requested number of bytes.
736 - When subclassing EventHandlers, ensure that possible TyperErrors give correct feedback.
737 - Fix missing name attribute on FreeTypeMemoryFace object when adding fonts.
738
739 Maintenance
740 -----------
741 - Re-introduce background threads for refilling Player buffers.
742 - Allow directly setting Widget values.
743 - Add docstrings for gui.widgets.
744 - Refresh of experimental/win32priority.py.
745
746
747 pyglet 1.5.18
748 Bugfix release
749
750 Bugfixes
751 --------
752 - If XAudio2 device creation fails, catch exception so that the next driver can be tried.
753 - Fix dangling file pointers in GStreamer decoder.
754 - Expose font.name attribute to show the font family name.
755 - Un-associate queued Source from a deleted Player instance (#256)
756 - Fix circular import when trying to create a Windows in 'headless' mode.
757 - Un-associate StreamingSources from deleted Player instances (#256)
758 - Update pypng lib to avoid deprecated functions (#405)
759
760
761 pyglet 1.5.17
762 Bugfix, feature and maintenance release
763
764 Bugfixes
765 --------
766 - FFmpeg decoder add FF_INPUT_BUFFER_PADDING_SIZE to buffers.
767 - Add missing DI8DEVTYPE_SUPPLEMENTAL joystick device type.
768 - Fix bool clamping causing crash with DirectWrite text decoder.
769
770 Maintenance
771 -----------
772 - Change IncrementalTextLayout to use glScissor instead of glClipPlane.
773 - Raise warning on Window creation if the GPU drivers do not support OpenGL 2.0
774
775 Features
776 --------
777 - Add a new `shapes.Star` shape.
778
779
780 pyglet 1.5.16
781 Bugfix and feature release
782
783 Bugfixes
784 --------
785 - 3d model obj decoder supports multiple material types
786 - Fix GStreamerSources not being garbage collected #283
787 - Fix ScrollableTextLayout not respecting anchors/alignment.
788
789 Features
790 --------
791 - New DirectWrite based font loader. Enable with `pyglet.options["advanced_font_features"] = True`
792 - Add `position` property to Text Layouts, to mimic other classes.
793
794
795 pyglet 1.5.15
796 Bugfix and maintenance release
797
798 Bugfixes
799 --------
800 - shapes.Circle segment calculation will always use a minimum of 14 segments.
801 - shapes.Arc is now made from line segments, and by default has unconnected ends.
802 - Windows - Use the internal keystate to determine the mod shift rather than relying on GetKeyState
803 which relies on another event that may be called after WM_INPUT.
804
805 Maintenance
806 -----------
807 - Various Headless backend and EGL work.
808
809
810 pyglet 1.5.14
811 Bugfix and feature release
812
813 Bugfixes
814 --------
815 - Fix interlaced mp3 decoding in GStreamer backend.
816 - Skip functions marked as OBJC_ARM64_UNAVAILABLE for new ARM Macs.
817
818 Features
819 --------
820 - Add a `WaveEncoder` for saving audio Sources to disk.
821
822
823 pyglet 1.5.13
824 Bugfix and feature release
825
826 Bugfixes
827 --------
828 - Fix crash on looping video with no sound (#322)
829 - OSX: Replace remaining usage of `find_library` to fix Big Sur issues (#332)
830 - Windows: Fix default orientation for the XAudio2 listener.
831
832 Features
833 --------
834 - Add new `shape.Triangle` shape.
835 - Windows: `on_key_press` now dispatches unique events for left/right Shift keys.
836
837
838 pyglet 1.5.12
839 Bugfix and feature release
840
841 Bugfixes
842 --------
843 - Remove usage of deprecated `parser` module. (#312)
844
845
846 pyglet 1.5.11
847 Bugfix release
848
849 Bugfixes
850 --------
851 - Added hardcoding of library paths for Big Sur temporary fallback.
852 - Removed some legacy Python 2 code from the documentation.
853
854
855 pyglet 1.5.10
856 Bugfix release
857
858 Bugfixes
859 --------
860 - Fix library loading on OSX Big Sur. Currently this only works with the system version of Python.
861 Non OSX system versions will not yet work, pending upstream fixes: https://bugs.python.org/issue41100
862
863
864 pyglet 1.5.9
865 Bugfix and feature release
866
867 Bugfixes
868 --------
869 - Explicitly cast media.synthesis data to bytes to prevent issues on some audio drivers.
870 - Refactor WIC module to work with new com module. (#298)
871 - Prevent crash when setting `shapes.Circle.visible`. (#294)
872 - Remove deprecated `tostring` calls in PIL/PNG decoders to prevent crash on Python 3.9. (#295, #302)
873
874 Improvements
875 ------------
876 - Add new Xaudio2 driver. (#288)
877 - Refactor pyglet's lazy module loading to better support code inspection.
878 - Added new `TextEntry` widget.
879
880
881 pyglet 1.5.8
882 Bugfix and feature release
883
884 Bugfixes
885 --------
886
887 Improvements
888 ------------
889 - Added new experimental `gui` module. Currently this only contains basic widgets.
890 - Added new `Group.visible` property, to toggle rendering of entire Groups when used in a Batch.
891 - Added `Sprite.paused` and `Sprite.frame_index` helper properties for controlling Animations.
892 - Reorganized the examples folder.
893 - Added new CenteredCamera example.
894 - Backport pyglet.math from 2.0, for more exposure and testing.
895 - Consolidate Codec logic into base class to reuse among various modules.
896
897
898 pyglet 1.5.7
899 Bugfix release
900
901 Bugfixes
902 --------
903 - Fix crash when no audio device is available.
904 - Prevent `__del__` spam in DirectSound buffers and Wave decoder.
905 - Explicitly cast warnings.warn message to a str to prevent numba error.
906
907
908 pyglet 1.5.6
909 Bugfix and feature release
910
911 Bugfixes
912 --------
913 - Fix infinite recursion error on OSX. (#5)
914 - The on_mouse_scroll event no longer clamps to int, preventing lost motion on trackpads.
915 - Prevent traceback when DirectSound buffers are garbage collected on exit.
916 - Fix StaticSource playback with WMF decoder (streaming=False).
917 - Fix colorspace for WMF video decoding.
918 - Prevent crash on garbage collection for FFmpeg decoder.
919
920 Improvements
921 ------------
922 - New image decoder leveraging Windows Imaging Component (WIC).
923 - TextureAtlas/Bins now have a `border` argument for leaving n-pixels of blank space around
924 images when adding. By default the `resource` module leaves a 1-pixel space around images.
925 - Many small documentation fixes and corrections.
926
927
928 pyglet 1.5.5
929 Bugfix and feature release
930
931 Bugfixes
932 --------
933 - GStreamer decoder clamped to 16bit sample width, since the default OpenAL backend on Linux does
934 not support anything higher.
935
936 Improvements
937 ------------
938 - shapes module: added `Circle.rotation` property and blending to standalone shape `draw` methods.
939 - shapes module: added missing `delete` and `__del__` methods.
940 - The ImageMouseCursor has a new `accelerated` parameter to allow custom mouse points to be drawn
941 natively on Windows and Linux.
942
943
944 pyglet 1.5.4
945 Bugfix and minor feature release
946
947 Bugfixes
948 --------
949 - Avoid WMFDecoder crash when mixing pyglet with other toolkits. (#174)
950 - Prevent EventDispatcher subclasses from hiding AttributeError exceptions.
951
952 Improvements
953 ------------
954 - Added `pyglet.graphics.shapes` module for creating simple 2D shapes.
955
956
957 pyglet 1.5.3
958 Bugfix release
959
960 Bugfixes
961 --------
962 - Fix memory leak caused by not freeing stale buffers and textures.
963
964
965 pyglet 1.5.2
966 Bugfix and minor feature release
967
968 Bugfixes
969 --------
970 - Fix WMF decoder for pre-Windows 8 systems.
971 - Fix WMF decoder loading from file-like objects for Windows Vista.
972 - Fix WMF decoder crashing when attempting to seek past file duration.
973
974 Changes
975 -------
976 - Allow GStreamer and FFmpeg decoder to load from file-like objects.
977
978
979 pyglet 1.5.1
980 Bugfix and minor feature release
981
982 Bugfixes
983 --------
984 - Fix issue with changing Label positions by fractional values.
985 - Avoid performance issue due to unnecessary context switching with single Window programs.
986 - Fix crash on Player.next_source when playing a video with no audio track.
987 - Fix crash when disconnecting a Joystick on Windows.
988 - Prevent media Players from seeking to negative timestamps.
989 - Fix OpenAL audio driver not dispatching events.
990
991 Changes
992 --------
993 - text.TextLayouts are no longer bound to int positioning.
994 - Raise exception if attempting to import from legacy Python.
995 - Add GStreamer decoder for compressed audio on Linux.
996 - Add Windows Media Foundation decoder for compressed audio on Windows.
997
998 Improvements
999 ------------
1000 - New "file_drops" Window argument to allow drag and drop of files. This is complimented
1001 by a new `Window.on_file_drop` event, which returns the mouse position and file path.
1002
1003
1004 pyglet 1.5.0
1005 Bugfix and Maintenance release
1006
1007 Bugfixes
1008 --------
1009 - Removed global dubug function access in __del__ methods to prevent smooth shutdown.
1010 - Fix regression not allow SourceGroups to be queued on Player objects. (#140)
1011
1012 Changes
1013 -------
1014 - Support for Python 2 has been dropped. Python 3.5 is now the minimum supported version.
1015
1016
1017 pyglet 1.4.10
1018 Bugfix release
1019
1020 Bugfixes
1021 --------
1022 - Explicitly set Window size in game example. (#116)
1023 - Prevent crash when checking if FFMpeg is available. (#121)
1024
1025
1026 pyglet 1.4.9
1027 Bugfix and small improvement release
1028
1029 Bugfixes
1030 --------
1031 - Fix TextLayoutGroup consolidation when using custom Groups for Labels.
1032 - FFmpeg: Cast 'date' to string instead of int in file_info. (#109)
1033 - Fix ctypes error caused by incorrectly specifying a Union as an argtype. (#112)
1034
1035 Improvements
1036 ------------
1037 - Added a simple 2D Camera example to examples/camera.py in the repository.
1038 - OSX: OpenGL context creation is more lenient with requested versions.
1039
1040
1041 pyglet 1.4.8
1042 Bugfix release
1043
1044 Improvements
1045 ------------
1046 - Add support for `conda`-installed FFmpeg on macOS (#xx)
1047
1048 Bugfixes
1049 --------
1050 - FFmpeg: fix an occasional crash during seek operation.
1051 - Revert Event Dispatcher changes from v1.4.7 due to possible bug.
1052 - Linux: Warn on failure to set vsync, instead of crashing.
1053
1054
1055 pyglet 1.4.7
1056 Bugfix and small improvement release
1057
1058 Bugfixes
1059 --------
1060 - Allow creation of non-power-of-two compressed Textures. (#78)
1061 - Fix EventDispatchers suppressing `AttributeError`s. (#87)
1062 - Fix external lib loading on Windows under Python 3.8. (#90)
1063
1064 Improvements
1065 ------------
1066 - Windows: Add support for `Desktop Window Manager` composition for smoother rendering.
1067 - TextureAtlases allow a single pixel border to avoid rendering artifacts.
1068 - Add support for `conda`-installed FFmpeg on macOS (#92)
1069
1070
1071 pyglet 1.4.6
1072 Bugfix release
1073
1074 Bugfixes
1075 --------
1076 - Fix PNG encoder saving upside-down images due to incorrect pitch. (#83)
1077 - pyglet.info shows more platform specific information.
1078
1079
1080 pyglet 1.4.5
1081 Bugfix and small improvement release
1082
1083 Bugfixes
1084 --------
1085 - Fix Allocator creating orphaned regions.
1086 - Allow npot compressed texture loading.
1087 - Fix MachOLibraryLoader failing on lib names containing extra "."s.
1088
1089 Improvements
1090 ------------
1091 - Documentation has been rebased on the standard RTD theme.
1092 - Other documentation clarifications and improvements.
1093 - New `MouseStateHandler` convenience class.
1094
1095
1096 pyglet 1.4.4
1097 Bugfix release.
1098
1099 Bugfixes
1100 --------
1101 - Fixed incorrect glXSwapIntervalEXT arguments for Xlib contexts.
1102
1103
1104 pyglet 1.4.3
1105 Bugfix release.
1106
1107 Bugfixes
1108 --------
1109 - Fix crash due to inconsistent API when changing Label or HTMLLabel color. (#45)
1110 - Add support for GLX_EXT_swap_control on Linux platforms.
1111
1112
1113 pyglet 1.4.2
1114 Bugfix and cleanup release.
1115
1116 Improvements
1117 ------------
1118 - Removed broken projects from /contrib
1119 - Update setup.py with project_urls and long_description.
1120 - Added Window.get_pixel_ratio function for calculating scaling on HiDPI displays.
1121 - Start some code quality improvements, such as whitespace removal, star imports, etc.
1122
1123 Bugfixes
1124 --------
1125 - Fix invalid argtype in image GDIplus decoder.
1126 - Change sys.is_epydoc to sys.is_pyglet_doc_run to prevent crashing with Anaconda, etc. (#9)
1127 - Prevent gl_info.get_version from crashing with blank version string. (#36)
1128
1129
1130 pyglet 1.4.1
1131 ============
1132 Bugfix release.
1133
1134 Bugfixes
1135 --------
1136 - #256 Fix aliases for Window.get_viewport_size/get_framebuffer_size.
1137
1138
1139 pyglet 1.4.0
1140 ============
1141 Major release adding several new features and removing some long deprecated methods and attributes.
1142 There are also many small bugfixes, and documentation corrections. Thanks to everyone who submitted
1143 a pull request or contributed towards this release!
1144
1145 Of special note, is that the 1.4 release will be the last to support Python 2. It will also be the
1146 last release to support Legacy OpenGL (2.x). Future pyglet releases will be Python 3 only, and will
1147 require at least OpenGL 3 support. If you are using pyglet on legacy systems, don't worry. The 1.4
1148 branch will remain available for download. Bugfixes will be backported as long as someone is willing
1149 to do so, but new features on the 1.4 branch are unlikely.
1150
1151 New features
1152 ------------
1153 - Added preliminary support for loading 3D models from obj files.
1154 - Switched from avbin to ffmpeg for decoding media files.
1155
1156 Improvements
1157 ------------
1158 - Many long deprecated methods and attributes have now been removed. These are all small
1159 changes, so updating an old codebase is straightforward. The following items were removed:
1160 * `sprite.set_position`. Set the X, Y coordinates via `sprite.position` instead.
1161 * `next` on the Player class. This has been replaced by `next_source`.
1162 * `clock.ClockDisplay`. Use `window.FPSDisplay` instead.
1163 * `clock.test_clock`. This relied on deprecated behavior, and is superseded by unit tests.
1164 * `font.text`. Use the `text` module instead for displaying text.
1165 * `window.Platform` API. Use `canvas.get_display` or `canvas.Display` instead.
1166 * `font.Win32Font` class. This has been replaced by `font.GDIPlusFont`, which was already default.
1167 The class still remains, as it's subclassed by `font.GDIPlusFont`. The two should be merged.
1168 * `window.event.WindowExitHandler`. This functionality is now handled by the Window itself.
1169 * `image.ImageData.data` properties. Use the `get_data` and `set_data` methods instead.
1170 * `image.ImageData.image_data` property. Use the `get_image_data` method instead.
1171 * `image.ImageData.texture` property. Use the `get_texture` method instead.
1172 * `image.ImageData.mipmapped_texture` property. Use the `get_mipmapped_texture` method instead.
1173 * `image.ImageData.texture_sequence` property. Use the `get_texture_sequence` method instead.
1174 * `image.Texture.delete` method. Textures are automatically released through GC.
1175 * `image.Texture.image_data` property. Use the `get_image_data` method instead.
1176 - Playback of 24bit audio is now supported in the PulseAudio, and DirectAudio drivers. The
1177 bundled Python Wave codec can also support loading of 24bit wave files. Please note that the
1178 OpenAL driver does NOT support 24bit audio playback.
1179 - Wave decoding is now based on the Python standard library `wave` module. This is slightly more
1180 forgiving when loading slightly non-compliant files.
1181 - Default texture min and mag filtering can be set on the Texture class. For example:
1182 `pyglet.image.Texture.default_min_filter = GL_LINEAR`
1183 `pyglet.image.Texture.default_mag_filter = GL_LINEAR`
1184 - Audio Player and Event classes now take advantage of weak references to ensure proper cleanup of
1185 resources.
1186 - The `pyglet.resource` module now supports loading of multi-volume Zip files.
1187
1188 Bugfixes
1189 --------
1190 - #253 Add missing self argument to Window event dispatcher methods. Fixes linter warnings.
1191 - #226 Loading Animations failed when a decoder was manually specified.
1192 - #218 Add None-check to xlib `Window.activate` to prevent crash if window is not yet created.
1193 - #190 Remove all usage of `past.basestring`.
1194 - #189 Setting the volume on audio Listeners should work on Python3 in all cases now.
1195 - #170 Fix for UINT point on Windows when using 32-bit Python.
1196 - #167 IndexedVertexDomains with non-1 primcount will now draw correctly on 64bit OSs.
1197 - #168 Fix StopIteration errors due to changes in behavior in Python 3.7. See PEP 479.
1198 - #169 Fix slow Window.flip() on Windows.
1199
1200
1201 pyglet 1.3.1
1202 ============
1203 Bugfix release.
1204
1205 Bugfixes
1206 --------
1207 - #158 Fix mouse events in mouse exclusive mode on Windows.
1208 - #105 Crashes in PulseAudio;
1209 - #163 Workaround for running inside Spyder;
1210 - #45 Expose viewport size for use on HiDPI screens;
1211 - #15 Respect keyboard layout on macOS;
1212
1213
1214 pyglet 1.3.0
1215 ============
1216 This major release takes Python 3 support to the next level. The entire codebase is now compatible
1217 with both Python 2 and Python 3 without the need for 2to3. This should make it easier to develop
1218 pyglet and pyglet apps for both Python versions.
1219
1220 The rest of this release is focussed on code quality and test coverage. There are no API breaking
1221 changes, and only a few minor additions. Dozens of bugs have been fixed, and the codebase is in a
1222 better state for future improvement and maintainability.
1223
1224 New features
1225 ------------
1226 - The procedural audio module is now more usable. This module allows synthesis of basic
1227 waveforms, such as sine, square, triangle, sawtooth, and simple FM (two operator sine).
1228 In addition, several basic amplitude envelopes are now available to apply to generated audio.
1229 These include ADSR, linear decay, tremolo, and flat envelopes.
1230
1231 Improvements
1232 ------------
1233 - Improved font rendering for fonts with negative bearing (#99)
1234 - Sprites now have `scale_x` and `scale_y` attributes, allowing for aspect ratio changes. The
1235 existing `scale` attribute sets the overall scaling, and functions as before.
1236 - Sprites have a new `update` method which allows simultaneous changing of position, scale, and
1237 rotation. This reduces some overhead when changing multiple attributes at once.
1238 - The pyglet.resource module now defaults to a 2048x2048 texture for its internal texture atlas,
1239 but will fall back to the maximum available size that the GPU can provide.
1240 - All modern joysticks and game controllers should now be detected on Linux and Windows.
1241 - Refactored and reimplemented pyglet.media. Many improvements to stability. Different drivers
1242 should now behave more similar.
1243 - WM_CLASS hints are now set on Linux. On modern Linux desktop environments and window managers,
1244 this allows for proper tracking of pyglet applications. Previously, pyglet apps may show up as
1245 "Unknown" under the active window list in the environment. The window class hints are set
1246 to the same name as the Window caption, but will fall back to "pyglet" if the Window caption
1247 contains non-ascii characters.
1248 - Vastly improved documentation and programming guide.
1249
1250 Bugfixes
1251 --------
1252 - Limit the minimum window size 1x1 pixel, preventing an OpenGL exception when resizing (#49).
1253 - Font module no longer leaks memory when text is changed (#66).
1254 - Fix crash on Python 2 when sys.argv[0] has non-ASCII characters (#74).
1255 - Windows: Fix crash when opening multiple windows in succession (#81).
1256 - Windows: Fix local font loading (#100).
1257 - Windows: Italic fonts no longer render parts of their neighbors.
1258 - Prevent memory leak from orphaned StreamingSources in long running applications (#103).
1259 - Windows: Fix kerning regression (#115)
1260 - Windows: Window.set_icon no longer fails when given a Texture instead of ImageData (#136)
1261
1262
1263 pyglet 1.2.3
1264 ============
1265 Minor bugfix release.
1266
1267 Bugfixes:
1268 - Windows: Fix issue where ALT key causes app to hang.
1269 - Media: Many fixes to PulseAudio and OpenAL media drivers (a.o. #26, #27).
1270 - OSX: Fix stealing the menu when already present in cocoa.
1271 - Fix multi texturing support (#28).
1272 - OSX: Prevent segfault with multiple runs (#37/GC728)
1273 - ArchLinux: Fix segmentation fault when using gdk_pixbuf (#25)
1274
1275
1276 pyglet 1.2.2
1277 ============
1278 Minor bugfix release. Includes documentation updates for deprecated code.
1279
1280 Bugfixes
1281 --------
1282 - BB#21: X11: Error on fontconfig cache eviction
1283 - BB#23: Windows: Disable ARB context on Intel devices.
1284
1285
1286 pyglet 1.2.1
1287 ============
1288 Minor bugfix release. Fixes some issues on Linux.
1289
1290 Bugfixes
1291 --------
1292 - BB#18: X11: Events not processed while animating
1293 - X11: on_resize event not triggered
1294 - X11: Fix deletion of PulseAudioPlayer.
1295
1296
1297 pyglet 1.2
1298 ==========
1299 The major 1.2 release brings pyglet to Python 3. pyglet now also runs on 64-bit operating systems
1300 Linux, Windows and OS X. The OS X layer has switched to Cocoa.
1301
1302 Backwards-incompatible API changes:
1303 * renamed Label parameter 'halign' to 'align', fix for issue:460
1304 * remove unused module 'glext_missing' - everything should already be in 'glext_arb'
1305
1306 Python support
1307 --------------
1308 - 2.6 and up
1309 - NEW: 3.3 and up
1310
1311 Platform support
1312 ----------------
1313 - Improved win32 support
1314 - Windows: DirectInput support
1315 - OSX: Joystick support
1316 - Linux: GL 3 support
1317 - Linux: ALSA replaced by PulseAudio
1318 - Windows: Tablet API support
1319 - OSX: Tablet support
1320 - Linux: Tablet support
1321 - OSX: Cocoa support
1322 - OSX: Support for PyObjC 2.3
1323
1324 Bugfixes
1325 --------
1326 - 294: pyglet.image.get_texture(rectangle=True) returns GL_TEXTURE_2D for tex.target if image is
1327 POT
1328 - 345: image mouse cursor shows up after fullscreen switch
1329 - 347: vowel in Thai language did not display
1330 - 353: X11: Wrong keysym reported in on_key_press/release if shift pressed.
1331 - 355: wraptypes does not wrap hex or octal enum values properly
1332 - 357: Non-conforming ATI cards missing glGenBuffers
1333 - 358: ResourceNotFoundException has spelling error in message (in pyglet 1.1.2)
1334 - 361: xlib: initial mouse dx/dy incorrect if mouse on window
1335 - 362: Support for generic attributes are broken
1336 - 363: pyglet.resource no longer finds files within directories
1337 - 368: permission issues with some doc and example files
1338 - 371: pyglet.sprite uses integer coordinates for drawing
1339 - 376: Windows Installer Ambiguous about Supported Python Versions
1340 - 377: on_mouse_scroll not being called with latest pyglet revision (from svn) on vista64
1341 - 379: pyglet.media.drivers.alsa not in trunk r2421
1342 - 380: mac osx HID not working
1343 - 381: Missing attribute in VertexDomain when changing the group attribute of a sprite multiple
1344 times
1345 - 382: evdev device name unicode problem
1346 - 387: input events stop being processed
1347 - 391: code cleanups for pyglet.image
1348 - 392: code cleanups for text and font
1349 - 393: code cleanup for input and app
1350 - 405: Virtual key codes are not mapped in OS X
1351 - 407: random crash with pyglet.clock.tick()
1352 - 408: IncrementalTextLayout, when deleted, still renders into its batch on document update
1353 - 409: pyglet.media.have_avbin missing in 1.2dev (svn rev 2445)
1354 - 411: Problem loading gif animation with alpha
1355 - 413: TileableTexture interchanges red and blue in some JPGs
1356 - 414: Carbon platform missing support for multiple mouse buttons during drag
1357 - 416: Endless loop in pyglet.resource.reindex()
1358 - 418: Vertical mouse scroll problem under windows
1359 - 422: Documentation: pyglet.resource and pats
1360 - 423: glMultiDrawElements called with incorrect arguments in method IndexedVertexDomain.draw
1361 - 424: Small documentation error in document layout model page
1362 - 426: Attempt to load resource from zipfile with no internal directory structure fail
1363 - 429: Exception when attributed text contains multiple trailing newlines
1364 - 439: EVENT_CLOSE test can't be passed
1365 - 440: tests/window/WINDOW_SET_MOUSE_SYSTEM_CURSOR does not exit when escape is pressed
1366 - 443: after the test window.EVENT_SHOW_HIDE process must be killed
1367 - 444: tests/resources/RES_LOAD_IMAGE opens a slew of windows and doesn't close them
1368 - 460: multiline label will not center align
1369 - 463: Min/Mag filter cannot be used with pyglets texture
1370 - 467: Setting the mouse position should be exposed to pyglet users
1371 - 471: Exception when clearing text of FormattedDocument with IncrementalTextLayout
1372 - 485: Wrapper generation (e.g. gengl.py) fails to parse L-prefaced character literals
1373 - 487: vendor specific keys on linux are crashing pyglet
1374 - 493: GdkPixbuf2ImageDecoder unable to decode images smaller than 1kb
1375 - 496: Another OpenGL 1.5 non-conforming video card
1376 - 510: Win-amd64 issues
1377 - 512: Fix missing parenthesis in docs
1378 - 517: tests/window/CONTEXT_SHARE.py glIsList exceptions
1379 - 519: Windows test log errors
1380 - 523: some incorrect key constants in the programming guide
1381 - 524: pyglet 1.2dev events do not fire on OS X
1382 - 529: pyglet crashes on FreeBSD-8/amd64 if fonts are used. [patch included]
1383 - 533: pyglet.media.Player broken on Python3
1384 - 536: Pitch change functionality with pulseaudio driver.
1385 - 538: deleting text before an InlineElement fails to adjust its position properly, causes
1386 tracebacks if style changed later
1387 - 551: image encoder fails on python 3
1388 - 552: Memory leak in pyglet.image.load
1389 - 558: Patch for /doc/programming_guide/graphics.txt
1390 - 565: Race condition leads to crash calling glDeleteBuffers
1391 - 570: xlib 100% CPU usage after post_event
1392 - 571: pyglet fails for sys.platform=='linux3'
1393 - 572: Patch for /pyglet/lib.py
1394 - 579: Failing to load libraries that exist but have fatal problems is _silently_ ignored on Linux
1395 and OS X.
1396 - 580: image.DDS_RGB_DXT1_LOAD (and similar) throw ImageException
1397 - 610: Wrong messages in the NOTICE file
1398 - 611: Mouse event incorrect on OS-X
1399 - 616: Mention font.Font.have_font() in proguide, and expose font.have_font() for convenience
1400 - 624: mouse_motion events get delivered to cocoa windows on start
1401 - 625: osx platform segmentation fault when opening input devices
1402 - 630: pyglet 1.2alpha1 with Python 3.2
1403 - 637: 'pulse' audio driver sets the volume to 100%
1404 - 638: Player set_pitch crashes with 'directaudio' driver
1405 - 653: Unsupported PNG color type: 3
1406 - 657: gdiplus.py : n_delays must be long, not float.
1407 - 659: image.save method doesn't catch correct Exception
1408 - 660: platform_event_loop.post_event doesn't work for Cocoa loop
1409 - 661: Player.next is converted to Player.__next__ for python3
1410 - 662: gamepad cannot be found in linux
1411 - 664: bug in font/win32query.py on win x64 (its not always occur )
1412 - 665: remove_handler does not remove handler
1413 - 668: Sync pypng with upstream
1414 - 671: Support for local libraries
1415 - 672: User preferences shouldn't use ~/.ApplicationName/ but ~/.config/AplicationName/ in Linux
1416 - 673: Documentation building requirements are not documented
1417 - 674: README errors
1418 - 681: Tuple slice on ImageGrid documented but not implemented
1419 - 682: Documentation Link on homepage is incorrect.
1420 - 683: Improving "contribute" page
1421 - 684: Displaying large font fails under very specific conditions
1422 - 687: Exposing _draw_list_dirty in batch API.
1423 - 688: Doc folder refactorization
1424 - 692: docstring style modifications
1425 - 696: 2to3 convertsizip_longest to zip_longest
1426 - 699: SolidColorImagePattern and CheckerImagePattern appear to fail in python3 and pyglet1.2a
1427 - 704: [patch] py3 compatibility problem in pyglet/graphics/__init__.py
1428 - 710: resource path when using
1429 - 715: Patch for /pyglet/image/codecs/dds.py
1430 - 716: FIX: Pulseaudio / ctypes on Py3k
1431 - 718: False "ImageDecodeException: Not a GIF stream" in python3.x
1432 - 719: .bmp files traceback with py3
1433 - 720: tests/image compatibility StringIO vs BytesIO
1434 - 721: compatibility py3 for tests/image TEXTURE_3D.py and TEXTURE_GRID.py
1435 - 722: TypeError in graphics test suite with python3.x
1436 - 723: py3 compatibility in tests/image MATRIX_RGB.py, MATRIX_RGBA.py
1437 - 724: py3 compatibility for png s (bytes vs str)
1438 - 727: tabs looking bad, especially in monospace fonts
1439 - 729: "ImportError: No module named future" in image.MATRIX_RGB test suite.
1440 - 731: Expectations about supported font formats
1441 - 734: spurious 'class plain' showing in sphinx rendering of doc/programming_guide/text.txt
1442 - 735: py3: BytesIO and disambiguate div for pyglet/image/__init__.py
1443 - 736: pyglet media fails to close PulseAudio instances
1444 - 737: 1.2 programming guide mentions ALSA and not Pulse
1445 - 739: FIX: Prevent user mouse stupidity
1446 - 744: expectations and exploration of fonts in Windows
1447 - 747: Document pyglet's "shadow window" functionality
1448 - 754: tests/test.py -- AttributeError: 'module' object has no attribute 'platform' (i.e. pyglet
1449 has no platform)
1450
1451 New features
1452 ------------
1453 - New eventloop implementation
1454 - Quartz image decoder
1455 - Improved documentation
1456 - new API: font.have_font(name) return True if named font is installed