My name is Jane Liu. I hope somebady can help me on my openGl project. In my program, I have a function void vis £¨void£©, and I call glutDisplayFunc(vis) and glutMainLoop() to render the objects. Everything works fine. But somehow, the project requires me to pass a pointer as argument to the vis funtion, which violate the prototype of glutDisplayFunc and glutMianLoop rotine. Is there any way to render the objects without calling glutDisplayFunc and glutMianLoop rotine? Or call them but with a parameter passing vis?
I don’t know how I can do this parameter passing issue, and already spend a lot time to try to solve the problem.
Can anyone help? Thanks.