]> git.sesse.net Git - movit/blob - init.h
Add the weight combining back, now that we have proper control over the interpolation...
[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. (In time, for instance, we will query
6 // about extensions here.)
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 #endif  // !defined(_INIT_H)