> I'm not sure if this is really an OpenGL question but it so happens I'm 
> seeing it in an OpenGL app so here goes.
>
> I need my OpenGL app to have panels that show project settings and a tools 
> menu but I can't seem to get the OpenGL window class (derived from 
> Fl_Gl_Window) to accept/show anything other than the OpenGL rendered scene. I 
> expected to see something in front of the scene but nothing is drawn.
>

Yup... This will not work reliably, you can't, in general, draw with fltk 
primitives onto a GL window. (Although this may vary from system to system, as 
it depends to a certain extent on the vagaries of the GL drivers and so 
forth...)

However, there are maybe some ways around this - Matthias had an example of how 
to do a managed GL thing, where you could draw widgets over a GL rendered 
scene, so you might find that in the archives - but I still don't think it does 
what you want.

An alternate is simply to pop a (possibly borderless, non-modal) "ordinary" 
window on top of your GL window and render the fltk widgets there, and dismiss 
that window when the widgets it contains go away.

And lastly, you can draw the panels etc. using GL yourself... this may not be 
the easiest option...


_______________________________________________
fltk-opengl mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-opengl

Reply via email to