Collection of useful function for OpenGL common tasks