tutaj jest cały kod co z tym jest nie tak ? bo ja już niewiem
#include <SFML/Graphics.hpp>
#include <iostream>
using namespace sf;
int main()
{
sf::RenderWindow window(sf::VideoMode(1280, 720), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
Texture tex;
tex.loadFromFile("xD.png");
Sprite sprite;
sprite.setTexture( tex );
window.clear(Color(255,0,0));
window.draw(sprite);
window.display();
}
return 0;
}