A Moving Wave Pattern in OpenGL with GLUT C++

How to create a wave pattern in OpenGL