Page 1 of 1

Is it possible to use SFML to display an image to a window that's already been created?

Posted: August 13th, 2019, 9:46 pm
by TheCollector
In short, I want to use SFML to display an image to the window that's already been created in the Chili framework.

Is this possible?

If so, how do I go about doing it? I've found tutorials and information on textures, sprites and displaying images and such with SFML but all the tutorials are for creating a window with SFML and displaying the image inside that.

Re: Is it possible to use SFML to display an image to a window that's already been created?

Posted: August 14th, 2019, 4:09 am
by albinopapa
I believe the sf::Window class will allow you to create a window using the HWND handle that is stored in MainWindow of the chili framework.

I haven't done this before, but it's a place to start.