hi.
i copied a code from tutorial:
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
int main()
{
// Create the main rendering window
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
// Start game loop
while (App.IsOpened())
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
App.Close();
}
App.Clear(sf::Color(200, 0, 0));
App.Display();
}
return EXIT_SUCCESS;
}
And the main while dont work but if i del line:
App.Clear(sf::Color(200, 0, 0));
all is right.