[osg-users] Embed in SFML window, rendering problem

Cem Aydin cem.aydin at gmx.ch
Mon Oct 31 14:44:26 PDT 2016


Hello

Thanks for your reply.

The OpenMW example though is a bit complex for my current knowledge level and I really want to keep things simple for now.

However I found another example using SFML that is actually rendering fine.
en. sfml-dev. org/forums/index.php?topic=20866.0 (can't post link)

Ok, based on this example I just figured that replacing the sfml window call by:

Code:

    sf::Window window(sf::VideoMode(800, 600),
                      "FOOBAR",
                      sf::Style::Default,
                      sf::ContextSettings(24));
    //window.create(sf::VideoMode(800, 600), "My window");



fixes the rendering issue. I guess it might be sf::Style::Default.

Thanks anyway![/code]

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








More information about the osg-users mailing list