#include <GL/glew.h>
+#include <assert.h>
+#include <stddef.h>
+#include <algorithm>
#include <string>
#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;
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;
} // 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();