Function TCOD_console_list_from_xp

Function Documentation

TCOD_list_t TCOD_console_list_from_xp(const char *filename)

Return a list of consoles from a REXPaint file.

This function can load a REXPaint file with variable layer shapes, which would cause issues for a function like TCOD_console_list_from_xp.

Deprecated since version 1.20: TCOD_list_t is deprecated, use TCOD_load_xp instead.

Parameters

filename[in] A path to the REXPaint file.

Returns

Returns a TCOD_list_t of TCOD_console_t objects. Or NULL on an error. You will need to delete this list and each console individually.