greatprogrammer
09-10-2005, 03:52 AM
I have developed a C++ program which calculate coordinates for number of points. Now I want to display the points using openGL. In the openGL examples I have gone through, there is no mention of passing information to draw() function from the function which calls it. All the examples contain draw() as a top level function which calls other functions(which themselves contain the whole logic). In my case, one of the functions will calculate the coordinates for points and these points should get displayed. How can I pass the coordinates to draw() so that it would be accessible to draw funcion?