[osg-users] embedding OSG into SFML window

Noè Murr noe.murr at outlook.com
Sun Aug 25 06:15:03 PDT 2019


Hi all,

I have found the mistake! It was a very very stupid mistake: I forgot a 
return after the handling of the text entered event.

Now I have another problem: If I change the value of x and y of the 
function setUpViewerAsEmbeddedInWindow() nothing changes.

How can I draw the the frame in a specific position inside my window?

Cheers,
     Noè Murr

On 24/08/19 18:36, Noè Murr wrote:
> Hi all,
> 
> I'm trying to mbed an osgviewer into an SFML window.
> 
> Stating from this code
> https://gist.github.com/colesnicov/bca684b939d19e2d1ac74d9a881b35b1,
> I've written my own version that does not use the sfgui library.
> 
> You can see the code as attachment of this message.
> 
> The problem is that when I pres the 'S' key to start the stats handler I
> get a bunch of OpenGL error and I get very strange visual results, as
> you can see in the video attached.
> 
> If I resize the window the error is solved until the next event.
> 
> Do you know why I got this errors and how can I avoid them?
> 
> Cheers,
>       Noè Murr
> 
> 
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 


More information about the osg-users mailing list