Roman Burkovsky wrote: > Hi there! > > I just wondering about the opengl concept in FLTK. The context lives as > long as the Gl_Window is shown. It is very impractical from the user's > point of view: When I write Opengl program using WINAPI I simply load > textures when I want (after wglMakeCurrent) and that is pretty. But when > I use FLTK I must shedule the objects initialisation until the first > draw(). That is rather painful. > > So my question is: > If we make GlContext living between Fl_Gl_Window() and ~Fl_Gl_Window() - > wouldn't it be better than the current approach?
Can't do anything until Fl_Gl_Window::show() is called, since the window for the context will not exist. I *think* you can provide your own show() method that calls Fl_Gl_Window::show(), make_current(), and then does your context initialization, but I'm not sure... -- ______________________________________________________________________ Michael Sweet, Easy Software Products mike at easysw dot com Internet Printing and Document Software http://www.easysw.com _______________________________________________ fltk-opengl mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-opengl
