boost::flyweight<boost::flyweights::key_value<String,Texture> >** textures;
Texture(const String& filename , bool toAlpha = false);
boost::flyweight<boost::flyweights::key_value<String,Texture> >** textures;
Texture(const String& filename , bool toAlpha = false);
Quote:Original post by LorenzoGatti
Whatever the Texture constructor takes as parameters, you still have Texture instances to feed key_value<String,Texture>; if you use the same image data for both a luminance and an alpha texture (unlikely) you can just give the two separate textures different names.
If you are directly using file names for keys, the only possible cause of perplexity that I can imagine, stop now. The names used to refer to textures in your code and what files they are loaded from are two different things.