X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=init.h;h=a1e71dd54053b3f168f3c47267eba1512bd2096b;hp=e0dbe63688fff77225e45e4a162b2ad7cf1003df;hb=38fca90c6ffde05e3459c7021e823cef0b3b27ac;hpb=17195eb5da34f03778cde297eb77c486fa0c51bc;ds=sidebyside diff --git a/init.h b/init.h index e0dbe63..a1e71dd 100644 --- a/init.h +++ b/init.h @@ -2,8 +2,8 @@ #define _INIT_H // Initialize the library; in particular, will query the GPU for information -// that is needed by various components. (In time, for instance, we will query -// about extensions here.) +// that is needed by various components. For instance, it verifies that +// we have all the OpenGL extensions we need. void init_movit(); // GPU features. These are not intended for end-user use. @@ -18,4 +18,7 @@ extern bool movit_initialized; // We currently don't bother to test above 2^10. extern float movit_texel_subpixel_precision; +// Whether the GPU in use supports GL_EXT_texture_sRGB. +extern bool movit_srgb_textures_supported; + #endif // !defined(_INIT_H)