Releases: libtcod/libtcod
Releases · libtcod/libtcod
2.2.2
CMake
- Now fully supports
FetchPackagefor dependency resolution. #141 - No longer sets output directories.
- Now only configures Vcpkg or CPack when
LIBTCOD_VCPKGorLIBTCOD_CPACKis enabled. LIBTCOD_UTF8PROCnow defaults toONinstead ofvcpkg.- Library dependency options now use
ON/OFFvalues instead offind_package/disable. CMAKE_DISABLE_FIND_PACKAGE_Xno longer disables dependencies automatically.- Added
LIBTCOD_DOCSto build and install HTML documentation.
Fixed
- Mouse coordinate to tile conversions now support SDL renderer logical size and scaling.
- Fixed out-of-bounds memory access in
TCODList::reverseandTCODListcopy methods.
2.2.1
Fixed
- Fixed compile errors on Android platforms.
2.2.0
Changed
TCOD_sdl2_render_texture_setupnow preserves texture scale mode on the target texture.
Deprecated
- Outdated libtcod event types have been deprecated to help track their usage.
- Event functions intended to help migrate away from libtcod events have been deprecated to indicate that they're not a permanent solution.
Fixed
TCODHeightMapcopy constructor where width and height are different would cause an infinite loop.- Fixed variable names in
renderer_xterm.cthat caused a compilation fail with GLIBC 2.42. SDL_RENDER_SCALE_QUALITYwas being ignored since the change to SDL3 and is now respected again for initial scale mode.
2.1.1
Fixed
- Fixed headers which were not self-contained.
2.1.0
Changed
TCODHeightMapis now safe to copy/move and can be swapped.
Deprecated
- These functions have been deprecated by replacements:
TCOD_console_set_char->TCOD_console_put_rgbTCOD_console_set_char_background->TCOD_console_put_rgbTCOD_console_set_char_foreground->TCOD_console_put_rgbTCOD_console_put_char->TCOD_console_put_rgbTCOD_console_put_char_ex->TCOD_console_put_rgbTCOD_console_printf->TCOD_printf_rgbTCOD_console_printf_ex->TCOD_printf_rgbTCOD_console_printf_rect->TCOD_printf_rgbTCOD_console_printf_rect_ex->TCOD_printf_rgbTCOD_console_printf_frame->TCOD_console_draw_frame_rgb&TCOD_printf_rgbTCOD_console_printn_frame->TCOD_console_draw_frame_rgb&TCOD_printn_rgbTCOD_console_vprintf->TCOD_vprintf_rgbTCOD_console_vprintf_rect->TCOD_vprintf_rgbTCOD_console_rect->TCOD_console_draw_rect_rgbTCOD_console_hline->TCOD_console_draw_rect_rgbTCOD_console_vline->TCOD_console_draw_rect_rgb
TCODHeightMap::copywas replaced by value assignment.
Fixed
- Fixed crashes on screen capture.
- Logged messages were missing a trailing newline.
2.0.0
Added
- Cmake scripts now have the
LIBTCOD_INSTALLoption to disable installation. #153 - Added
TCOD_renderer_init_sdl3which takesSDL_PropertiesIDparameters.
Changed
- Switched from SDL2 to SDL3.
- Several functions have been moved inline, this will break the ABI.
- Provisional gui tools moved into the
tcod::guinamespace. TCODConsole::datachanged from protected to private.- Renamed utility macros such as
MAX,MIN,ABS,CLAMPandLERPto useTCOD_prefix. TCOD_renderer_init_sdl2renderer_flagsparameter changed to justvsync.- Libtcod library versions are no longer ABI compatible. Versions indicate API compatibility instead.
Deprecated
TCOD_ContextParams.tcod_versionis deprecated and should no longer be set.
Fixed
constwas missing fromTCOD_sys_update_charimage parameter.- Prevent key modifiers from getting stuck when the root console is reinitialized.
- Fixed crash on
TCODPathandTCODDijkstramove operations. #159
Removed
- Removed long deprecated
libtcodpyPython package.
1.24.0
Added
- New
TCODImage::getSize()overload which returns a value instead of taking output references. - New
TCODColor::genMapoverload which supports constexpr. TCODZiphas newgetandputfunctions 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.TCODZipcan 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
TCODBspwhich can take function callbacks directly.
Changes
TCODRandomis now a movable, non-copyable object.TCODConsolecan now be default constructed.
Fixed
- Constructing
TCODConsolefromtcod::ConsolePtrno 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_OPENGL2now alias to theTCOD_RENDERER_SDL2renderer. #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=disableflag 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.