Skip to content

Commit bcaba33

Browse files
committed
Update to libtcod 2.2.0
1 parent 9368809 commit bcaba33

File tree

4 files changed

+11
-138
lines changed

4 files changed

+11
-138
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ This project adheres to [Semantic Versioning](https://semver.org/) since version
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- Update to libtcod 2.2.1.
12+
13+
### Fixed
14+
15+
- `SDL_RENDER_SCALE_QUALITY` is now respected again since the change to SDL3.
16+
917
## [19.4.1] - 2025-08-27
1018

1119
### Fixed

build_libtcod.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
r"TCODLIB_C?API|TCOD_PUBLIC|TCOD_NODISCARD|TCOD_DEPRECATED_NOMESSAGE|TCOD_DEPRECATED_ENUM"
4444
r"|(TCOD_DEPRECATED\(\".*?\"\))"
4545
r"|(TCOD_DEPRECATED|TCODLIB_FORMAT)\([^)]*\)|__restrict"
46+
r"|TCODLIB_(BEGIN|END)_IGNORE_DEPRECATIONS"
4647
)
4748
RE_VAFUNC = re.compile(r"^[^;]*\([^;]*va_list.*\);", re.MULTILINE)
4849
RE_INLINE = re.compile(r"(^.*?inline.*?\(.*?\))\s*\{.*?\}$", re.DOTALL | re.MULTILINE)

tcod/_libtcod.pyi

Lines changed: 1 addition & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -7528,142 +7528,6 @@ class _lib:
75287528
def TCOD_zip_skip_bytes(zip: Any, nbBytes: Any, /) -> None:
75297529
"""void TCOD_zip_skip_bytes(TCOD_zip_t zip, uint32_t nbBytes)"""
75307530

