X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=init.cpp;h=195dccacc58ae05ee1d11bcb251a63cf08bf7d4e;hp=a70ae058bbf39ddd0eb0b0ae2ee31b3cafef0be9;hb=f4919e93c097501c8adcdfe11b7e79cab2f1cc5c;hpb=5614a34b00bbcfdb3d0f5a7dc1fc4205e7088cdf diff --git a/init.cpp b/init.cpp index a70ae05..195dcca 100644 --- a/init.cpp +++ b/init.cpp @@ -1,10 +1,14 @@ #include +#include +#include +#include #include #include "init.h" #include "util.h" bool movit_initialized = false; +MovitDebugLevel movit_debug_level = MOVIT_DEBUG_ON; float movit_texel_subpixel_precision; bool movit_srgb_textures_supported; @@ -17,7 +21,7 @@ namespace { void measure_texel_subpixel_precision() { - static const unsigned width = 1024; + static const unsigned width = 4096; // Generate a destination texture to render to, and an FBO. GLuint dst_texnum, fbo; @@ -154,13 +158,14 @@ void check_extensions() } // namespace -void init_movit(const std::string& data_directory) +void init_movit(const std::string& data_directory, MovitDebugLevel debug_level) { if (movit_initialized) { return; } movit_data_directory = new std::string(data_directory); + movit_debug_level = debug_level; glewInit();