Hi opengl people!!!
I wanted do ask a pair of things…
How can i break a “for” statement by click of the mouse using glut or opengl libraries?
i experienced that for this problem the only way is to wait until for finish and i dont know another way…i program in c and a little bit of c++ with visual studio 6
in my program i calculate some vertex and then i would like to make a surface with they but i would like to do it only one time… how could i do?
the number of point is at maximum 260000
Originally posted by courious:
[b]Hi opengl people!!!
I wanted do ask a pair of things…
How can i break a “for” statement by click of the mouse using glut or opengl libraries?
i experienced that for this problem the only way is to wait until for finish and i dont know another way…i program in c and a little bit of c++ with visual studio 6
in my program i calculate some vertex and then i would like to make a surface with they but i would like to do it only one time… how could i do?
the number of point is at maximum 260000
You can use the break command to break out of any loop.
If you’ve got a single-threaded app, your mouse event routine won’t get called right away if you’re already in the middle of another routine. You may have to use some API function similiar to GetAsyncKeyState for the mouse within the for loop.
[This message has been edited by Deiussum (edited 09-12-2002).]