]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pixelformat.h
Pull in sized depth component formats from ARB_depth_texture
[libs/gl.git] / source / pixelformat.h
index 7a562cc948408bccf0eaaba9982df73edc7307e7..8e3e6901e95d0e40c7357b3e2389429dabb14e8d 100644 (file)
@@ -4,6 +4,7 @@
 #include <msp/graphics/pixelformat.h>
 #include <msp/strings/lexicalcast.h>
 #include "gl.h"
+#include <msp/gl/extensions/arb_depth_texture.h>
 #include <msp/gl/extensions/arb_texture_float.h>
 #include <msp/gl/extensions/ext_bgra.h>
 #include <msp/gl/extensions/ext_texture_srgb.h>
@@ -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,