OpenGL functions to perform texture mapping