< index < 2. Console emulator < 2.2 Drawing on the root console |
===================================== |
C++ : void TCODConsole::hline(int x,int y, int l) C : void TCOD_console_hline(TCOD_console_t con,int x,int y, int l)Draws an horizontal line in the console, using ASCII code TCOD_CHAR_HLINE (196), and the console's default background/foreground colors.
Parameter | Description |
---|---|
con | In the C version, the offscreen console handler or NULL for the root console. |
x,y | Coordinates of the line's left end in the console. 0 <= x < console width 0 <= y < console height |
l | The length of the line in cells 1 <= l <= console width - x |