Hi everyone:
I'm doing a effect like when I click in then window somewhere, there will be a explosion effect. But, here is a requirement : When I continually click on different position, the previous explosion effect should not disappear immediately, I mean they should be work on there own life span.
The first of my solution is that I build a render queue and a position queue. However, it doesn't work. Because it cannot render the current mouse position explosion effect when previous explosion effect is still working.
So I tried to create a thread when I click. And I hope each thread could finish one explosion effects. But there must something wrong when I call the Draw() function, because Draw() is also called by gluDisplayFunc(Draw);
Does anyone have solution ? Thank you very much.