Welcome to use this OpenGL engine helper Include this file in your project and then call the function with OpenGLHelper:: in front For example OpenGLHelper::vecProj(vec_a, vec_b)