3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #include "pixelformat.h"
15 istream &operator>>(istream &in, PixelFormat &fmt)
20 if(word=="COLOR_INDEX")
22 else if(word=="STENCIL_INDEX")
24 else if(word=="DEPTH_COMPONENT")
28 else if(word=="GREEN")
32 else if(word=="ALPHA")
42 else if(word=="LUMINANCE")
44 else if(word=="LUMINANCE_ALPHA")
47 in.setstate(ios_base::failbit);