Tcod

Latest version: v17.1.0

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

Scan your dependencies

Page 4 of 45

13.7.0

Added

- You can new use `SDLConsoleRender.atlas` to access the `SDLTilesetAtlas` used to create it.
[121](https://github.com/libtcod/python-tcod/issues/121)

Fixed

- Fixed the parsing of SDL 2.0.22 headers. Specifically `SDL_FLT_EPSILON`.

13.6.2

Fixed

- SDL renderers were ignoring tiles where only the background red channel was changed.

13.6.1

Changed

- The SDL2 renderer has had a major performance update when compiled with SDL 2.0.18.
- SDL2 is now the default renderer to avoid rare issues with the OpenGL 2 renderer.

13.6.0

Added

- `BasicMixer` and `Channel` classes added to `tcod.sdl.audio`. These handle simple audio mixing.
- `AudioDevice.convert` added to handle simple conversions to the active devices format.
- `tcod.sdl.audio.convert_audio` added to handle any other conversions needed.

13.5.0

Added

- `tcod.sdl.audio`, a new module exposing SDL audio devices. This does not include an audio mixer yet.
- `tcod.sdl.mouse`, for SDL mouse and cursor handing.
- `Context.sdl_atlas`, which provides the relevant `SDLTilesetAtlas` when one is being used by the context.
- Several missing features were added to `tcod.sdl.render`.
- `Window.mouse_rect` added to SDL windows to set the mouse confinement area.

Changed

- `Texture.access` and `Texture.blend_mode` properties now return enum instances.
You can still set `blend_mode` with `int` but Mypy will complain.

13.4.0

Added

- Adds `sdl_window` and `sdl_renderer` properties to tcod contexts.
- Adds `tcod.event.add_watch` and `tcod.event.remove_watch` to handle SDL events via callback.
- Adds the `tcod.sdl.video` module to handle SDL windows.
- Adds the `tcod.sdl.render` module to handle SDL renderers.
- Adds the `tcod.render` module which gives more control over the rendering of consoles and tilesets.

Fixed

- Fixed handling of non-Path PathLike parameters and filepath encodings.

Page 4 of 45

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.