As in the title
Using glClear.
glClearColor(0.0,0.0,0.0); glClear(GL_COLOR_BUFFER_BIT); SwapBuffers();