GLUT two windows?

I’m currently tryingt t use two windows in glut (unix). Can two windows share the same display function?

I’m just starting, but I think it works just like it does with one. Example:http://www.tjhsst.edu/~dhyatt/superap/code/twowindows.c

I didn’t write it, my instructor did.