I'm doing some sfml project for school and teacher wants only the .exe program. I'm using Visual Studio 2017. In this project I'm using texture from .jpg file
sf::RenderWindow window(sf::VideoMode(640, 480, 32), "Kurs SFML ");
sf::Texture texture;
texture.loadFromFile("wood.jpg");
sf::Sprite pic;
pic.setTexture(texture);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(pic);
window.display();
This file ( wood.jpg ) needs to be to in the same folder as project to show this texture otherwise it only shows black screen. When I checked the .exe program which is in another folder, it also needs this file to be in this folder or .exe shows black screen. But my teacher wants only .exe file without any folders. So is it possible to do something to not include this file( wood.jpg ) but show the texture in the .exe ?