SFML community forums

Bindings - other languages => DotNet => Topic started by: Kwang1imsa on March 16, 2011, 09:12:00 pm

Title: Get RenderWindow handle
Post by: Kwang1imsa on March 16, 2011, 09:12:00 pm
I'd really like to see some feature like

RenderWindow.getHandle().ToString()

I am using SFML and OGRE and I need a way to get SFML's handle.  Otherwise, I'd have to use another windowing system, take that handle, and pass it to both OGRE and SFML.
Title: Get RenderWindow handle
Post by: Nexus on March 16, 2011, 09:49:16 pm
sf::RenderWindow contains a method GetSystemHandle() in SFML 2. And why ToString()?
Title: Get RenderWindow handle
Post by: Kwang1imsa on March 17, 2011, 03:46:30 pm
I've managed to set SFML's handle to the OGRE window's handle, but it freezes up (since it's in a while loop).

I'm guessing SFML's dispatchevents() isn't firing correctly because SFML is using OGRE's window and not it's own.