Draw the 2d tile image using openGL and C++