Releases: libtcod/libtcod
Releases · libtcod/libtcod
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 newget
andput
functions with their supported types as overloads.
This includes some types from the new API and C++ types such asstd::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.
Changes
TCODRandom
is now a movable, non-copyable object.TCODConsole
can now be default constructed.
Fixed
- Constructing
TCODConsole
fromtcod::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
TCOD_RENDERER_GLSL
,TCOD_RENDERER_OPENGL
,TCOD_RENDERER_SDL
, andTCOD_RENDERER_OPENGL2
now alias to theTCOD_RENDERER_SDL2
renderer. #137
Deprecated
- All color constants have been deprecated.
Fixed
Removed
- Removed GLAD dependencies.
1.23.0
Added
- Added new C print functions:
TCOD_printf_rgb
,TCOD_printn_rgb
, andTCOD_vprintf_rgb
. #133 - Added a default constructor for
TCODImage
.
Fixed
- Functions getting the size of an image now handle null pointers consistently.
- Will no longer try to include
<utf8proc.h>
when Unicode support is disabled.
1.22.3
Added
- Libtcod can now be built without utf8proc by passing the
-LIBTCOD_UTF8PROC=disable
flag to CMake.
Fixed
- Fixed double present bug in non-context flush functions.
This was affecting performance and also caused a screen flicker whenever the global fade color was active.
1.22.2
Fixed
- Libtcod was not linking
utf8proc
correctly in projects statically built with CMake.
1.22.1
Fixed
- Fix regression in TCODList when items are removed during iteration.
1.22.0
Added
- Libtcod can now be built without zlib by passing the
-DLIBTCOD_ZLIB=disable
flag to CMake or by settingCMAKE_DISABLE_FIND_PACKAGE_ZLIB=1
. - Libtcod can now be built without PNG support by passing the
-DLIBTCOD_LODEPNG=disable
flag to CMake. - Added context screen capture functions to take screenshots into memory instead of a file.
Changed
- The OpenGL2 renderer now defaults to the nearest filter unless
SDL_HINT_RENDER_SCALE_QUALITY
is set otherwise.
This makes the renderer consistent with the SDL2 renderer. - Parser function parameters are more const correct.
Fixed
- SDL2 console rendering is no longer likely to stack overflow.
- Fixed regression where new keywords would prevent older config files from loading.
- Exceptions were not correctly thrown on errors when reading colors from streams.