tcod 19.6.0__tar.gz → 19.6.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tcod-19.6.0 → tcod-19.6.3}/CHANGELOG.md +20 -0
- {tcod-19.6.0 → tcod-19.6.3}/LICENSE.txt +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/PKG-INFO +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/build_sdl.py +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/CHANGELOG.md +15 -0
- tcod-19.6.3/libtcod/CMakeLists.txt +118 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/CONTRIBUTING.md +21 -15
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/LICENSE.txt +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/README.md +38 -41
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/bresenham.h +6 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/bresenham_c.c +4 -4
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/bsp.h +6 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/bsp_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/color.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/color.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/config.h +6 -3
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console.c +5 -11
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console.h +35 -45
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console_drawing.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console_drawing.h +9 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console_etc.c +8 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console_etc.h +29 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console_init.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console_init.h +5 -3
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console_printing.c +1 -8
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console_printing.h +40 -21
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console_rexpaint.c +6 -6
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console_rexpaint.h +12 -8
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/console_types.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/context.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/context.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/context_init.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/context_init.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/context_viewport.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/context_viewport.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/error.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/error.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/fov.h +10 -10
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/fov_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/fov_circular_raycasting.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/fov_diamond_raycasting.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/fov_permissive2.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/fov_recursive_shadowcasting.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/fov_restrictive.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/fov_symmetric_shadowcast.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/fov_types.h +7 -2
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/globals.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/globals.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/heapq.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/heapq.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/heightmap.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/heightmap_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/image.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/image_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/lex.h +3 -2
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/lex_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/libtcod.h +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/libtcod_int.h +1 -1
- tcod-19.6.3/libtcod/src/libtcod/list.h +103 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/list_c.c +28 -42
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/logging.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/logging.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/mersenne.h +6 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/mersenne_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/mersenne_types.h +7 -2
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/mouse.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/mouse_types.h +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/namegen.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/namegen_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/noise.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/noise_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/noise_defaults.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/parser.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/parser_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/path.h +6 -2
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/path_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/pathfinder.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/pathfinder.h +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/pathfinder_frontier.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/pathfinder_frontier.h +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/portability.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/random.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/random.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/renderer_sdl2.c +6 -3
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/renderer_sdl2.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/renderer_xterm.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/renderer_xterm.h +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/sdl2/event.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/sys.h +6 -4
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/sys_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/sys_sdl_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/sys_sdl_img_bmp.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/sys_sdl_img_png.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tileset.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tileset.h +8 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tileset_bdf.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tileset_bdf.h +4 -2
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tileset_fallback.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tileset_fallback.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tileset_render.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tileset_render.h +7 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tileset_truetype.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tileset_truetype.h +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/timer.h +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tree.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/tree_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/txtfield.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/txtfield_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/utility.h +4 -4
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/version.h +5 -3
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/wrappers.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/wrappers.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/zip.h +3 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/zip_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod.h +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod_c.c +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/tcod/cffi.py +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/tcod/console.py +6 -1
- {tcod-19.6.0 → tcod-19.6.3}/tcod/context.py +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/tcod/event.py +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/tcod/libtcodpy.py +5 -5
- {tcod-19.6.0 → tcod-19.6.3}/tcod/path.py +4 -4
- {tcod-19.6.0 → tcod-19.6.3}/tcod/sdl/_internal.py +1 -1
- {tcod-19.6.0 → tcod-19.6.3}/tcod/sdl/audio.py +18 -12
- {tcod-19.6.0 → tcod-19.6.3}/tcod/sdl/render.py +2 -2
- {tcod-19.6.0 → tcod-19.6.3}/tcod/sdl/video.py +2 -2
- {tcod-19.6.0 → tcod-19.6.3}/tcod/version.py +3 -3
- {tcod-19.6.0 → tcod-19.6.3}/tcod.egg-info/PKG-INFO +1 -1
- tcod-19.6.0/libtcod/CMakeLists.txt +0 -63
- tcod-19.6.0/libtcod/src/libtcod/list.h +0 -75
- {tcod-19.6.0 → tcod-19.6.3}/CONTRIBUTING.md +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/MANIFEST.in +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/README.rst +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/build_libtcod.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/LIBTCOD-CREDITS.txt +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/sdl2/console_grid.glslf +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/libtcod/sdl2/console_grid.glslv +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/khrplatform.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/lodepng.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/lodepng.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/stb.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/stb_ds.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/stb_truetype.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/utf8proc/utf8proc.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/utf8proc/utf8proc.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/utf8proc/utf8proc_data.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/adler32.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/compress.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/crc32.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/crc32.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/deflate.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/deflate.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/gzclose.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/gzguts.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/gzlib.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/gzread.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/gzwrite.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/infback.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/inffast.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/inffast.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/inffixed.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/inflate.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/inflate.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/inftrees.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/inftrees.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/trees.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/trees.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/uncompr.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/zconf.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/zlib.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/zutil.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcod/src/vendor/zlib/zutil.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/libtcodpy.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/pyproject.toml +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/requirements.txt +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/setup.cfg +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/setup.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/__init__.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/__pyinstaller/__init__.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/__pyinstaller/hook-tcod.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/_internal.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/_libtcod.pyi +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/bsp.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/cdef.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/cffi.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/color.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/constants.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/event_constants.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/image.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/los.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/map.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/noise.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/noise.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/noise.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/path.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/path.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/py.typed +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/random.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/random.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/render.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/sdl/__init__.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/sdl/constants.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/sdl/joystick.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/sdl/mouse.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/sdl/sys.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/tcod.c +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/tcod.h +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/tcod.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod/tileset.py +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod.egg-info/SOURCES.txt +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod.egg-info/dependency_links.txt +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod.egg-info/entry_points.txt +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod.egg-info/requires.txt +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tcod.egg-info/top_level.txt +0 -0
- {tcod-19.6.0 → tcod-19.6.3}/tox.ini +0 -0
|
@@ -6,6 +6,26 @@ This project adheres to [Semantic Versioning](https://semver.org/) since version
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [19.6.3] - 2026-01-12
|
|
10
|
+
|
|
11
|
+
Fix missing deployment
|
|
12
|
+
|
|
13
|
+
## [19.6.2] - 2026-01-12
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Update to libtcod 2.2.2
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Mouse coordinate to tile conversions now support SDL renderer logical size and scaling.
|
|
22
|
+
|
|
23
|
+
## [19.6.1] - 2025-12-15
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- `tcod.event.add_watch` was crashing due to a cdef type mismatch.
|
|
28
|
+
|
|
9
29
|
## [19.6.0] - 2025-10-20
|
|
10
30
|
|
|
11
31
|
### Added
|
|
@@ -311,7 +311,7 @@ void _sdl_audio_stream_callback(void* userdata, SDL_AudioStream *stream, int add
|
|
|
311
311
|
// SDL to Python log function.
|
|
312
312
|
void _sdl_log_output_function(void *userdata, int category, SDL_LogPriority priority, const char *message);
|
|
313
313
|
// Generic event watcher callback.
|
|
314
|
-
|
|
314
|
+
bool _sdl_event_watcher(void* userdata, SDL_Event* event);
|
|
315
315
|
}
|
|
316
316
|
"""
|
|
317
317
|
|
|
@@ -9,6 +9,21 @@ Versions since `2.0.0` only track API breaks and no longer guarantee ABI compati
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [2.2.2] - 2026-01-06
|
|
13
|
+
### CMake
|
|
14
|
+
- Now fully supports `FetchPackage` for dependency resolution.
|
|
15
|
+
[#141](https://github.com/libtcod/libtcod/issues/141)
|
|
16
|
+
- No longer sets output directories.
|
|
17
|
+
- Now only configures Vcpkg or CPack when `LIBTCOD_VCPKG` or `LIBTCOD_CPACK` is enabled.
|
|
18
|
+
- `LIBTCOD_UTF8PROC` now defaults to `ON` instead of `vcpkg`.
|
|
19
|
+
- Library dependency options now use `ON`/`OFF` values instead of `find_package`/`disable`.
|
|
20
|
+
- `CMAKE_DISABLE_FIND_PACKAGE_X` no longer disables dependencies automatically.
|
|
21
|
+
- Added `LIBTCOD_DOCS` to build and install HTML documentation.
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
- Mouse coordinate to tile conversions now support SDL renderer logical size and scaling.
|
|
25
|
+
- Fixed out-of-bounds memory access in `TCODList::reverse` and `TCODList` copy methods.
|
|
26
|
+
|
|
12
27
|
## [2.2.1] - 2025-09-05
|
|
13
28
|
### Fixed
|
|
14
29
|
- Fixed compile errors on Android platforms.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.24...4.2)
|
|
2
|
+
include(FetchContent)
|
|
3
|
+
|
|
4
|
+
option(LIBTCOD_VCPKG "Enable Vcpkg toolchain by default." OFF)
|
|
5
|
+
option(LIBTCOD_SAMPLES "Build sources from the samples directory." OFF)
|
|
6
|
+
option(LIBTCOD_TESTS "Build unit tests." OFF)
|
|
7
|
+
option(LIBTCOD_INSTALL "Enable install targets." ON)
|
|
8
|
+
option(LIBTCOD_CPACK "Enable CPack for libtcod." OFF)
|
|
9
|
+
option(LIBTCOD_DOCS "Build documentation using Doxygen for installation." OFF)
|
|
10
|
+
|
|
11
|
+
option(LIBTCOD_THREADS "If true then deprecated thread functions are enabled by libtcod." ON)
|
|
12
|
+
option(LIBTCOD_SDL3 "Enable or disable this library dependency." ON)
|
|
13
|
+
option(LIBTCOD_ZLIB "Enable or disable this library dependency." ON)
|
|
14
|
+
set(LIBTCOD_LODEPNG "ON" CACHE STRING "How this library will be linked.")
|
|
15
|
+
set(LIBTCOD_UTF8PROC "ON" CACHE STRING "How this library will be linked.")
|
|
16
|
+
set(LIBTCOD_STB "ON" CACHE STRING "How this library will be linked.")
|
|
17
|
+
|
|
18
|
+
FetchContent_Declare(
|
|
19
|
+
SDL3
|
|
20
|
+
GIT_REPOSITORY https://github.com/libsdl-org/SDL
|
|
21
|
+
GIT_TAG f5e5f6588921eed3d7d048ce43d9eb1ff0da0ffc # release-3.2.30
|
|
22
|
+
GIT_SHALLOW TRUE
|
|
23
|
+
FIND_PACKAGE_ARGS CONFIG
|
|
24
|
+
)
|
|
25
|
+
set(SDL_INSTALL ${LIBTCOD_INSTALL} CACHE BOOL "")
|
|
26
|
+
set(SDL_INSTALL_CPACK OFF CACHE BOOL "")
|
|
27
|
+
set(SDL_INSTALL_DOCS OFF CACHE BOOL "")
|
|
28
|
+
|
|
29
|
+
FetchContent_Declare(
|
|
30
|
+
zlib
|
|
31
|
+
GIT_REPOSITORY https://github.com/madler/zlib
|
|
32
|
+
GIT_TAG 570720b0c24f9686c33f35a1b3165c1f568b96be # v1.3.1.2
|
|
33
|
+
GIT_SHALLOW TRUE
|
|
34
|
+
FIND_PACKAGE_ARGS
|
|
35
|
+
)
|
|
36
|
+
set(ZLIB_BUILD_TESTING OFF CACHE BOOL "")
|
|
37
|
+
set(ZLIB_INSTALL ${LIBTCOD_INSTALL} CACHE BOOL "")
|
|
38
|
+
|
|
39
|
+
FetchContent_Declare(
|
|
40
|
+
lodepng-c
|
|
41
|
+
GIT_REPOSITORY https://github.com/lvandeve/lodepng
|
|
42
|
+
GIT_TAG d41d4aa8c63dea277e25c94ad85046b6c5335ccc
|
|
43
|
+
PATCH_COMMAND git apply ${CMAKE_CURRENT_SOURCE_DIR}/cmake/lodepng-c.patch
|
|
44
|
+
FIND_PACKAGE_ARGS CONFIG
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
FetchContent_Declare(
|
|
48
|
+
utf8proc
|
|
49
|
+
GIT_REPOSITORY https://github.com/JuliaStrings/utf8proc
|
|
50
|
+
GIT_TAG e5e799221b45bbb90f5fdc5c69b6b8dfbf017e78 # v2.11.3
|
|
51
|
+
GIT_SHALLOW TRUE
|
|
52
|
+
PATCH_COMMAND git apply ${CMAKE_CURRENT_SOURCE_DIR}/cmake/utf8proc.patch
|
|
53
|
+
FIND_PACKAGE_ARGS
|
|
54
|
+
)
|
|
55
|
+
set(UTF8PROC_INSTALL ${LIBTCOD_INSTALL} CACHE BOOL "")
|
|
56
|
+
|
|
57
|
+
FetchContent_Declare(
|
|
58
|
+
Stb
|
|
59
|
+
GIT_REPOSITORY https://github.com/nothings/stb
|
|
60
|
+
GIT_TAG f1c79c02822848a9bed4315b12c8c8f3761e1296
|
|
61
|
+
PATCH_COMMAND git apply ${CMAKE_CURRENT_SOURCE_DIR}/cmake/stb.patch
|
|
62
|
+
FIND_PACKAGE_ARGS
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
if(LIBTCOD_VCPKG)
|
|
67
|
+
set(CMAKE_TOOLCHAIN_FILE
|
|
68
|
+
"${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake"
|
|
69
|
+
CACHE STRING "Vcpkg toolchain file")
|
|
70
|
+
endif()
|
|
71
|
+
|
|
72
|
+
file(STRINGS src/libtcod/version.h LIBTCOD_VERSION_LINE REGEX "TCOD_STRVERSION")
|
|
73
|
+
string(REGEX MATCH "TCOD_STRVERSION \"([^\"]+)\"" LIBTCOD_VERSION_LINE ${LIBTCOD_VERSION_LINE})
|
|
74
|
+
set(LIBTCOD_VERSION_FULL ${CMAKE_MATCH_1})
|
|
75
|
+
string(REGEX MATCH "([0-9]+\.[0-9]+\.[0-9]+)" LIBTCOD_VERSION ${LIBTCOD_VERSION_FULL})
|
|
76
|
+
message(STATUS "Libtcod version: ${LIBTCOD_VERSION}")
|
|
77
|
+
|
|
78
|
+
project(
|
|
79
|
+
libtcod
|
|
80
|
+
VERSION ${LIBTCOD_VERSION}
|
|
81
|
+
LANGUAGES C CXX
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake OPTIONAL RESULT_VARIABLE CONAN_FILE)
|
|
85
|
+
if(CONAN_FILE)
|
|
86
|
+
conan_basic_setup(TARGETS)
|
|
87
|
+
endif()
|
|
88
|
+
|
|
89
|
+
add_library(${PROJECT_NAME})
|
|
90
|
+
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
|
|
91
|
+
add_subdirectory(src)
|
|
92
|
+
|
|
93
|
+
set_target_properties(${PROJECT_NAME} PROPERTIES
|
|
94
|
+
C_VISIBILITY_PRESET hidden
|
|
95
|
+
CXX_VISIBILITY_PRESET hidden
|
|
96
|
+
VISIBILITY_INLINES_HIDDEN OFF
|
|
97
|
+
VERSION ${PROJECT_VERSION}
|
|
98
|
+
SOVERSION ${PROJECT_VERSION_MAJOR}
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
if(LIBTCOD_SAMPLES)
|
|
102
|
+
add_subdirectory(samples)
|
|
103
|
+
endif()
|
|
104
|
+
if(LIBTCOD_TESTS)
|
|
105
|
+
add_subdirectory(tests)
|
|
106
|
+
list(APPEND VCPKG_MANIFEST_FEATURES "tests")
|
|
107
|
+
endif()
|
|
108
|
+
|
|
109
|
+
if(LIBTCOD_CPACK)
|
|
110
|
+
if (WIN32)
|
|
111
|
+
set(CPACK_GENERATOR "ZIP")
|
|
112
|
+
else()
|
|
113
|
+
set(CPACK_GENERATOR "TGZ")
|
|
114
|
+
endif()
|
|
115
|
+
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt")
|
|
116
|
+
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
|
|
117
|
+
include(CPack)
|
|
118
|
+
endif()
|
|
@@ -82,18 +82,24 @@ Instructions are [provided here](https://github.com/libtcod/libtcod/tree/master/
|
|
|
82
82
|
|
|
83
83
|
The libtcod repository includes a CMake script for compiling libtcod and its tests and samples.
|
|
84
84
|
You can include the repository as a submodule allowing another project to build and run any version of libtcod.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
|
99
|
-
|
|
|
85
|
+
For more info the project root `CMakeLists.txt` file contains config options near the top of the script.
|
|
86
|
+
|
|
87
|
+
When building locally the `LIBTCOD_VCPKG` flag must be set with `-D LIBTCOD_VCPKG=ON` during CMake configuration,
|
|
88
|
+
otherwise the Vcpkg toolchain must be manually set.
|
|
89
|
+
|
|
90
|
+
The method used to find dependencies can be changed by setting the following cache variables to the following:
|
|
91
|
+
- `ON` means CMake's `FetchContent_MakeAvailable` command will be used.
|
|
92
|
+
`find_package` is preferred but if the package does not exist locally then it will be automatically downloaded.
|
|
93
|
+
- `vendored` means that sources bundled in the repository will be statically compiled.
|
|
94
|
+
This is not recommended because the bundled libraries may be out-of-date.
|
|
95
|
+
- `OFF` can be used to remove a library.
|
|
96
|
+
Libtcod functions which require that library will no longer be available.
|
|
97
|
+
|
|
98
|
+
| Cache Variable | Default | Options | Notes |
|
|
99
|
+
| ---------------- | ------- | ------- | ----- |
|
|
100
|
+
| LIBTCOD_SDL3 | ON | ON, OFF | Support for libtcod contexts.
|
|
101
|
+
| LIBTCOD_ZLIB | ON | ON, OFF | Support for REXPaint and TCODZip.
|
|
102
|
+
| LIBTCOD_LODEPNG | ON | ON, OFF, vendored |
|
|
103
|
+
| LIBTCOD_UTF8PROC | ON | ON, OFF, vendored | Support for console printing functions.
|
|
104
|
+
| LIBTCOD_STB | ON | ON, OFF, vendored |
|
|
105
|
+
| LIBTCOD_THREADS | OFF | ON, OFF | Support for deprecated functions, leave this off.
|
|
@@ -1,35 +1,54 @@
|
|
|
1
|
-
#
|
|
1
|
+
# libtcod
|
|
2
2
|
|
|
3
3
|
libtcod is a free, fast, portable and uncomplicated API for roguelike developers providing a true color console, pathfinding, field-of-view, and a few other utilities frequently used in roguelikes.
|
|
4
4
|
|
|
5
|
-
## Status
|
|
6
|
-
|
|
7
5
|
[](https://github.com/libtcod/libtcod/actions)
|
|
8
6
|
[](https://libtcod.readthedocs.io/en/latest/?badge=latest)
|
|
9
7
|
[](https://codecov.io/gh/libtcod/libtcod)
|
|
10
8
|
[](https://github.com/libtcod/libtcod/blob/main/CHANGELOG.md)
|
|
11
9
|
[](https://repology.org/project/libtcod/versions)
|
|
12
10
|
|
|
13
|
-
#
|
|
11
|
+
# Getting Started
|
|
14
12
|
|
|
15
13
|
## Using Vcpkg
|
|
16
14
|
|
|
17
|
-
This is the easiest way to get the latest stable version of libtcod for any project.
|
|
18
|
-
|
|
19
15
|
Libtcod is included as a port in [Vcpkg](https://github.com/microsoft/vcpkg).
|
|
20
16
|
You can install libtcod via Vcpkg and then link the library using a [CMake](https://cmake.org/) script as you normally do for that package manager.
|
|
17
|
+
You may want to fork [this template project](https://github.com/HexDecimal/libtcod-vcpkg-template) if you plan on starting a project with this setup.
|
|
21
18
|
|
|
22
19
|
## As a submodule
|
|
23
20
|
|
|
24
21
|
This is the best option for testing the development versions of libtcod.
|
|
25
22
|
|
|
26
|
-
You can include libtcod in a project by adding the libtcod repository as a [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) and then adding that directory to a [CMake](https://cmake.org/) script
|
|
27
|
-
|
|
23
|
+
You can include libtcod in a project by adding the libtcod repository as a [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) and then adding that directory to a [CMake](https://cmake.org/) script with `add_subdirectory`.
|
|
24
|
+
|
|
25
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for more details on configuring dependencies.
|
|
26
|
+
|
|
27
|
+
## Using FetchContent
|
|
28
|
+
|
|
29
|
+
Libtcod can be included via `FetchContent` in a projects `CMakeLists.txt`:
|
|
30
|
+
|
|
31
|
+
```cmake
|
|
32
|
+
cmake_minimum_required(VERSION 4.2)
|
|
33
|
+
include(FetchContent)
|
|
34
|
+
|
|
35
|
+
FetchContent_Declare(
|
|
36
|
+
libtcod
|
|
37
|
+
GIT_REPOSITORY https://github.com/libtcod/libtcod
|
|
38
|
+
GIT_TAG main # Replace main with desired version or revision later than 2.2.1
|
|
39
|
+
)
|
|
40
|
+
FetchContent_MakeAvailable(libtcod)
|
|
41
|
+
```
|
|
28
42
|
|
|
29
|
-
|
|
30
|
-
See [CONTRIBUTING.md](CONTRIBUTING.md) for details on configuring dependencies.
|
|
43
|
+
Afterwards libtcod can be linked to a project as normal.
|
|
31
44
|
|
|
32
|
-
|
|
45
|
+
```cmake
|
|
46
|
+
target_link_libraries(${PROJECT_NAME} PRIVATE libtcod::libtcod)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for more details on configuring dependencies.
|
|
50
|
+
|
|
51
|
+
## Using a pre-built binary
|
|
33
52
|
|
|
34
53
|
This is not recommend as these releases are unwieldy, are more difficult to update, and are less cross-platform.
|
|
35
54
|
*Do not upload binary files to your projects source repository.*
|
|
@@ -38,57 +57,35 @@ If you are programming in C or C++ then
|
|
|
38
57
|
Windows and MacOS binaries are available from the
|
|
39
58
|
[GitHub Releases page](https://github.com/libtcod/libtcod/releases).
|
|
40
59
|
|
|
41
|
-
Various C/C++ sample projects are included within
|
|
42
|
-
the repository which can be used as examples of various features.
|
|
43
|
-
|
|
44
60
|
Keep in mind that as a C++ library, you may need to distribute the
|
|
45
61
|
appropriate runtime with your program such as the
|
|
46
62
|
[Visual Studio 2015 runtimes](https://www.microsoft.com/en-us/download/details.aspx?id=53587)
|
|
47
63
|
or else the program will fail to run.
|
|
48
64
|
|
|
49
|
-
For those who wish to program in Python you can install python-tcod using
|
|
50
|
-
[this installation guide](https://python-tcod.readthedocs.io/en/latest/installation.html).
|
|
51
|
-
Once installed you can follow
|
|
52
|
-
[the Python 3 tutorial](http://rogueliketutorials.com/)
|
|
53
|
-
or you can find Python example scripts on the
|
|
54
|
-
[python-tcod repository](https://github.com/libtcod/python-tcod).
|
|
55
|
-
|
|
56
|
-
A alternative version of the Python library (libtcodpy) exists in the binary
|
|
57
|
-
downloads, but you should avoid using this version as it is not as well
|
|
58
|
-
maintained.
|
|
59
|
-
|
|
60
65
|
## Compiling from source
|
|
61
66
|
|
|
62
67
|
This is only recommended for libtcod developers.
|
|
63
68
|
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
64
69
|
|
|
65
|
-
#
|
|
70
|
+
# Documentation and Tutorials
|
|
66
71
|
|
|
67
72
|
The latest documentation is [here](https://libtcod.readthedocs.io/en/latest).
|
|
68
|
-
|
|
69
|
-
[
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
[python-tcod documentation](http://python-tcod.readthedocs.io).
|
|
73
|
-
|
|
74
|
-
libtcod comes with a sample application, implementations of which are provided
|
|
75
|
-
in each of
|
|
73
|
+
It is incomplete, so most people will want to read the [1.6.4 documentation](https://libtcod.github.io/docs/index2.html?c=true&cpp=true&cs=false&py=false&lua=false) instead.
|
|
74
|
+
Python users should use the [python-tcod documentation](http://python-tcod.readthedocs.io).
|
|
75
|
+
|
|
76
|
+
libtcod comes with a sample application, implementations of which are provided in each of
|
|
76
77
|
C ([samples_c.c](https://github.com/libtcod/libtcod/blob/master/samples/samples_c.c)),
|
|
77
78
|
C++ ([samples_cpp.cpp](https://github.com/libtcod/libtcod/blob/master/samples/samples_cpp.cpp)),
|
|
78
79
|
and Python ([samples_py.py](https://github.com/libtcod/python-tcod/blob/master/examples/samples_tcod.py)).
|
|
79
|
-
This provides a decent overview of the basic features, in an interactive
|
|
80
|
-
|
|
81
|
-
Each should be identical for the most part, so if you are using Windows,
|
|
82
|
-
downloading the pre-compiled binaries and running the included `samples.exe`
|
|
83
|
-
which is compiled from the C source code, should be representative of the other
|
|
84
|
-
versions.
|
|
80
|
+
This provides a decent overview of the basic features, in an interactive fashion.
|
|
81
|
+
Each should be identical for the most part, so if you are using Windows, downloading the pre-compiled binaries and running the included `samples.exe` which is compiled from the C source code, should be representative of the other versions.
|
|
85
82
|
|
|
86
83
|
# Contact / Community
|
|
87
84
|
|
|
88
85
|
For reporting bugs or requesting features you should use the [GitHub Issues page](https://github.com/libtcod/libtcod/issues).
|
|
89
86
|
For smaller questions or help with a tutorial or project you can join ``#libtcod`` on the [Roguelikes Discord](https://discord.gg/jEgZtqB) or on the [Libera.Chat](https://libera.chat/) IRC.
|
|
90
87
|
|
|
91
|
-
|
|
88
|
+
## Sponsors
|
|
92
89
|
|
|
93
90
|
[Sponsors donating $25 or more per month](https://github.com/sponsors/HexDecimal) will have their names or logos listed here.
|
|
94
91
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* BSD 3-Clause License
|
|
2
2
|
*
|
|
3
|
-
* Copyright © 2008-
|
|
3
|
+
* Copyright © 2008-2026, Jice and the libtcod contributors.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
*
|
|
6
6
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -29,12 +29,16 @@
|
|
|
29
29
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
30
30
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
31
31
|
*/
|
|
32
|
+
/// @file bresenham.h
|
|
33
|
+
/// Bresenham line module.
|
|
32
34
|
#pragma once
|
|
33
35
|
#ifndef TCOD_BRESENHAM_H_
|
|
34
36
|
#define TCOD_BRESENHAM_H_
|
|
35
37
|
|
|
36
38
|
#include "portability.h"
|
|
37
39
|
|
|
40
|
+
/// @defgroup Bresenham Bresenham lines
|
|
41
|
+
/// @{
|
|
38
42
|
#ifdef __cplusplus
|
|
39
43
|
extern "C" {
|
|
40
44
|
#endif
|
|
@@ -85,4 +89,5 @@ TCODLIB_API bool TCOD_line_mt(
|
|
|
85
89
|
#ifdef __cplusplus
|
|
86
90
|
} // extern "C"
|
|
87
91
|
#endif // __cplusplus
|
|
92
|
+
/// @}
|
|
88
93
|
#endif // TCOD_BRESENHAM_H_
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* BSD 3-Clause License
|
|
2
2
|
*
|
|
3
|
-
* Copyright © 2008-
|
|
3
|
+
* Copyright © 2008-2026, Jice and the libtcod contributors.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
*
|
|
6
6
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -124,7 +124,7 @@ bool TCOD_line_step_mt(int* __restrict xCur, int* __restrict yCur, TCOD_bresenha
|
|
|
124
124
|
* \verbatim embed:rst:leading-asterisk
|
|
125
125
|
* .. deprecated:: 1.6.6
|
|
126
126
|
* The `data` parameter for this call is redundant, you should call
|
|
127
|
-
*
|
|
127
|
+
* TCOD_line instead.
|
|
128
128
|
* \endverbatim
|
|
129
129
|
*/
|
|
130
130
|
bool TCOD_line_mt(int xo, int yo, int xd, int yd, TCOD_line_listener_t listener, TCOD_bresenham_data_t* data) {
|
|
@@ -147,7 +147,7 @@ bool TCOD_line_mt(int xo, int yo, int xd, int yd, TCOD_line_listener_t listener,
|
|
|
147
147
|
* This function is not reentrant and will fail if a new line is started
|
|
148
148
|
* before the last is finished processing.
|
|
149
149
|
*
|
|
150
|
-
* Use
|
|
150
|
+
* Use TCOD_line_init_mt instead.
|
|
151
151
|
* \endverbatim
|
|
152
152
|
*/
|
|
153
153
|
void TCOD_line_init(int xFrom, int yFrom, int xTo, int yTo) {
|
|
@@ -168,7 +168,7 @@ void TCOD_line_init(int xFrom, int yFrom, int xTo, int yTo) {
|
|
|
168
168
|
* This function is not reentrant and will fail if a new line is started
|
|
169
169
|
* before the last is finished processing.
|
|
170
170
|
*
|
|
171
|
-
* Use
|
|
171
|
+
* Use TCOD_line_step_mt instead.
|
|
172
172
|
* \endverbatim
|
|
173
173
|
*/
|
|
174
174
|
bool TCOD_line_step(int* __restrict xCur, int* __restrict yCur) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* BSD 3-Clause License
|
|
2
2
|
*
|
|
3
|
-
* Copyright © 2008-
|
|
3
|
+
* Copyright © 2008-2026, Jice and the libtcod contributors.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
*
|
|
6
6
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
30
30
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
31
31
|
*/
|
|
32
|
+
/// @file bsp.h
|
|
33
|
+
/// Binary space partitioning module.
|
|
32
34
|
#pragma once
|
|
33
35
|
#ifndef TCOD_BSP_H_
|
|
34
36
|
#define TCOD_BSP_H_
|
|
@@ -37,6 +39,8 @@
|
|
|
37
39
|
#include "portability.h"
|
|
38
40
|
#include "tree.h"
|
|
39
41
|
|
|
42
|
+
/// @defgroup BSP Binary space partitioning
|
|
43
|
+
/// @{
|
|
40
44
|
#ifdef __cplusplus
|
|
41
45
|
extern "C" {
|
|
42
46
|
#endif
|
|
@@ -74,4 +78,5 @@ TCODLIB_API void TCOD_bsp_remove_sons(TCOD_bsp_t* node);
|
|
|
74
78
|
#ifdef __cplusplus
|
|
75
79
|
}
|
|
76
80
|
#endif
|
|
81
|
+
/// @}
|
|
77
82
|
#endif // TCOD_BSP_H_
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* BSD 3-Clause License
|
|
2
2
|
*
|
|
3
|
-
* Copyright © 2008-
|
|
3
|
+
* Copyright © 2008-2026, Jice and the libtcod contributors.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
*
|
|
6
6
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
30
30
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
31
31
|
*/
|
|
32
|
+
/// @file color.h
|
|
33
|
+
/// Color handling module.
|
|
32
34
|
#pragma once
|
|
33
35
|
#ifndef TCOD_COLOR_H_
|
|
34
36
|
#define TCOD_COLOR_H_
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* BSD 3-Clause License
|
|
2
2
|
*
|
|
3
|
-
* Copyright © 2008-
|
|
3
|
+
* Copyright © 2008-2026, Jice and the libtcod contributors.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
*
|
|
6
6
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
30
30
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
31
31
|
*/
|
|
32
|
+
/// @file config.h
|
|
33
|
+
/// Libtcod config header.
|
|
32
34
|
#pragma once
|
|
33
35
|
#ifndef LIBTCOD_CONFIG_H_
|
|
34
36
|
#define LIBTCOD_CONFIG_H_
|
|
@@ -129,8 +131,9 @@
|
|
|
129
131
|
|
|
130
132
|
#ifdef __GNUC__
|
|
131
133
|
/// Used to suppress internal header warnings.
|
|
132
|
-
#define TCODLIB_BEGIN_IGNORE_DEPRECATIONS
|
|
133
|
-
_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wdeprecated\"")
|
|
134
|
+
#define TCODLIB_BEGIN_IGNORE_DEPRECATIONS \
|
|
135
|
+
_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wdeprecated\"") \
|
|
136
|
+
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
|
|
134
137
|
#define TCODLIB_END_IGNORE_DEPRECATIONS _Pragma("GCC diagnostic pop")
|
|
135
138
|
#elif defined(_MSC_VER)
|
|
136
139
|
#define TCODLIB_BEGIN_IGNORE_DEPRECATIONS _Pragma("warning(push)") _Pragma("warning(disable : 4996)")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* BSD 3-Clause License
|
|
2
2
|
*
|
|
3
|
-
* Copyright © 2008-
|
|
3
|
+
* Copyright © 2008-2026, Jice and the libtcod contributors.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
*
|
|
6
6
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -145,7 +145,7 @@ void TCOD_console_set_alignment(TCOD_Console* con, TCOD_alignment_t alignment) {
|
|
|
145
145
|
con->alignment = alignment;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
TCOD_alignment_t TCOD_console_get_alignment(
|
|
148
|
+
TCOD_alignment_t TCOD_console_get_alignment(TCOD_Console* con) {
|
|
149
149
|
con = TCOD_console_validate_(con);
|
|
150
150
|
return (con ? con->alignment : TCOD_LEFT);
|
|
151
151
|
}
|
|
@@ -294,7 +294,7 @@ void TCOD_console_put_char(TCOD_Console* con, int x, int y, int c, TCOD_bkgnd_fl
|
|
|
294
294
|
TCOD_console_set_char_foreground(con, x, y, con->fore);
|
|
295
295
|
TCOD_console_set_char_background(con, x, y, con->back, flag);
|
|
296
296
|
}
|
|
297
|
-
void TCOD_console_put_char_ex(
|
|
297
|
+
void TCOD_console_put_char_ex(TCOD_Console* con, int x, int y, int c, TCOD_color_t fore, TCOD_color_t back) {
|
|
298
298
|
con = TCOD_console_validate_(con);
|
|
299
299
|
if (!TCOD_console_is_index_valid_(con, x, y)) {
|
|
300
300
|
return;
|
|
@@ -303,7 +303,7 @@ void TCOD_console_put_char_ex(TCOD_console_t con, int x, int y, int c, TCOD_colo
|
|
|
303
303
|
TCOD_console_set_char_foreground(con, x, y, fore);
|
|
304
304
|
TCOD_console_set_char_background(con, x, y, back, TCOD_BKGND_SET);
|
|
305
305
|
}
|
|
306
|
-
void TCOD_console_clear(
|
|
306
|
+
void TCOD_console_clear(TCOD_Console* con) {
|
|
307
307
|
con = TCOD_console_validate_(con);
|
|
308
308
|
if (!con) {
|
|
309
309
|
return;
|
|
@@ -461,7 +461,7 @@ void TCOD_console_set_char_background(TCOD_Console* con, int x, int y, TCOD_colo
|
|
|
461
461
|
break;
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
void TCOD_console_set_char(
|
|
464
|
+
void TCOD_console_set_char(TCOD_Console* con, int x, int y, int c) {
|
|
465
465
|
con = TCOD_console_validate_(con);
|
|
466
466
|
if (!TCOD_console_is_index_valid_(con, x, y)) {
|
|
467
467
|
return;
|
|
@@ -488,9 +488,3 @@ TCOD_color_t TCOD_console_get_default_background(TCOD_Console* con) {
|
|
|
488
488
|
TCOD_IFNOT(con) { return TCOD_black; }
|
|
489
489
|
return con->back;
|
|
490
490
|
}
|
|
491
|
-
void TCOD_console_set_fade(uint8_t val, TCOD_color_t fade_color) {
|
|
492
|
-
TCOD_ctx.fade = val;
|
|
493
|
-
TCOD_ctx.fading_color = fade_color;
|
|
494
|
-
}
|
|
495
|
-
uint8_t TCOD_console_get_fade(void) { return TCOD_ctx.fade; }
|
|
496
|
-
TCOD_color_t TCOD_console_get_fading_color(void) { return TCOD_ctx.fading_color; }
|