< index
< 2. Console emulator
< 2.4 Using off-screen consoles

=====================================
2.4.3 Destroying an offscreen console
=====================================

C++ : TCODConsole::~TCODConsole()
C   : void TCOD_console_delete(TCOD_console_t console)

Use this function to destroy an offscreen console and release any resources allocated. Don't use it on the root console.
ParameterDescription
conIn the C version, the offscreen console handler.
Example :

C++ : TCODConsole *off1 = new TCODConsole(80,50);
      ... use off1
      delete off1; // destroy the offscreen console
C   : TCOD_console_t off1 = TCOD_console_new(80,50);
      ... use off1
      TCOD_console_delete(off1); /* destroy the offscreen console */