gl: minimal interface to texture objects