Am 13.01.2013 21:59, schrieb Christopher James Huff:
> Is there a recommended approach to drawing FLTK widgets inside or on
> top of an OpenGL window?

> or
> somehow draw widgets to an image which is then drawn in OpenGL (could
> an existing driver easily be modified to do this?). Are there other

FLTK allows to draw to an offscreen buffer. glDrawPixels() or if you 
need shaders, then better glTexImage2d and friends can bring them into 
OpenGL.

Search for fl_create_offscreen(), fl_begin_offscreen, fl_read_image, 
fl_end_offscreen. Some not so self contained code for a rough idea[1].

kind regards
Kai-Uwe

[1] 
http://www.oyranos.org/scm?p=oyranos.git;a=blob;f=src/examples/image_display/Oy_Fl_Group.h;h=0e0cfd77759f198fd8bf7f7c3fb63009870750e3;hb=HEAD#l196

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

Reply via email to