[osg-users] Placing OSG graphics in an FLTK Fl_Gl_Window

Robert Kiser rkiser at k2engineeringinc.com
Fri Apr 2 20:15:24 PST 2021

My apologies in advance if what I am asking for is either preposterous or 

I was wanting to use the FLTK forms package as a frontend for for a 
visualization of a finite element (FEA) model using osg as the rendering 

As a start, I was able to get the provided example code: osgviewerFLTK 
compiled, linked and running and it did well.  (Did this on Windows 10 
using Visual Studio 2019)  But, as per design, it creates its own window.

What I was hoping to do was create a simple FLTK form and place an 
Fl_Gl_Window on it and then have osg place the rendering in that window (or 
some similar FLTK widget).  That way, using buttons, menus, etc. I could 
control the rendering to my liking.

I have already done something similar using a VB.Net form with a C++ DLL 
backend, but was wanting to transition to an all C++ solution and how to do 
it with FLTK presently escapes me.

I was hoping that one of the members here had already plowed that ground 
and could post a bare-bones example of how they did it.

Your help would be most appreciated.


Bob Kiser

You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/c6ddad69-a74a-42ab-9965-176122065195n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20210402/065d1b9e/attachment.html>

More information about the osg-users mailing list