// set uniform to 2D vector void Shader::SetUniform(const c8 * const name, const float2 &val) { PUSH_ACTIVE_SHADER(t); Activate(); glUniform2fv(GetUniformLocation(name),1, val.GetVec()); POP_ACTIVE_SHADER(t); };