This tutorial shows you how to create a simple Windows application that clears the background with red color in OpenGL v 4.4. In lagacy OpenGL (i.e. v 3.0 and less), we had to set the clear state using glClearColor and then call glClear with the GL_COLOR_BUFFER_BIT flag. In modern OpenGL, a new function is provided that does not require setting up of clear color state. This function is called glClearBufferv. For details, refer to the tutorial code example.