Function TCOD_load_xp_from_memory¶
Defined in File console_rexpaint.h
Function Documentation¶
-
int TCOD_load_xp_from_memory(int n_data, const unsigned char *data, int n_out, TCOD_Console **out)
Load an array of consoles from a REXPaint file in memory.
You can call this function with
n_out=0
andout=NULL
to get the number of consoles in the file.New in version 1.18.
- Parameters
n_data – The length of the input
data
buffer.data – The buffer where the REXPaint file is held.
n_out – The length of the output console
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.