my problem might be more related to C than to Glut.
I wrote my last program using Glut. As you know Glut offers functions like glutDisplayFunc() that are expecting function pointers, of which function has to do the work. Due to this design philosophy I don`t know how to pass e.g. pointers to those functions, passed to the functions of Glut.
This lead to a terrible interface, since most arrays etc. are declared being global. Is there a way to avoid such a wide interface using Glut??