A collection of tools and algorithms for developing traditional roguelikes. Such as field-of-view, pathfinding, and a tile-based terminal emulator.
tcod::Context
class to better handle contexts in C++.LIBTCOD_THREADS
to remove deprecated threading functions.
CMAKE_DISABLE_FIND_PACKAGE_Threads=1
can also be used.-DLIBTCOD_SDL2=disable
flag in CMake or by setting
CMAKE_DISABLE_FIND_PACKAGE_SDL2=1
.SDL_RenderGeometry
when compiled with SDL 2.0.18.
#104
.hpp
headers:
tcod::ColorRGB
, tcod::ColorRGBA
, tcod::BresenhamLine
, REXPaint functions.TCOD_list_t
have been deprecated.tcod.new_context(params)
with tcod::Console(params)
.TCOD_RENDERER_XTERM
was added.
#100
const
was missing from tcod::Tileset
's get_X
methods.Console::clear
and the C++ printing methods which take pointers to colors such as tcod::print
.TCOD_context_convert_event_coordinates
and TCOD_Context::convert_event_coordinates
as an easier way to
convert mouse pixel coordinates to tile coordinates.TCOD_sys_get_internal_context
. An easy way to get a TCOD_Context
from the old API.TCOD_sys_get_internal_console
. This returns a pointer to the root console used by the old API.tcod::ColorRGB
and tcod::ColorRGBA
to help with color type conversions.tcod::draw_quartergraphics
to replace older C++ blit2x functions.tcod::blit
to replace older C++ blit functions.tcod::stringf
to encapsulate printf formatted strings so that other functions won't have to deal with them.
A library like fmt is safer and faster if you have access to it.TCOD_VSYNC=0
to disable this or use the new API where VSync is a setting.TCODConsole::get_data
now returns a non-NULL pointer to the root console.TCOD_Random
now points to a union type.std::string_view
instead of std::string
.TCODConsole
, TCODBsp
, TCODPath
, TCODDijkstra
, TCODNoise
, TCODImage
, and TCODMap
can now handle move operations.
Their copy operators have been deleted. This makes them safe to use as a value instead of using new
/delete
.TCOD_chars_t
enum values because they are non-Unicode.static const
initialization issues.TCOD_random_t
type.