-void Technique::Loader::shader_texture(const string &n)
-{
- string::size_type eqsign=n.find('=');
- TextureSlot tex;
- if(eqsign!=string::npos)
- {
- tex.name=n.substr(0, eqsign);
- tex.texture=coll.get<Texture>(n.substr(eqsign+1));
- }
- else
- {
- string::size_type dot=n.rfind('.');
- tex.name=n.substr(0, dot);
- tex.texture = coll.get<Texture>(n);
- }
- for(string::iterator i=tex.name.begin(); i!=tex.name.end(); ++i)
- if(!isalnum(*i))
- *i='_';
- tech.textures.push_back(tex);
-}