title: Drawing a minimap in SFML/C++
body: <p>I understand that I can already create a minimap by modifying a view object, as outlined <a href="http://www.sfml-dev.org/tutorials/2.0/graphics-view.php" rel="nofollow">here</a>, but what I want instead is a small rectangle that will have a box or an arrow representing the player, and other colored boxes that represent enemies or various objects. Is there a better way to do this than simply create a Minimap object that calculates where each enemy is and translates that into a representational object (box, arrow.. etc) that then gets drawn to the screen? </p>
  
  <p>This is a general question more than anything, so I'm not really expecting sample code, even though it would be much appreciated. I'm outlining a minimap class now and I'll upload it here soon.</p>
  
  <p>Here is what I'm doing in my draw loop:</p>
  
  <pre><code>minimap.setCenter(player.getPosition());
  minimap.setViewport(sf::FloatRect(0.75f, 0.75f, 0.25f, 0.25f)); 
  //Bottom right corner of screen
  
  window.setView(minimap);
  
  window.draw(player);
  
  window.setView(view); //Return to default view
  </code></pre>
  
  <p>With a call to <code>minimap.zoom(10);</code> when the view is initiated.</p>