X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprimitivetype.cpp;h=c9a827926a108805ef9c7e1b6aba8fc7c02f4699;hp=c11a59f7fd1da1e067f50893e1a4a407756a9c29;hb=HEAD;hpb=f71aee8c20ff85e4857e4dfad0c20ce606ea3717 diff --git a/source/primitivetype.cpp b/source/primitivetype.cpp deleted file mode 100644 index c11a59f7..00000000 --- a/source/primitivetype.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#include "primitivetype.h" - -namespace Msp { -namespace GL { - -std::istream &operator>>(std::istream &in, PrimitiveType &pt) -{ - std::string str; - in>>str; - - if(str=="POINTS") - pt=POINTS; - else if(str=="LINES") - pt=LINES; - else if(str=="LINE_LOOP") - pt=LINE_LOOP; - else if(str=="LINE_STRIP") - pt=LINE_STRIP; - else if(str=="TRIANGLES") - pt=TRIANGLES; - else if(str=="TRIANGLE_STRIP") - pt=TRIANGLE_STRIP; - else if(str=="TRIANGLE_FAN") - pt=TRIANGLE_FAN; - else if(str=="QUADS") - pt=QUADS; - else if(str=="QUAD_STRIP") - pt=QUAD_STRIP; - else if(str=="POLYGON") - pt=POLYGON; - else - in.setstate(std::ios_base::failbit); - - return in; -} - -} // namespace GL -} // namespace Msp