I am writing a ‘simple’ program that uses command line arguments as parameters to draw various shapes in my program.
Consequently, different pictures will be drawn according to the command line arguments the user enters.
I am asking, is there a way to send arguments to the function you have registered with glutDisplayFunc? I have tried to do this but it will not compile.
Thanks for any help.