Thanks to the people who helped me before.
I have one more question on console IO with OpenGL. I set up my program to read some data from the console (Dos window) and draw the picture based on this data.
How do I regain control of my program after I call glutMainLoop? (So I can get more input from the user? Can I display my picture without using this “infinite?” loop.
I want to go back and forth from the picture to the console (take input, draw/ take input/draw…and so on)
Can someone help me? Thanks again.