Passing window handler for the SFML

Posted by Ockonal on Stack Overflow See other posts from Stack Overflow or by Ockonal
Published on 2010-05-28T20:50:09Z Indexed on 2010/05/28 21:02 UTC
Read the original article Hit count: 305

Filed under:
|
|
|

Hello, I'm using SFML Input system for my own application. Here is my code:

size_t windowHnd = %MY_WINDOW_HANDLER%;
sf::Window MyWindow(windowHnd);
const sf::Input& MyInput = MyWindow.GetInput();

cannot convert ‘sf::Window’ to ‘size_t’ in assignment

In official documentation I found sf::Window constructor signature:

WindowHandle Handle

What is the correct way to pass window handler for the SFML?

© Stack Overflow or respective owner

Related posts about c++

Related posts about input