X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fvertexformat.cpp;h=1de430870d6a328d363b169f0fb53125bde2614a;hb=43c6495ff3d14a85ee5de169a80fdacf13b7147e;hp=146fc68095be688e4c974c3aefbccf89c71b0b7e;hpb=40c364b04084d11573a9ff9f7be6f1c4cc521f4b;p=libs%2Fgl.git diff --git a/source/vertexformat.cpp b/source/vertexformat.cpp index 146fc680..1de43087 100644 --- a/source/vertexformat.cpp +++ b/source/vertexformat.cpp @@ -165,25 +165,5 @@ void operator>>(const LexicalConverter &conv, VertexComponent &c) throw lexical_error(format("conversion of '%s' to VertexComponent", str)); } -// XXX This will go away eventually -void operator>>(const LexicalConverter &conv, VertexFormat &f) -{ - vector parts = split(conv.get(), '_'); - for(vector::iterator i=parts.begin(); i!=parts.end(); ++i) - { - if(*i=="COLOR4UB") - *i = "COLOR4_UBYTE"; - else if(i->size()==7 && !i->compare(0, 5, "COLOR") && (*i)[6]=='F') - *i = i->substr(0, 6)+"_FLOAT"; - else if(i->size()>=10 && !i->compare(0, 8, "TEXCOORD")) - *i = i->substr(0, 9)+"_"+i->substr(9); - else if(i->size()>=8 && !i->compare(0, 6, "ATTRIB")) - *i = i->substr(0, 7)+"_"+i->substr(7); - } - - for(vector::iterator i=parts.begin(); i!=parts.end(); ++i) - f = (f, lexical_cast(*i)); -} - } // namespace GL } // namespace Msp