Trying to use the
GTK Integration Sample. However, I'm running into a few pitfalls:
Access Violations, Which I've resolved by replacing
Gtk.Application.Invoke((o, e) => ShowSFMLWindow());
With
ShowSFMLWindow();
Since the window is called in the main thread anyway.
However, even without crashes, I see the (currently blank) SFML window rendering as a rectangle in the middle of the screen, rather than being embedded in the GTK window as expected.
Furthermore, the GTK window and SFML window titles both show up in my taskbar, as if the game were running twice.
Ultimately, seeing this sample was written over two years ago, is it just outdated? Is there a newer example I'm missing? Ideally, is there a way to embed a RenderTexture into GTK, or render GTK to a texture that SFML can then consume?
Using VS 2015, on Windows 7