7531-
@staticmethod
7532-
def TDL_color_HSV(h: float, s: float, v: float, /) -> int:
7533-
"""int TDL_color_HSV(float h, float s, float v)"""
7534-
7535-
@staticmethod
7536-
def TDL_color_RGB(r: int, g: int, b: int, /) -> int:
7537-
"""int TDL_color_RGB(int r, int g, int b)"""
7538-
7539-
@staticmethod
7540-
def TDL_color_add(c1: int, c2: int, /) -> int:
7541-
"""int TDL_color_add(int c1, int c2)"""
7542-
7543-
@staticmethod
7544-
def TDL_color_equals(c1: int, c2: int, /) -> bool:
7545-
"""bool TDL_color_equals(int c1, int c2)"""
7546-
7547-
@staticmethod
7548-
def TDL_color_from_int(color: int, /) -> Any:
7549-
"""TCOD_color_t TDL_color_from_int(int color)"""
7550-
7551-
@staticmethod
7552-
def TDL_color_get_hue(color: int, /) -> float:
7553-
"""float TDL_color_get_hue(int color)"""
7554-
7555-
@staticmethod
7556-
def TDL_color_get_saturation(color: int, /) -> float:
7557-
"""float TDL_color_get_saturation(int color)"""
7558-
7559-
@staticmethod
7560-
def TDL_color_get_value(color: int, /) -> float:
7561-
"""float TDL_color_get_value(int color)"""
7562-
7563-
@staticmethod
7564-
def TDL_color_int_to_array(color: int, /) -> Any:
7565-
"""int *TDL_color_int_to_array(int color)"""
7566-
7567-
@staticmethod
7568-
def TDL_color_lerp(c1: int, c2: int, coef: float, /) -> int:
7569-
"""int TDL_color_lerp(int c1, int c2, float coef)"""
7570-
7571-
@staticmethod
7572-
def TDL_color_multiply(c1: int, c2: int, /) -> int:
7573-
"""int TDL_color_multiply(int c1, int c2)"""
7574-
7575-
@staticmethod
7576-
def TDL_color_multiply_scalar(c: int, value: float, /) -> int:
7577-
"""int TDL_color_multiply_scalar(int c, float value)"""
7578-
7579-
@staticmethod
7580-
def TDL_color_scale_HSV(color: int, scoef: float, vcoef: float, /) -> int:
7581-
"""int TDL_color_scale_HSV(int color, float scoef, float vcoef)"""
7582-
7583-
@staticmethod
7584-
def TDL_color_set_hue(color: int, h: float, /) -> int:
7585-
"""int TDL_color_set_hue(int color, float h)"""
7586-
7587-
@staticmethod
7588-
def TDL_color_set_saturation(color: int, h: float, /) -> int:
7589-
"""int TDL_color_set_saturation(int color, float h)"""
7590-
7591-
@staticmethod
7592-
def TDL_color_set_value(color: int, h: float, /) -> int:
7593-
"""int TDL_color_set_value(int color, float h)"""
7594-
7595-
@staticmethod
7596-
def TDL_color_shift_hue(color: int, hue_shift: float, /) -> int:
7597-
"""int TDL_color_shift_hue(int color, float hue_shift)"""
7598-
7599-
@staticmethod
7600-
def TDL_color_subtract(c1: int, c2: int, /) -> int:
7601-
"""int TDL_color_subtract(int c1, int c2)"""
7602-
7603-
@staticmethod
7604-
def TDL_color_to_int(color: Any, /) -> int:
7605-
"""int TDL_color_to_int(TCOD_color_t *color)"""
7606-
7607-
@staticmethod
7608-
def TDL_console_get_bg(console: Any, x: int, y: int, /) -> int:
7609-
"""int TDL_console_get_bg(TCOD_console_t console, int x, int y)"""
7610-
7611-
@staticmethod
7612-
def TDL_console_get_fg(console: Any, x: int, y: int, /) -> int:
7613-
"""int TDL_console_get_fg(TCOD_console_t console, int x, int y)"""
7614-
7615-
@staticmethod
7616-
def TDL_console_put_char_ex(console: Any, x: int, y: int, ch: int, fg: int, bg: int, flag: Any, /) -> int:
7617-
"""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)"""
7618-
7619-
@staticmethod
7620-
def TDL_console_set_bg(console: Any, x: int, y: int, color: int, flag: Any, /) -> None:
7621-
"""void TDL_console_set_bg(TCOD_console_t console, int x, int y, int color, TCOD_bkgnd_flag_t flag)"""
7622-
7623-
@staticmethod
7624-
def TDL_console_set_fg(console: Any, x: int, y: int, color: int, /) -> None:
7625-
"""void TDL_console_set_fg(TCOD_console_t console, int x, int y, int color)"""
7626-
7627-
@staticmethod
7628-
def TDL_list_get_bool(l: Any, idx: int, /) -> bool:
7629-
"""bool TDL_list_get_bool(TCOD_list_t l, int idx)"""
7630-
7631-
@staticmethod
7632-
def TDL_list_get_char(l: Any, idx: int, /) -> Any:
7633-
"""char TDL_list_get_char(TCOD_list_t l, int idx)"""
7634-
7635-
@staticmethod
7636-
def TDL_list_get_color(l: Any, idx: int, /) -> Any:
7637-
"""TCOD_color_t TDL_list_get_color(TCOD_list_t l, int idx)"""
7638-
7639-
@staticmethod
7640-
def TDL_list_get_dice(l: Any, idx: int, /) -> Any:
7641-
"""TCOD_dice_t TDL_list_get_dice(TCOD_list_t l, int idx)"""
7642-
7643-
@staticmethod
7644-
def TDL_list_get_float(l: Any, idx: int, /) -> float:
7645-
"""float TDL_list_get_float(TCOD_list_t l, int idx)"""
7646-
7647-
@staticmethod
7648-
def TDL_list_get_int(l: Any, idx: int, /) -> int:
7649-
"""int TDL_list_get_int(TCOD_list_t l, int idx)"""
7650-
7651-
@staticmethod
7652-
def TDL_list_get_string(l: Any, idx: int, /) -> Any:
7653-
"""char *TDL_list_get_string(TCOD_list_t l, int idx)"""
7654-
7655-
@staticmethod
7656-
def TDL_list_get_union(l: Any, idx: int, /) -> Any:
7657-
"""TCOD_value_t TDL_list_get_union(TCOD_list_t l, int idx)"""
7658-
7659-
@staticmethod
7660-
def TDL_map_data_from_buffer(map: Any, buffer: Any, /) -> None:
7661-
"""void TDL_map_data_from_buffer(TCOD_map_t map, uint8_t *buffer)"""
7662-
7663-
@staticmethod
7664-
def TDL_map_fov_to_buffer(map: Any, buffer: Any, cumulative: bool, /) -> None:
7665-
"""void TDL_map_fov_to_buffer(TCOD_map_t map, uint8_t *buffer, bool cumulative)"""
7666-
76677531
@staticmethod
76687532
def _libtcod_log_watcher(message: Any, userdata: Any, /) -> None:
76697533
"""void _libtcod_log_watcher(const TCOD_LogMessage *message, void *userdata)"""
@@ -9648,7 +9512,7 @@ class _lib:
96489512
TCOD_LOG_INFO: Final[Literal[20]] = 20
96499513
TCOD_LOG_WARNING: Final[Literal[30]] = 30
96509514
TCOD_MAJOR_VERSION: Final[Literal[2]] = 2
9651-
TCOD_MINOR_VERSION: Final[Literal[1]] = 1
9515+
TCOD_MINOR_VERSION: Final[Literal[2]] = 2
96529516
TCOD_NB_RENDERERS: Final[int]
96539517
TCOD_NOISE_DEFAULT: Final[Literal[0]] = 0
96549518
TCOD_NOISE_MAX_DIMENSIONS: Final[Literal[4]] = 4

0 commit comments

Comments
 (0)