def clear_viewport(background_color=(0.0, 0.0, 0.0, 1.0)): glClearColor(*background_color) glEnable(GL_DEPTH_TEST) glClearDepth(1.0) glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
def clear_viewport(): glClearColor(0.0, 0.0, 0.0, 1.0) glEnable(GL_DEPTH_TEST) glClearDepth(1.0) glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)