Tcod

Latest version: v16.2.3

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

Scan your dependencies

Page 27 of 44

3.0.1

Changed

- `KeyEvent`'s with `text` now have all their modifier keys set to False.

Fixed

- Undefined behavior in text events caused crashes on 32-bit builds.

3.0.0

Added

- `KeyEvent` supports libtcod text and meta keys.

Changed

- `KeyEvent` parameters have been moved.
- This version requires `libtcod-cffi>=2.3.0`.

Deprecated

- `KeyEvent` camel capped attribute names are deprecated.

Fixed

- Crashes with key-codes undefined by libtcod.
- `tdl.map` typedef issues with libtcod-cffi.

2.0.1

Fixed

- `tdl.init` renderer was defaulted to OpenGL which is not supported in the
current version of libtcod.

2.0.0

Changed

- Dependencies updated, tdl now requires libtcod-cffi 2.x.x
- Some event behaviors have changed with SDL2, event keys might be different
than what you expect.

Removed

- Key repeat functions were removed from SDL2.
`set_key_repeat` is now stubbed, and does nothing.

1.24.0

Added
- New `TCODImage::getSize()` overload which returns a value instead of taking output references.
- New `TCODColor::genMap` overload which supports constexpr.
- `TCODZip` has new `get` and `put` functions with their supported types as overloads.
This includes some types from the new API and C++ types such as `std::optional<std::string>` as an alternative to getting a char pointer.
- `TCODZip` can now load and save paths using `<filesystem>` types.
- Added `tcod::ImagePtr`.
- Added functions to manually set context pixel-to-tile conversions in cases where it can't be set automatically.
- New overloads to `TCODBsp` which can take function callbacks directly.

Changed
- `TCODRandom` is now a movable, non-copyable object.
- `TCODConsole` can now be default constructed.

Fixed
- Constructing `TCODConsole` from `tcod::ConsolePtr` no longer causes a bad free.
- Memory leak when loading images with `TCODZip`.
- Memory leak with tileset atlases belonging to contexts.

1.23.1

Changed
- Code Page 437: Character 0x7F is now assigned to 0x2302 (HOUSE).
[134](https://github.com/libtcod/libtcod/pull/134)
- ``TCOD_RENDERER_GLSL``, ``TCOD_RENDERER_OPENGL``, ``TCOD_RENDERER_SDL``, and ``TCOD_RENDERER_OPENGL2`` now alias to the ``TCOD_RENDERER_SDL2`` renderer.
[137](https://github.com/libtcod/libtcod/pull/137)

Deprecated
- All color constants have been deprecated.

Fixed
- Forced all renderers to ``TCOD_RENDERER_SDL2`` to fix rare graphical artifacts with OpenGL.
[112](https://github.com/libtcod/libtcod/issues/112)
[83](https://github.com/libtcod/libtcod/issues/83)

Removed
- Removed GLAD dependencies.

Page 27 of 44

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.