[osg-users] How can I embed OSG into imgui as a widget ?

Jishen Li lxx9xx at gmail.com
Sun Oct 6 23:49:22 PDT 2019


Thanks! It helped me. 


Chris Hanson wrote:
> This is usually pretty easy if you can expose an HWND (on Windows) of the UI region that can be used to create an OpenGL context and passed to OSG's GraphicsWindowEmbedded.
> 
> On Sun, Sep 29, 2019 at 4:32 AM Jishen Li < ()> wrote:
> 
> 
> > Hi,
> > 
> > I found people tried to embed ImGui into OSG, not vice verse. I am using OSG to render a scene in a separate thread. Since my main GUI is built by using ImGui, I want to embed OSG as a widget-like sub-window inside imgui. 
> > 
> > How can I do it ? 
> > 
> > Thanks!  
> > 
> > ... 
> > 
> > Thank you!
> > 
> > Cheers,
> > Jishen
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=76757#76757 (http://forum.openscenegraph.org/viewtopic.php?p=76757#76757)
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> >  ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > 
> 
> 
> 
> -- 
> Chris 'Xenon' Hanson, omo sanza lettere.  http://www.alphapixel.com/ (http://www.alphapixel.com/)
> Training • Consulting • Contracting
> 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
> Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
> @alphapixel (https://twitter.com/alphapixel) facebook.com/alphapixel (http://facebook.com/alphapixel) (775) 623-PIXL [7495]
> 
>  ------------------
> Post generated by Mail2Forum


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76792#76792







More information about the osg-users mailing list