The OpenGL code that defines our geometry is taken from our first example Hello World. Since it is used more than once in this example, we write it in its own function, which is consistent with good programming style.