Example #1
0
	static void	load_font(string name, string font_name, unsigned int size)
	{
		CFont	*rt;
		
		map<string, CFont *>::iterator it;
		it = list.find(name);
		if (it != list.end())
			return ;
		rt = new CFont();
		rt->size = size;
		rt->font_name = font_name;
		rt->load();
		list.insert(pair<string, CFont *>(name, rt));
		cout << "J'ai insere " << name << endl;
	};