libtcod
Loading...
Searching...
No Matches
globals.h File Reference

Manage deprecated global variables. More...

#include "config.h"
#include "tileset.h"

Go to the source code of this file.

Functions

TCOD_TilesetTCOD_get_default_tileset (void)
 Return the default tileset, may be NULL.
void TCOD_set_default_tileset (TCOD_Tileset *tileset)
 Set the default tileset and update the default display to use it.

Detailed Description

Manage deprecated global variables.

Function Documentation

◆ TCOD_get_default_tileset()

TCOD_Tileset * TCOD_get_default_tileset ( void )

Return the default tileset, may be NULL.

A non-NULL return value is a new reference to the global tileset. When you are done you will need to call TCOD_tileset_delete on this pointer.

This function is provisional, the API may change in the future.

embed:rst:leading-asterisk 
.. versionadded:: 1.19

◆ TCOD_set_default_tileset()

void TCOD_set_default_tileset ( TCOD_Tileset * tileset)

Set the default tileset and update the default display to use it.

This will keep alive a reference to the given tileset. If you no longer need the pointer then you should call TCOD_tileset_delete on it after this function.

This function is provisional, the API may change in the future.

embed:rst:leading-asterisk 
.. versionadded:: 1.19