X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_util.cpp;h=b671620388719b4e7943698124f3fe175c40ab01;hp=f49b47707bde4920fbace424fca80113c979de59;hb=12c11c0e615f7fc17ef7a600ff0c9099f7908dbc;hpb=85f9719bf3519b1f1942738d11601584f5d38725 diff --git a/effect_util.cpp b/effect_util.cpp index f49b477..b671620 100644 --- a/effect_util.cpp +++ b/effect_util.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -6,6 +6,8 @@ using namespace std; +namespace movit { + GLint get_uniform_location(GLuint glsl_program_num, const string &prefix, const string &key) { string name = prefix + "_" + key; @@ -97,3 +99,5 @@ void set_uniform_mat3(GLuint glsl_program_num, const string &prefix, const strin glUniformMatrix3fv(location, 1, GL_FALSE, matrixf); check_error(); } + +} // namespace movit