]> git.tdb.fi Git - libs/gl.git/blob - source/pixelformat.h
Move Image to mspgbase
[libs/gl.git] / source / pixelformat.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_PIXELFORMAT_H_
9 #define MSP_GL_PIXELFORMAT_H_
10
11 #include <istream>
12 #include <msp/gbase/pixelformat.h>
13 #include "gl.h"
14
15 namespace Msp {
16 namespace GL {
17
18 enum PixelFormat
19 {
20         COLOR_INDEX     = GL_COLOR_INDEX,
21         STENCIL_INDEX   = GL_STENCIL_INDEX,
22         DEPTH_COMPONENT = GL_DEPTH_COMPONENT,
23         RED             = GL_RED,
24         GREEN           = GL_GREEN,
25         BLUE            = GL_BLUE,
26         ALPHA           = GL_ALPHA,
27         RGB             = GL_RGB,
28         RGBA            = GL_RGBA,
29         BGR             = GL_BGR,
30         BGRA            = GL_BGRA,
31         LUMINANCE       = GL_LUMINANCE,
32         LUMINANCE_ALPHA = GL_LUMINANCE_ALPHA
33 };
34
35 std::istream &operator>>(std::istream &, PixelFormat &);
36
37 PixelFormat pixelformat_from_graphics(Graphics::PixelFormat);
38
39 } // namespace GL
40 } // namespace Msp
41
42 #endif