I have set up my opengl scene in a panel which is inside a form.
BUT I NEED A LOOP FUNCTION !!!!!
Theres no such thing as a message loop. I thought there might be some Idle callback (delegate, whatever) on my Form, so I can plug drawScene() to it, but there wasnt. I found one on the Application object (Application::add_Idle, but it doesnt function correctly), but even after I added an EventHandler to it, it didnt work (the GL view would update only if I moved the mouse really fast in the client area). Besides, Application::Idle is too "global" for my taste. Rigth now, Im doing it with timers: each 1 ms, I trigger a redraw. But this isnt efficient, and it locks me down to a fixed framerate. And what if the system is too slow? All those unprocessed WM_TIMER messages that would queue up... If anyone has a better idea, Id appreciate it.
thanks!!!! help !
BUT I NEED A LOOP FUNCTION !!!!!
Theres no such thing as a message loop. I thought there might be some Idle callback (delegate, whatever) on my Form, so I can plug drawScene() to it, but there wasnt. I found one on the Application object (Application::add_Idle, but it doesnt function correctly), but even after I added an EventHandler to it, it didnt work (the GL view would update only if I moved the mouse really fast in the client area). Besides, Application::Idle is too "global" for my taste. Rigth now, Im doing it with timers: each 1 ms, I trigger a redraw. But this isnt efficient, and it locks me down to a fixed framerate. And what if the system is too slow? All those unprocessed WM_TIMER messages that would queue up... If anyone has a better idea, Id appreciate it.
thanks!!!! help !