title: SFML graphics Draw Texture in Window- Black Screen
body: <p>I just tried to write a chess engine, and what is important to me is that I get a nice visual representation of the game. I tried to implement the Code in a Visual Studio project - the problem is that the program only shows me a black screen instead of the texture I loaded.</p>
  
  <p>My Code is the following:</p>
  
  <pre><code>#include &lt;SFML/Graphics.hpp&gt;
  #include &lt;time.h&gt;
  using namespace sf;
  
  int main(){
  
      RenderWindow window(VideoMode(1000, 1000), "MattseChess!");
  
      Texture t1;
      t1.loadFromFile("images/board.png");
      Sprite s(t1);
  
      while (window.isOpen())
      {
          Event e;
  
          while (window.pollEvent(e)) {
  
              if (e.type == Event::Closed)
                  window.close();
      //Draw
              window.clear();
              window.draw(s);
              window.display();
          }
      }
  
      return 0;
  }
  </code></pre>
  
  <p>Do you have any idea of what I did wrong?</p>