X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=init.h;fp=init.h;h=e2b7f6636989b8afe38bd2751144c38c4f02c9c7;hp=9c371e0316b4b6987a4a2e70ab995127d399e9d2;hb=5614a34b00bbcfdb3d0f5a7dc1fc4205e7088cdf;hpb=29072985d0a00a53e5b578a1444cee61a0c9e1f2 diff --git a/init.h b/init.h index 9c371e0..e2b7f66 100644 --- a/init.h +++ b/init.h @@ -1,10 +1,17 @@ #ifndef _INIT_H #define _INIT_H +#include + // 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.