< index < 2. Console emulator < 2.2 Drawing on the root console |
===================================== |
C++ : void TCODConsole::putChar(int x, int y, int c, TCOD_bkgnd_flag_t flag = TCOD_BKGND_SET) C : void TCOD_console_put_char(TCOD_console_t con,int x, int y, int c, TCOD_bkgnd_flag_t flag) Py : console_put_char( con, x, y, c, flag)This function modifies every property of a cell :
Parameter | Description |
---|---|
con | In the C version, the offscreen console handler or NULL for the root console. |
x,y | Coordinates of the cell in the console. 0 <= x < console width 0 <= y < console height |
c | The new ASCII code for the cell between 0 and 255. You can use ASCII constants. |
flag | This flag defines how the cell's background color is modified. See TCOD_bkgnd_flag_t. |