X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fpixelformat.cpp;h=0b13f3ccefa7fe53cf2e5868b157a7d0c0e5588b;hp=738b796c5981fa307c2f9e3f15bc4f94fed1b789;hb=HEAD;hpb=d1800d7ea80290f4913d0203241cef1409656522 diff --git a/source/pixelformat.cpp b/source/pixelformat.cpp deleted file mode 100644 index 738b796c..00000000 --- a/source/pixelformat.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#include "pixelformat.h" - -using namespace std; - -namespace Msp { -namespace GL { - -istream &operator>>(istream &in, PixelFormat &fmt) -{ - string word; - - in>>word; - if(word=="COLOR_INDEX") - fmt=COLOR_INDEX; - else if(word=="STENCIL_INDEX") - fmt=STENCIL_INDEX; - else if(word=="DEPTH_COMPONENT") - fmt=DEPTH_COMPONENT; - else if(word=="RED") - fmt=RED; - else if(word=="GREEN") - fmt=GREEN; - else if(word=="BLUE") - fmt=BLUE; - else if(word=="ALPHA") - fmt=ALPHA; - else if(word=="RGB") - fmt=RGB; - else if(word=="RGBA") - fmt=RGBA; - else if(word=="BGR") - fmt=BGR; - else if(word=="BGRA") - fmt=BGRA; - else if(word=="LUMINANCE") - fmt=LUMINANCE; - else if(word=="LUMINANCE_ALPHA") - fmt=LUMINANCE_ALPHA; - else - in.setstate(ios_base::failbit); - - return in; -} - -} // namespace GL -} // namespace Msp