]> git.tdb.fi Git - libs/gl.git/blob - source/pixelformat.h
Update header names
[libs/gl.git] / source / pixelformat.h
1 #ifndef MSP_GL_PIXELFORMAT_H_
2 #define MSP_GL_PIXELFORMAT_H_
3
4 #include <istream>
5 #include <msp/graphics/pixelformat.h>
6 #include "gl.h"
7 #include <GL/glext.h>
8
9 namespace Msp {
10 namespace GL {
11
12 enum PixelFormat
13 {
14         COLOR_INDEX     = GL_COLOR_INDEX,
15         STENCIL_INDEX   = GL_STENCIL_INDEX,
16         DEPTH_COMPONENT = GL_DEPTH_COMPONENT,
17         RED             = GL_RED,
18         GREEN           = GL_GREEN,
19         BLUE            = GL_BLUE,
20         ALPHA           = GL_ALPHA,
21         RGB             = GL_RGB,
22         RGBA            = GL_RGBA,
23         RGB8            = GL_RGB8,
24         RGB16F          = GL_RGB16F_ARB,
25         RGB32F          = GL_RGB32F_ARB,
26         RGBA8           = GL_RGBA8,
27         RGBA16F         = GL_RGBA16F_ARB,
28         RGBA32F         = GL_RGBA32F_ARB,
29         BGR             = GL_BGR,
30         BGRA            = GL_BGRA,
31         LUMINANCE       = GL_LUMINANCE,
32         LUMINANCE8      = GL_LUMINANCE8,
33         LUMINANCE16F    = GL_LUMINANCE16F_ARB,
34         LUMINANCE32F    = GL_LUMINANCE32F_ARB,
35         LUMINANCE_ALPHA    = GL_LUMINANCE_ALPHA,
36         LUMINANCE_ALPHA8   = GL_LUMINANCE8_ALPHA8,
37         LUMINANCE_ALPHA16F = GL_LUMINANCE_ALPHA16F_ARB,
38         LUMINANCE_ALPHA32F = GL_LUMINANCE_ALPHA32F_ARB,
39 };
40
41 std::istream &operator>>(std::istream &, PixelFormat &);
42
43 PixelFormat pixelformat_from_graphics(Graphics::PixelFormat);
44
45 PixelFormat get_base_pixelformat(PixelFormat);
46
47 } // namespace GL
48 } // namespace Msp
49
50 #endif