Код: Выделить всё
#include
#include
#include
#include
#include
#include
#include
using namespace std;
using namespace sf;
int main()
{
Vector2f resolution;
resolution.x = VideoMode::getDesktopMode().width;
resolution.y = VideoMode::getDesktopMode().height;
RenderWindow window(VideoMode(resolution.x, resolution.y),"Real Men's Word Jumble",
Style::Fullscreen);
View mainView(sf::FloatRect(0, 0, resolution.x, resolution.y));
Vector2f mouseWorldPosition;
Vector2i mouseScreenPosition;
IntRect arena;
Texture textureBackground;
textureBackground.loadFromFile("graphics/background.jpg");
Sprite spriteBackground;
spriteBackground.setTexture(textureBackground);
spriteBackground.setPosition(0, 0);
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78704783/visual-studio-wont-load-my-background-pics-why[/url]