]> git.sesse.net Git - movit/blob - init.h
Check required extensions at start.
[movit] / init.h
1 #ifndef _INIT_H
2 #define _INIT_H
3
4 // Initialize the library; in particular, will query the GPU for information
5 // that is needed by various components. For instance, it verifies that
6 // we have all the OpenGL extensions we need.
7 void init_movit();
8
9 // GPU features. These are not intended for end-user use.
10
11 // Whether init_movit() has been called.
12 extern bool movit_initialized;
13
14 // An estimate on the number of different levels the linear texture interpolation
15 // of the GPU can deliver. My Intel card seems to be limited to 2^6 levels here,
16 // while a modern nVidia card (GTX 550 Ti) seem to use 2^8.
17 //
18 // We currently don't bother to test above 2^10.
19 extern float movit_texel_subpixel_precision;
20
21 // Whether the GPU in use supports GL_EXT_texture_sRGB.
22 extern bool movit_srgb_textures_supported;
23
24 #endif  // !defined(_INIT_H)