Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sample error  (Read 3509 times)

0 Members and 1 Guest are viewing this topic.

Aravol

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
sample error
« on: February 19, 2016, 07:22:52 pm »
Trying to use the GTK Integration Sample. However, I'm running into a few pitfalls:

Access Violations, Which I've resolved by replacing

Quote
Gtk.Application.Invoke((o, e) => ShowSFMLWindow());

With

Quote
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

 

anything