Exemplo n.º 1
0
void building_draw(building *b)
{
    TCOD_color_t old_color = TCOD_console_get_default_foreground(NULL);
	TCOD_console_set_default_foreground(NULL, b->model->color);
	TCOD_console_print_frame(NULL, b->p.x, b->p.y,
		b->model->width, b->model->height,
		false, TCOD_BKGND_NONE, NULL);
	TCOD_console_print(NULL, b->p.x + 1, b->p.y, b->model->code);
	TCOD_console_set_default_foreground(NULL, old_color);
}
Exemplo n.º 2
0
colornum_t TCOD_console_get_default_foreground_wrapper(TCOD_console_t con)
{
  return color_to_int(TCOD_console_get_default_foreground (con));
}
Exemplo n.º 3
0
TCODColor TCODConsole::getDefaultForeground() const {
	return TCOD_console_get_default_foreground(data);
}