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

Author Topic: Get RenderWindow handle  (Read 3174 times)

0 Members and 1 Guest are viewing this topic.

Kwang1imsa

  • Newbie
  • *
  • Posts: 26
    • MSN Messenger - kwang1imsa@gmail.com
    • View Profile
Get RenderWindow handle
« 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.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Get RenderWindow handle
« Reply #1 on: March 16, 2011, 09:49:16 pm »
sf::RenderWindow contains a method GetSystemHandle() in SFML 2. And why ToString()?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Kwang1imsa

  • Newbie
  • *
  • Posts: 26
    • MSN Messenger - kwang1imsa@gmail.com
    • View Profile
Get RenderWindow handle
« Reply #2 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.