Passing window handler for the SFML
- by Ockonal
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?