Function TCOD_tileset_assign_tile

Function Documentation

int TCOD_tileset_assign_tile(struct TCOD_Tileset *tileset, int tile_id, int codepoint)

Assign a codepoint to an existing tile based on its tile ID.

Parameters
  • tileset – A TCOD_Tileset pointer, must not be NULL.

  • tile_id – The index of the tile.

  • codepoint – The Unicode codepoint to associate with tile_id.

Returns

Returns a negative value on error.