Exemplo n.º 1
0
void Creeping::
init()
{
	DEBUG_PRINT_LINE;

	deinit();
	
	font_render = new FontRender(conf.get_conf());
	
	std::vector<std::string>  text;
	std::string logo;
	
	MessageReader mr;
	mr.make(conf.get_conf()->lineText, conf.get_conf()->bRss, &text, &logo);

	std::vector<std::string>::iterator i;
	
	for (i = text.begin(); i != text.end(); i++)
	{
		CSurface * surf = new_surface(wnd);
		surf->set_tex_color(conf.get_conf()->window.clForeground);
		surf->set_text( &(*i), font_render);
	}
	
	if(!logo.empty())
	{
		CSurface * surf = new_surface(wnd);
		surf->set_image(&logo);
		surf->as_logo();		
	}

	DEBUG_PRINT_LINE;
}