]> git.sesse.net Git - movit/blobdiff - init.h
Allow data files to be fetched somewhere else than the current directory.
[movit] / init.h
diff --git a/init.h b/init.h
index 9c371e0316b4b6987a4a2e70ab995127d399e9d2..e2b7f6636989b8afe38bd2751144c38c4f02c9c7 100644 (file)
--- a/init.h
+++ b/init.h
@@ -1,10 +1,17 @@
 #ifndef _INIT_H
 #define _INIT_H
 
+#include <string>
+
 // Initialize the library; in particular, will query the GPU for information
 // that is needed by various components. For instance, it verifies that
 // we have all the OpenGL extensions we need.
-void init_movit();
+//
+// The parameter gives which directory to read .frag files from.
+// This is a temporary hack until we add something more solid.
+// If you call init_movit() twice with different values for data_directory,
+// only the first will count.
+void init_movit(const std::string& data_directory);
 
 // GPU features. These are not intended for end-user use.