[osg-users] embedding osg::viewer
Noè Murr
nosba95 at yahoo.com
Tue Aug 27 10:38:52 PDT 2019
Hi,
I've already asked this question on the mailing list, but it was a secondary question and perhaps nobody read it.
I'm trying to embed osg in a SFML view using the setUpViewerAsEmbeddedInWindow method of the viewer.
The problem is that I cannot change the position where the viewer is displayed. OSG ignores the value that I give as first and second argument of the method and draws the frame always starting from the bottom left corner of the window.
I tried to change the value of the first and second argument even in the osgviewerSDL example because it use the same method to embed OSG, but even in this example the viewer always starts to draw the frame in the bottom left corner.
I'm going to attach the code of the example that I have changed on the lines: 58 132 158 168
Do you know what's the problem?
Thank you!
Cheers,
Noè Murr
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76613#76613
Attachments:
http://forum.openscenegraph.org//files/osgviewersdl_203.cpp
More information about the osg-users
mailing list