X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=util.cpp;h=9e18e9f71cd4999ddbbda88cf38f4a2568c4d485;hb=eb41fe9da8681138883012170a47958228fbed5b;hp=9c2ce597499d42a829097ddb5e3700341fde2ca1;hpb=9651a4eaae012cdc49c1aa38197861e04f62e91e;p=movit diff --git a/util.cpp b/util.cpp index 9c2ce59..9e18e9f 100644 --- a/util.cpp +++ b/util.cpp @@ -11,6 +11,8 @@ using namespace std; +namespace movit { + extern string *movit_data_directory; void hsv2rgb(float h, float s, float v, float *r, float *g, float *b) @@ -99,7 +101,7 @@ GLuint compile_shader(const string &shader_src, GLenum type) glGetShaderInfoLog(obj, log_length, &log_length, info_log); info_log[log_length] = 0; if (strlen(info_log) > 0) { - printf("shader compile log: %s\n", info_log); + fprintf(stderr, "Shader compile log: %s\n", info_log); } GLint status; @@ -175,3 +177,5 @@ void combine_two_samples(float w1, float w2, float *offset, float *total_weight, assert(*offset >= 0.0f); assert(*offset <= 1.0f); } + +} // namespace movit