Skip to content

Commit 7243794

Browse files
committed
Update news.rst
1 parent 2df7d9f commit 7243794

File tree

1 file changed

+60
-1
lines changed

1 file changed

+60
-1
lines changed

doc/news.rst

+60-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,65 @@ Release News
22
============
33
This describes the latest changes between the PySDL2 releases.
44

5+
0.9.10
6+
------
7+
8+
Released on XXXX-XX-XX.
9+
10+
New Features:
11+
12+
* Documented and improved the internal :func:`sdl2.ext.byteify` and
13+
:func:`sdl2.ext.stringify` functions.
14+
* Re-documented and improved input handling and type checking for the
15+
:func:`sdl2.ext.subsurface` function.
16+
* Added automatic inference of compression format from the filenames of
17+
.tar archives for the :mod:`sdl2.ext.resources` submodule.
18+
* Added up-to-date documentation for the :mod:`sdl2.sdlttf` and
19+
:mod:`sdl.sdlimage` modules.
20+
* Added a new class :class:`sdl2.ext.Texture` for creating renderer textures
21+
from SDL surfaces, as a basic wrapper for the :obj:`sdl2.SDL_Texture`
22+
structure.
23+
* Added a new function :func:`sdl2.ext.set_texture_scale_quality` that globally
24+
sets the scaling method (nearest-neighbour, linear filtering, or anisotropic
25+
filtering) to use for new SDL textures.
26+
* Added a new method :meth:`sdl2.ext.Renderer.reset_logical_size` to reset a
27+
Renderer's logical size to its original value.
28+
* Added a new method :meth:`sdl2.ext.Renderer.destroy` to safely destroy and
29+
free memory associated with a Renderer after it is no longer needed.
30+
* Added support for subpixel precision (i.e. using float coordinates)
31+
with the drawing and copying methods of the :class:`~sdl2.ext.Renderer` class
32+
when using SDL2 2.0.10 or newer.
33+
* Added a new function :func:`sdl2.ext.surface_to_ndarray` that returns a
34+
non-transposed copy of a given SDL surface as a 2D or 3D Numpy array.
35+
* Added new functions :func:`sdl2.ext.load_bmp` and :func:`sdl2.ext.load_img`
36+
for importing image files using SDL2 and SDL_image, respectively. Both new
37+
functions automatically convert the obtained surfaces to the ARGB8888 pixel
38+
format by default.
39+
* Added a new function :func:`sdl2.ext.save_bmp` for saving SDL surfaces to
40+
BMP files.
41+
* Added a new function :func:`sdl2.ext.pillow_to_surface` for converting
42+
:obj:`PIL.Image.Image` objects from the Pillow library to SDL surfaces.
43+
44+
API Changes:
45+
46+
* Updated the :meth:`~sdl2.ext.Renderer.draw_line` and
47+
:meth:`~sdl2.ext.Renderer.draw_point` methods of the
48+
:class:`~sdl2.ext.Renderer` class to accept coordinates as lists of ``(x, y)``
49+
tuples or :obj:`~sdl2.SDL_Point`s in addition to flat ``[x, y, x, y, x, y]``
50+
lists.
51+
* Updated the :meth:`~sdl2.ext.Renderer.draw_rect` and
52+
:meth:`~sdl2.ext.Renderer.fill` methods of the
53+
:class:`~sdl2.ext.Renderer` class to accept coordinates as lists of
54+
:obj:`~sdl2.SDL_Rects`s in addition to lists of ``(x, y, w, h)`` tuples.
55+
* Updated the :meth:`~sdl2.ext.Renderer.copy` method of the
56+
:class:`~sdl2.ext.Renderer` class to accept an ``(x, y)`` tuple as a
57+
destination, inferring the destination width and height from the dimensions
58+
of the copied texture.
59+
* Changed the ``index`` argument for the :class:`~sdl2.ext.Renderer` class to
60+
take the name of the reqested rendering back end as a string instead of an
61+
index for better clarity and cross-platform consistency.
62+
63+
564
0.9.9
665
-----
766

@@ -11,7 +70,7 @@ New Features:
1170

1271
* Updated to wrap new functions and constants in in SDL2 2.0.16 (PR #190)
1372

14-
Fixed bugs:
73+
Fixed Bugs:
1574

1675
* Reverted the fix for (issue #139), which inadvertantly caused a serious bug
1776
that prevented usage of any non-software renderer with windows created using

0 commit comments

Comments
 (0)