At the moment I am redrawing my GLCanvas in the following manner:
void Viewport::OnIdle (wxIdleEvent &event)
{
Refresh ();
}
This is all well and good, but when I resize the window, bring up a menu, etc, it stops recieving OnIdle events, therefor no drawing occurs. Is there any way to keep the canvas rendering regardless of what is happening to the window? I've uploaded a sample app here so you can see what I mean. Bring up a menu or resize the window and it freezes until the mouse button is released.
Thanks
Continuous drawing of a GLCanvas
-
- In need of some credit
- Posts: 6
- Joined: Mon Jul 11, 2005 1:35 pm