Bind and wrap opengl functions needed for textures