tcod 19.3.0__tar.gz → 19.3.1__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.3.0 → tcod-19.3.1}/CHANGELOG.md +14 -0
- {tcod-19.3.0 → tcod-19.3.1}/PKG-INFO +1 -1
- {tcod-19.3.0 → tcod-19.3.1}/pyproject.toml +0 -4
- {tcod-19.3.0 → tcod-19.3.1}/tcod/cffi.h +0 -1
- {tcod-19.3.0 → tcod-19.3.1}/tcod/event.py +21 -34
- {tcod-19.3.0 → tcod-19.3.1}/tcod/libtcodpy.py +5 -2
- {tcod-19.3.0 → tcod-19.3.1}/tcod/map.py +2 -5
- {tcod-19.3.0 → tcod-19.3.1}/tcod/version.py +2 -2
- {tcod-19.3.0 → tcod-19.3.1}/tcod.egg-info/PKG-INFO +1 -1
- {tcod-19.3.0 → tcod-19.3.1}/tcod.egg-info/SOURCES.txt +0 -2
- tcod-19.3.0/tcod/tdl.c +0 -201
- tcod-19.3.0/tcod/tdl.h +0 -54
- {tcod-19.3.0 → tcod-19.3.1}/CONTRIBUTING.md +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/LICENSE.txt +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/MANIFEST.in +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/README.rst +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/build_libtcod.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/build_sdl.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/CHANGELOG.md +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/CMakeLists.txt +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/CONTRIBUTING.md +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/LIBTCOD-CREDITS.txt +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/LICENSE.txt +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/README.md +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/bresenham.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/bresenham_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/bsp.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/bsp_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/color.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/color.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/config.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console_drawing.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console_drawing.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console_etc.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console_etc.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console_init.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console_init.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console_printing.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console_printing.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console_rexpaint.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console_rexpaint.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/console_types.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/context.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/context.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/context_init.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/context_init.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/context_viewport.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/context_viewport.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/error.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/error.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/fov.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/fov_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/fov_circular_raycasting.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/fov_diamond_raycasting.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/fov_permissive2.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/fov_recursive_shadowcasting.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/fov_restrictive.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/fov_symmetric_shadowcast.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/fov_types.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/globals.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/globals.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/heapq.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/heapq.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/heightmap.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/heightmap_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/image.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/image_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/lex.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/lex_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/libtcod.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/libtcod_int.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/list.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/list_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/logging.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/logging.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/mersenne.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/mersenne_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/mersenne_types.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/mouse.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/mouse_types.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/namegen.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/namegen_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/noise.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/noise_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/noise_defaults.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/parser.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/parser_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/path.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/path_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/pathfinder.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/pathfinder.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/pathfinder_frontier.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/pathfinder_frontier.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/portability.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/random.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/random.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/renderer_sdl2.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/renderer_sdl2.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/renderer_xterm.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/renderer_xterm.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/sdl2/console_grid.glslf +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/sdl2/console_grid.glslv +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/sdl2/event.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/sys.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/sys_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/sys_sdl_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/sys_sdl_img_bmp.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/sys_sdl_img_png.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tileset.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tileset.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tileset_bdf.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tileset_bdf.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tileset_fallback.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tileset_fallback.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tileset_render.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tileset_render.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tileset_truetype.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tileset_truetype.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/timer.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tree.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/tree_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/txtfield.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/txtfield_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/utility.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/version.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/wrappers.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/wrappers.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/zip.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod/zip_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/libtcod_c.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/khrplatform.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/lodepng.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/lodepng.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/stb.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/stb_ds.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/stb_truetype.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/utf8proc/utf8proc.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/utf8proc/utf8proc.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/utf8proc/utf8proc_data.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/adler32.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/compress.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/crc32.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/crc32.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/deflate.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/deflate.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/gzclose.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/gzguts.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/gzlib.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/gzread.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/gzwrite.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/infback.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/inffast.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/inffast.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/inffixed.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/inflate.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/inflate.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/inftrees.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/inftrees.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/trees.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/trees.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/uncompr.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/zconf.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/zlib.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/zutil.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcod/src/vendor/zlib/zutil.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/libtcodpy.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/requirements.txt +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/setup.cfg +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/setup.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/__init__.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/__pyinstaller/__init__.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/__pyinstaller/hook-tcod.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/_internal.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/_libtcod.pyi +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/bsp.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/cdef.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/cffi.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/color.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/console.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/constants.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/context.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/event_constants.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/image.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/los.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/noise.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/noise.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/noise.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/path.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/path.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/path.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/py.typed +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/random.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/random.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/render.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/sdl/__init__.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/sdl/_internal.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/sdl/audio.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/sdl/constants.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/sdl/joystick.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/sdl/mouse.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/sdl/render.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/sdl/sys.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/sdl/video.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/tcod.c +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/tcod.h +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/tcod.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod/tileset.py +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod.egg-info/dependency_links.txt +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod.egg-info/entry_points.txt +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod.egg-info/requires.txt +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tcod.egg-info/top_level.txt +0 -0
- {tcod-19.3.0 → tcod-19.3.1}/tox.ini +0 -0
|
@@ -6,14 +6,28 @@ This project adheres to [Semantic Versioning](https://semver.org/) since version
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [19.3.1] - 2025-08-02
|
|
10
|
+
|
|
11
|
+
Solved a deprecation warning which was internal to tcod and no doubt annoyed many devs.
|
|
12
|
+
Thanks to jmccardle for forcing me to resolve this.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Silenced internal deprecation warnings within `Context.convert_event`.
|
|
17
|
+
|
|
9
18
|
## [19.3.0] - 2025-07-26
|
|
10
19
|
|
|
20
|
+
Thanks to cr0ne for pointing out missing texture scaling options.
|
|
21
|
+
These options did not exist in SDL2.
|
|
22
|
+
|
|
11
23
|
### Added
|
|
12
24
|
|
|
13
25
|
- `tcod.sdl.render`: Added `ScaleMode` enum and `Texture.scale_mode` attribute.
|
|
14
26
|
|
|
15
27
|
## [19.2.0] - 2025-07-20
|
|
16
28
|
|
|
29
|
+
Thanks to tryddle for demonstrating how bad the current API was with chunked world generation.
|
|
30
|
+
|
|
17
31
|
### Added
|
|
18
32
|
|
|
19
33
|
- `tcod.noise.grid` now has the `offset` parameter for easier sampling of noise chunks.
|
|
@@ -102,10 +102,6 @@ filterwarnings = [
|
|
|
102
102
|
[tool.cibuildwheel] # https://cibuildwheel.pypa.io/en/stable/options/
|
|
103
103
|
enable = ["pypy", "pyodide-prerelease"]
|
|
104
104
|
|
|
105
|
-
[tool.cibuildwheel.pyodide]
|
|
106
|
-
dependency-versions = "latest" # Until pyodide-version is stable on cibuildwheel
|
|
107
|
-
pyodide-version = "0.28.0a3"
|
|
108
|
-
|
|
109
105
|
[tool.mypy]
|
|
110
106
|
files = ["."]
|
|
111
107
|
python_version = "3.10"
|
|
@@ -418,12 +418,8 @@ class MouseState(Event):
|
|
|
418
418
|
self.state = state
|
|
419
419
|
|
|
420
420
|
@property
|
|
421
|
+
@deprecated("The mouse.pixel attribute is deprecated. Use mouse.position instead.")
|
|
421
422
|
def pixel(self) -> Point:
|
|
422
|
-
warnings.warn(
|
|
423
|
-
"The mouse.pixel attribute is deprecated. Use mouse.position instead.",
|
|
424
|
-
DeprecationWarning,
|
|
425
|
-
stacklevel=2,
|
|
426
|
-
)
|
|
427
423
|
return self.position
|
|
428
424
|
|
|
429
425
|
@pixel.setter
|
|
@@ -431,26 +427,29 @@ class MouseState(Event):
|
|
|
431
427
|
self.position = value
|
|
432
428
|
|
|
433
429
|
@property
|
|
430
|
+
@deprecated(
|
|
431
|
+
"The mouse.tile attribute is deprecated."
|
|
432
|
+
" Use mouse.position of the event returned by context.convert_event instead."
|
|
433
|
+
)
|
|
434
434
|
def tile(self) -> Point:
|
|
435
|
-
warnings.warn(
|
|
436
|
-
"The mouse.tile attribute is deprecated. Use mouse.position of the event returned by context.convert_event instead.",
|
|
437
|
-
DeprecationWarning,
|
|
438
|
-
stacklevel=2,
|
|
439
|
-
)
|
|
440
435
|
return _verify_tile_coordinates(self._tile)
|
|
441
436
|
|
|
442
437
|
@tile.setter
|
|
438
|
+
@deprecated(
|
|
439
|
+
"The mouse.tile attribute is deprecated."
|
|
440
|
+
" Use mouse.position of the event returned by context.convert_event instead."
|
|
441
|
+
)
|
|
443
442
|
def tile(self, xy: tuple[float, float]) -> None:
|
|
444
443
|
self._tile = Point(*xy)
|
|
445
444
|
|
|
446
445
|
def __repr__(self) -> str:
|
|
447
|
-
return f"tcod.event.{self.__class__.__name__}(position={tuple(self.position)!r}, tile={tuple(self.
|
|
446
|
+
return f"tcod.event.{self.__class__.__name__}(position={tuple(self.position)!r}, tile={tuple(self._tile or (0, 0))!r}, state={MouseButtonMask(self.state)})"
|
|
448
447
|
|
|
449
448
|
def __str__(self) -> str:
|
|
450
449
|
return ("<%s, position=(x=%i, y=%i), tile=(x=%i, y=%i), state=%s>") % (
|
|
451
450
|
super().__str__().strip("<>"),
|
|
452
451
|
*self.position,
|
|
453
|
-
*self.
|
|
452
|
+
*(self._tile or (0, 0)),
|
|
454
453
|
MouseButtonMask(self.state),
|
|
455
454
|
)
|
|
456
455
|
|
|
@@ -492,41 +491,29 @@ class MouseMotion(MouseState):
|
|
|
492
491
|
self._tile_motion = Point(*tile_motion) if tile_motion is not None else None
|
|
493
492
|
|
|
494
493
|
@property
|
|
494
|
+
@deprecated("The mouse.pixel_motion attribute is deprecated. Use mouse.motion instead.")
|
|
495
495
|
def pixel_motion(self) -> Point:
|
|
496
|
-
warnings.warn(
|
|
497
|
-
"The mouse.pixel_motion attribute is deprecated. Use mouse.motion instead.",
|
|
498
|
-
DeprecationWarning,
|
|
499
|
-
stacklevel=2,
|
|
500
|
-
)
|
|
501
496
|
return self.motion
|
|
502
497
|
|
|
503
498
|
@pixel_motion.setter
|
|
499
|
+
@deprecated("The mouse.pixel_motion attribute is deprecated. Use mouse.motion instead.")
|
|
504
500
|
def pixel_motion(self, value: Point) -> None:
|
|
505
|
-
warnings.warn(
|
|
506
|
-
"The mouse.pixel_motion attribute is deprecated. Use mouse.motion instead.",
|
|
507
|
-
DeprecationWarning,
|
|
508
|
-
stacklevel=2,
|
|
509
|
-
)
|
|
510
501
|
self.motion = value
|
|
511
502
|
|
|
512
503
|
@property
|
|
504
|
+
@deprecated(
|
|
505
|
+
"The mouse.tile_motion attribute is deprecated."
|
|
506
|
+
" Use mouse.motion of the event returned by context.convert_event instead."
|
|
507
|
+
)
|
|
513
508
|
def tile_motion(self) -> Point:
|
|
514
|
-
warnings.warn(
|
|
515
|
-
"The mouse.tile_motion attribute is deprecated."
|
|
516
|
-
" Use mouse.motion of the event returned by context.convert_event instead.",
|
|
517
|
-
DeprecationWarning,
|
|
518
|
-
stacklevel=2,
|
|
519
|
-
)
|
|
520
509
|
return _verify_tile_coordinates(self._tile_motion)
|
|
521
510
|
|
|
522
511
|
@tile_motion.setter
|
|
512
|
+
@deprecated(
|
|
513
|
+
"The mouse.tile_motion attribute is deprecated."
|
|
514
|
+
" Use mouse.motion of the event returned by context.convert_event instead."
|
|
515
|
+
)
|
|
523
516
|
def tile_motion(self, xy: tuple[float, float]) -> None:
|
|
524
|
-
warnings.warn(
|
|
525
|
-
"The mouse.tile_motion attribute is deprecated."
|
|
526
|
-
" Use mouse.motion of the event returned by context.convert_event instead.",
|
|
527
|
-
DeprecationWarning,
|
|
528
|
-
stacklevel=2,
|
|
529
|
-
)
|
|
530
517
|
self._tile_motion = Point(*xy)
|
|
531
518
|
|
|
532
519
|
@classmethod
|
|
@@ -3584,8 +3584,11 @@ def _unpack_union(type_: int, union: Any) -> Any: # noqa: PLR0911
|
|
|
3584
3584
|
raise RuntimeError(msg)
|
|
3585
3585
|
|
|
3586
3586
|
|
|
3587
|
-
def _convert_TCODList(c_list: Any, type_: int) -> Any:
|
|
3588
|
-
|
|
3587
|
+
def _convert_TCODList(c_list: Any, type_: int) -> Any: # noqa: N802
|
|
3588
|
+
with ffi.new("TCOD_value_t[]", lib.TCOD_list_size(c_list)) as unions:
|
|
3589
|
+
for i, union in enumerate(unions):
|
|
3590
|
+
union.custom = lib.TCOD_list_get(c_list, i)
|
|
3591
|
+
return [_unpack_union(type_, union) for union in unions]
|
|
3589
3592
|
|
|
3590
3593
|
|
|
3591
3594
|
@deprecate("Parser functions have been deprecated.")
|
|
@@ -6,6 +6,7 @@ import warnings
|
|
|
6
6
|
from typing import TYPE_CHECKING, Any, Literal
|
|
7
7
|
|
|
8
8
|
import numpy as np
|
|
9
|
+
from typing_extensions import deprecated
|
|
9
10
|
|
|
10
11
|
import tcod._internal
|
|
11
12
|
import tcod.constants
|
|
@@ -15,6 +16,7 @@ if TYPE_CHECKING:
|
|
|
15
16
|
from numpy.typing import ArrayLike, NDArray
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
@deprecated("This class may perform poorly and is no longer needed.")
|
|
18
20
|
class Map:
|
|
19
21
|
"""A map containing libtcod attributes.
|
|
20
22
|
|
|
@@ -78,11 +80,6 @@ class Map:
|
|
|
78
80
|
order: Literal["C", "F"] = "C",
|
|
79
81
|
) -> None:
|
|
80
82
|
"""Initialize the map."""
|
|
81
|
-
warnings.warn(
|
|
82
|
-
"This class may perform poorly and is no longer needed.",
|
|
83
|
-
DeprecationWarning,
|
|
84
|
-
stacklevel=2,
|
|
85
|
-
)
|
|
86
83
|
self.width = width
|
|
87
84
|
self.height = height
|
|
88
85
|
self._order = tcod._internal.verify_order(order)
|
tcod-19.3.0/tcod/tdl.c
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
/* extra functions provided for the python-tdl library */
|
|
2
|
-
#include "tdl.h"
|
|
3
|
-
|
|
4
|
-
#include "../libtcod/src/libtcod/wrappers.h"
|
|
5
|
-
|
|
6
|
-
void SDL_main(void){};
|
|
7
|
-
|
|
8
|
-
TCOD_value_t TDL_list_get_union(TCOD_list_t l, int idx) {
|
|
9
|
-
TCOD_value_t item;
|
|
10
|
-
item.custom = TCOD_list_get(l, idx);
|
|
11
|
-
return item;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
bool TDL_list_get_bool(TCOD_list_t l, int idx) { return TDL_list_get_union(l, idx).b; }
|
|
15
|
-
|
|
16
|
-
char TDL_list_get_char(TCOD_list_t l, int idx) { return TDL_list_get_union(l, idx).c; }
|
|
17
|
-
|
|
18
|
-
int TDL_list_get_int(TCOD_list_t l, int idx) { return TDL_list_get_union(l, idx).i; }
|
|
19
|
-
|
|
20
|
-
float TDL_list_get_float(TCOD_list_t l, int idx) { return TDL_list_get_union(l, idx).f; }
|
|
21
|
-
|
|
22
|
-
char* TDL_list_get_string(TCOD_list_t l, int idx) { return TDL_list_get_union(l, idx).s; }
|
|
23
|
-
|
|
24
|
-
TCOD_color_t TDL_list_get_color(TCOD_list_t l, int idx) { return TDL_list_get_union(l, idx).col; }
|
|
25
|
-
|
|
26
|
-
TCOD_dice_t TDL_list_get_dice(TCOD_list_t l, int idx) { return TDL_list_get_union(l, idx).dice; }
|
|
27
|
-
|
|
28
|
-
/* get a TCOD color type from a 0xRRGGBB formatted integer */
|
|
29
|
-
TCOD_color_t TDL_color_from_int(int color) {
|
|
30
|
-
TCOD_color_t tcod_color = {(color >> 16) & 0xff, (color >> 8) & 0xff, color & 0xff};
|
|
31
|
-
return tcod_color;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
int TDL_color_to_int(TCOD_color_t* color) { return (color->r << 16) | (color->g << 8) | color->b; }
|
|
35
|
-
|
|
36
|
-
int* TDL_color_int_to_array(int color) {
|
|
37
|
-
static int array[3];
|
|
38
|
-
array[0] = (color >> 16) & 0xff;
|
|
39
|
-
array[1] = (color >> 8) & 0xff;
|
|
40
|
-
array[2] = color & 0xff;
|
|
41
|
-
return array;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
int TDL_color_RGB(int r, int g, int b) { return ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }
|
|
45
|
-
|
|
46
|
-
int TDL_color_HSV(float h, float s, float v) {
|
|
47
|
-
TCOD_color_t tcod_color = TCOD_color_HSV(h, s, v);
|
|
48
|
-
return TDL_color_to_int(&tcod_color);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
bool TDL_color_equals(int c1, int c2) { return (c1 == c2); }
|
|
52
|
-
|
|
53
|
-
int TDL_color_add(int c1, int c2) {
|
|
54
|
-
TCOD_color_t tc1 = TDL_color_from_int(c1);
|
|
55
|
-
TCOD_color_t tc2 = TDL_color_from_int(c2);
|
|
56
|
-
tc1 = TCOD_color_add(tc1, tc2);
|
|
57
|
-
return TDL_color_to_int(&tc1);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
int TDL_color_subtract(int c1, int c2) {
|
|
61
|
-
TCOD_color_t tc1 = TDL_color_from_int(c1);
|
|
62
|
-
TCOD_color_t tc2 = TDL_color_from_int(c2);
|
|
63
|
-
tc1 = TCOD_color_subtract(tc1, tc2);
|
|
64
|
-
return TDL_color_to_int(&tc1);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
int TDL_color_multiply(int c1, int c2) {
|
|
68
|
-
TCOD_color_t tc1 = TDL_color_from_int(c1);
|
|
69
|
-
TCOD_color_t tc2 = TDL_color_from_int(c2);
|
|
70
|
-
tc1 = TCOD_color_multiply(tc1, tc2);
|
|
71
|
-
return TDL_color_to_int(&tc1);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
int TDL_color_multiply_scalar(int c, float value) {
|
|
75
|
-
TCOD_color_t tc = TDL_color_from_int(c);
|
|
76
|
-
tc = TCOD_color_multiply_scalar(tc, value);
|
|
77
|
-
return TDL_color_to_int(&tc);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
int TDL_color_lerp(int c1, int c2, float coef) {
|
|
81
|
-
TCOD_color_t tc1 = TDL_color_from_int(c1);
|
|
82
|
-
TCOD_color_t tc2 = TDL_color_from_int(c2);
|
|
83
|
-
tc1 = TCOD_color_lerp(tc1, tc2, coef);
|
|
84
|
-
return TDL_color_to_int(&tc1);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
float TDL_color_get_hue(int color) {
|
|
88
|
-
TCOD_color_t tcod_color = TDL_color_from_int(color);
|
|
89
|
-
return TCOD_color_get_hue(tcod_color);
|
|
90
|
-
}
|
|
91
|
-
float TDL_color_get_saturation(int color) {
|
|
92
|
-
TCOD_color_t tcod_color = TDL_color_from_int(color);
|
|
93
|
-
return TCOD_color_get_saturation(tcod_color);
|
|
94
|
-
}
|
|
95
|
-
float TDL_color_get_value(int color) {
|
|
96
|
-
TCOD_color_t tcod_color = TDL_color_from_int(color);
|
|
97
|
-
return TCOD_color_get_value(tcod_color);
|
|
98
|
-
}
|
|
99
|
-
int TDL_color_set_hue(int color, float h) {
|
|
100
|
-
TCOD_color_t tcod_color = TDL_color_from_int(color);
|
|
101
|
-
TCOD_color_set_hue(&tcod_color, h);
|
|
102
|
-
return TDL_color_to_int(&tcod_color);
|
|
103
|
-
}
|
|
104
|
-
int TDL_color_set_saturation(int color, float h) {
|
|
105
|
-
TCOD_color_t tcod_color = TDL_color_from_int(color);
|
|
106
|
-
TCOD_color_set_saturation(&tcod_color, h);
|
|
107
|
-
return TDL_color_to_int(&tcod_color);
|
|
108
|
-
}
|
|
109
|
-
int TDL_color_set_value(int color, float h) {
|
|
110
|
-
TCOD_color_t tcod_color = TDL_color_from_int(color);
|
|
111
|
-
TCOD_color_set_value(&tcod_color, h);
|
|
112
|
-
return TDL_color_to_int(&tcod_color);
|
|
113
|
-
}
|
|
114
|
-
int TDL_color_shift_hue(int color, float hue_shift) {
|
|
115
|
-
TCOD_color_t tcod_color = TDL_color_from_int(color);
|
|
116
|
-
TCOD_color_shift_hue(&tcod_color, hue_shift);
|
|
117
|
-
return TDL_color_to_int(&tcod_color);
|
|
118
|
-
}
|
|
119
|
-
int TDL_color_scale_HSV(int color, float scoef, float vcoef) {
|
|
120
|
-
TCOD_color_t tcod_color = TDL_color_from_int(color);
|
|
121
|
-
TCOD_color_scale_HSV(&tcod_color, scoef, vcoef);
|
|
122
|
-
return TDL_color_to_int(&tcod_color);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
#define TRANSPARENT_BIT 1
|
|
126
|
-
#define WALKABLE_BIT 2
|
|
127
|
-
#define FOV_BIT 4
|
|
128
|
-
|
|
129
|
-
/* set map transparent and walkable flags from a buffer */
|
|
130
|
-
void TDL_map_data_from_buffer(TCOD_map_t map, uint8_t* buffer) {
|
|
131
|
-
int width = TCOD_map_get_width(map);
|
|
132
|
-
int height = TCOD_map_get_height(map);
|
|
133
|
-
int x;
|
|
134
|
-
int y;
|
|
135
|
-
for (y = 0; y < height; y++) {
|
|
136
|
-
for (x = 0; x < width; x++) {
|
|
137
|
-
int i = y * width + x;
|
|
138
|
-
TCOD_map_set_properties(map, x, y, (buffer[i] & TRANSPARENT_BIT) != 0, (buffer[i] & WALKABLE_BIT) != 0);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/* get fov from tcod map */
|
|
144
|
-
void TDL_map_fov_to_buffer(TCOD_map_t map, uint8_t* buffer, bool cumulative) {
|
|
145
|
-
int width = TCOD_map_get_width(map);
|
|
146
|
-
int height = TCOD_map_get_height(map);
|
|
147
|
-
int x;
|
|
148
|
-
int y;
|
|
149
|
-
for (y = 0; y < height; y++) {
|
|
150
|
-
for (x = 0; x < width; x++) {
|
|
151
|
-
int i = y * width + x;
|
|
152
|
-
if (!cumulative) { buffer[i] &= ~FOV_BIT; }
|
|
153
|
-
if (TCOD_map_is_in_fov(map, x, y)) { buffer[i] |= FOV_BIT; }
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/* set functions are called conditionally for ch/fg/bg (-1 is ignored)
|
|
159
|
-
colors are converted to TCOD_color_t types in C and is much faster than in
|
|
160
|
-
Python.
|
|
161
|
-
Also Python indexing is used, negative x/y will index to (width-x, etc.) */
|
|
162
|
-
int TDL_console_put_char_ex(TCOD_console_t console, int x, int y, int ch, int fg, int bg, TCOD_bkgnd_flag_t blend) {
|
|
163
|
-
int width = TCOD_console_get_width(console);
|
|
164
|
-
int height = TCOD_console_get_height(console);
|
|
165
|
-
TCOD_color_t color;
|
|
166
|
-
|
|
167
|
-
if (x < -width || x >= width || y < -height || y >= height) { return -1; /* outside of console */ }
|
|
168
|
-
|
|
169
|
-
/* normalize x, y */
|
|
170
|
-
if (x < 0) { x += width; };
|
|
171
|
-
if (y < 0) { y += height; };
|
|
172
|
-
|
|
173
|
-
if (ch != -1) { TCOD_console_set_char(console, x, y, ch); }
|
|
174
|
-
if (fg != -1) {
|
|
175
|
-
color = TDL_color_from_int(fg);
|
|
176
|
-
TCOD_console_set_char_foreground(console, x, y, color);
|
|
177
|
-
}
|
|
178
|
-
if (bg != -1) {
|
|
179
|
-
color = TDL_color_from_int(bg);
|
|
180
|
-
TCOD_console_set_char_background(console, x, y, color, blend);
|
|
181
|
-
}
|
|
182
|
-
return 0;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
int TDL_console_get_bg(TCOD_console_t console, int x, int y) {
|
|
186
|
-
TCOD_color_t tcod_color = TCOD_console_get_char_background(console, x, y);
|
|
187
|
-
return TDL_color_to_int(&tcod_color);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
int TDL_console_get_fg(TCOD_console_t console, int x, int y) {
|
|
191
|
-
TCOD_color_t tcod_color = TCOD_console_get_char_foreground(console, x, y);
|
|
192
|
-
return TDL_color_to_int(&tcod_color);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
void TDL_console_set_bg(TCOD_console_t console, int x, int y, int color, TCOD_bkgnd_flag_t flag) {
|
|
196
|
-
TCOD_console_set_char_background(console, x, y, TDL_color_from_int(color), flag);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
void TDL_console_set_fg(TCOD_console_t console, int x, int y, int color) {
|
|
200
|
-
TCOD_console_set_char_foreground(console, x, y, TDL_color_from_int(color));
|
|
201
|
-
}
|
tcod-19.3.0/tcod/tdl.h
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
#ifndef PYTHON_TCOD_TDL_H_
|
|
2
|
-
#define PYTHON_TCOD_TDL_H_
|
|
3
|
-
|
|
4
|
-
#include "../libtcod/src/libtcod/libtcod.h"
|
|
5
|
-
|
|
6
|
-
/* TDL FUNCTIONS ---------------------------------------------------------- */
|
|
7
|
-
|
|
8
|
-
TCOD_value_t TDL_list_get_union(TCOD_list_t l, int idx);
|
|
9
|
-
bool TDL_list_get_bool(TCOD_list_t l, int idx);
|
|
10
|
-
char TDL_list_get_char(TCOD_list_t l, int idx);
|
|
11
|
-
int TDL_list_get_int(TCOD_list_t l, int idx);
|
|
12
|
-
float TDL_list_get_float(TCOD_list_t l, int idx);
|
|
13
|
-
char* TDL_list_get_string(TCOD_list_t l, int idx);
|
|
14
|
-
TCOD_color_t TDL_list_get_color(TCOD_list_t l, int idx);
|
|
15
|
-
TCOD_dice_t TDL_list_get_dice(TCOD_list_t l, int idx);
|
|
16
|
-
/*bool (*TDL_parser_new_property_func)(const char *propname, TCOD_value_type_t
|
|
17
|
-
* type, TCOD_value_t *value);*/
|
|
18
|
-
|
|
19
|
-
/* color functions modified to use integers instead of structs */
|
|
20
|
-
TCOD_color_t TDL_color_from_int(int color);
|
|
21
|
-
int TDL_color_to_int(TCOD_color_t* color);
|
|
22
|
-
int* TDL_color_int_to_array(int color);
|
|
23
|
-
int TDL_color_RGB(int r, int g, int b);
|
|
24
|
-
int TDL_color_HSV(float h, float s, float v);
|
|
25
|
-
bool TDL_color_equals(int c1, int c2);
|
|
26
|
-
int TDL_color_add(int c1, int c2);
|
|
27
|
-
int TDL_color_subtract(int c1, int c2);
|
|
28
|
-
int TDL_color_multiply(int c1, int c2);
|
|
29
|
-
int TDL_color_multiply_scalar(int c, float value);
|
|
30
|
-
int TDL_color_lerp(int c1, int c2, float coef);
|
|
31
|
-
float TDL_color_get_hue(int color);
|
|
32
|
-
float TDL_color_get_saturation(int color);
|
|
33
|
-
float TDL_color_get_value(int color);
|
|
34
|
-
int TDL_color_set_hue(int color, float h);
|
|
35
|
-
int TDL_color_set_saturation(int color, float h);
|
|
36
|
-
int TDL_color_set_value(int color, float h);
|
|
37
|
-
int TDL_color_shift_hue(int color, float hue_shift);
|
|
38
|
-
int TDL_color_scale_HSV(int color, float scoef, float vcoef);
|
|
39
|
-
|
|
40
|
-
/* map data functions using a bitmap of:
|
|
41
|
-
* 1 = is_transparant
|
|
42
|
-
* 2 = is_walkable
|
|
43
|
-
* 4 = in_fov
|
|
44
|
-
*/
|
|
45
|
-
void TDL_map_data_from_buffer(TCOD_map_t map, uint8_t* buffer);
|
|
46
|
-
void TDL_map_fov_to_buffer(TCOD_map_t map, uint8_t* buffer, bool cumulative);
|
|
47
|
-
|
|
48
|
-
int TDL_console_put_char_ex(TCOD_console_t console, int x, int y, int ch, int fg, int bg, TCOD_bkgnd_flag_t flag);
|
|
49
|
-
int TDL_console_get_bg(TCOD_console_t console, int x, int y);
|
|
50
|
-
int TDL_console_get_fg(TCOD_console_t console, int x, int y);
|
|
51
|
-
void TDL_console_set_bg(TCOD_console_t console, int x, int y, int color, TCOD_bkgnd_flag_t flag);
|
|
52
|
-
void TDL_console_set_fg(TCOD_console_t console, int x, int y, int color);
|
|
53
|
-
|
|
54
|
-
#endif /* PYTHON_TCOD_TDL_H_ */
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|