Giau P wrote: > Hello, > > Can any one tell me how to clear my window to redraw something new? > > I have a class which inherits from Fl_Gl_Window. I can draw on it but when a > button is click, I need to clear the the window to redraw with new data > populated when a button is click.
glClear() is what you'd want I think. http://www.opengl.org/sdk/docs/man3/xhtml/glClear.xml You can look at this simple FLTK/OpenGL example which shows how playing with an FLTK widget can affect redrawing the gl window: http://seriss.com/people/erco/fltk/#OpenGlSimpleWidgets _______________________________________________ fltk-opengl mailing list fltk-opengl@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-opengl