So, I'm trying to use the new Shape class in the latest sfml svn, but I don't seem to be able to get anything to show up. Here's the test code I'm using to try to get it working. What am I doing wrong here?
#include <SFML/Graphics.hpp>
int main()
{
// Create the main rendering window
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
// Create line
sf::Shape beam;
beam.Line(65.f, 68.f, 400.f, 400.f, 20.f, sf::Color(255, 0, 255));
// Start loop
bool Running = true;
while (Running)
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
Running = false;
}
App.Draw(beam);
// Display window contents on screen
App.Display();
}
return EXIT_SUCCESS;
}