X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpixelformat.h;h=8e3e6901e95d0e40c7357b3e2389429dabb14e8d;hb=0221e39a685c4f3122a0fae032a7888b5ce40579;hp=0fa6609a1ead97d061ad7f45c9e2a97ff0c805ba;hpb=9dc2c20e8c7ac91d932b12492591b65786e24b0f;p=libs%2Fgl.git diff --git a/source/pixelformat.h b/source/pixelformat.h index 0fa6609a..8e3e6901 100644 --- a/source/pixelformat.h +++ b/source/pixelformat.h @@ -4,6 +4,7 @@ #include #include #include "gl.h" +#include #include #include #include @@ -17,6 +18,9 @@ enum PixelFormat { STENCIL_INDEX = GL_STENCIL_INDEX, DEPTH_COMPONENT = GL_DEPTH_COMPONENT, + DEPTH_COMPONENT16 = GL_DEPTH_COMPONENT16, + DEPTH_COMPONENT24 = GL_DEPTH_COMPONENT24, + DEPTH_COMPONENT32 = GL_DEPTH_COMPONENT32, RGB = GL_RGB, RGBA = GL_RGBA, RGB8 = GL_RGB8, @@ -49,7 +53,7 @@ enum PixelFormat void operator>>(const LexicalConverter &, PixelFormat &); PixelFormat pixelformat_from_graphics(Graphics::PixelFormat); -PixelFormat storage_pixelformat_from_graphics(Graphics::PixelFormat); +PixelFormat storage_pixelformat_from_graphics(Graphics::PixelFormat, bool = false); PixelFormat get_base_pixelformat(PixelFormat); PixelFormat get_srgb_pixelformat(PixelFormat);