OpenGL uses the painter algorithm to achieve the elimination of the hidden face of the rotating cube