Function TCOD_load_xp

Function Documentation

int TCOD_load_xp(const char *path, int n, TCOD_Console **out)

Load an array of consoles from a REXPaint file.

New in version 1.18.

Parameters
  • path – The path to the REXPaint file, can not be NULL.

  • n – The size of the out array. Can be zero.

  • out – The array to fill with loaded consoles.

Returns

Returns the number of consoles held by the file. Returns a negative error code on error.