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

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
TheCollector
Posts: 41
Joined: August 1st, 2019, 9:57 pm

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

Post by TheCollector » August 13th, 2019, 9:46 pm

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.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

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

Post by albinopapa » August 14th, 2019, 4:09 am

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.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Post Reply