Вот такая белиберда получается :
исходник
Код
#include <SFML/Graphics.hpp>
#include<iostream>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 400), "Source");
while (window.isOpen()){
sf::Event event;
sf::Text text;
sf::Texture texture;
while (window.pollEvent(event)){
if (event.type == sf::Event::Closed)
window.close();}
window.clear(sf::Color::Black);
if (!texture.loadFromFile("trafaret_fish.png", sf::IntRect(10, 10, 32, 32)))
{
std::cout << "Fail with loading pictures";
}
window.display();
}
return 0;
}
Поможете?)