I have just started using opengl with visual C++ 6, I cannot pass parameters to functions called from glutDisplayFunc(), please help me out
I cannot understand what your exact question is but assuming you want to know how to register a display callback function here is my reply:
Say you have a function Render() in which you write the rendering related code. This function is called whenever you want to render into the frame buffer.
In order to register this function ( Or tell glut that this is the function to be called whenever the scene has to be rendered) you have to pass the function as a parameter to the glutDisplayFunc()
hope this answers your query.