I am using C# with Visual Studio Express 2008.
I am also using the Tao Framework OpenGL dlls.
What actually causes the SimpleOpenGLControl to redraw when I need it to redraw?
When the SimpleOpenGLControl resides on the active form, all I need to do in order to redraw is call glFlush()
and SimpleOpenGLControl.Invalidate()
.
However, when the control does not reside on the active form I can not get it to redraw, at all. I have found a way to get the control to invalidate through unorthodox means, but this does not redraw the contents of the control (the 3D rendering), it simply leaves me with a blank (black) control.
What do I need to do in order to get the control to actually redraw, regardless of which form is active?