Why does the following code place circles at only one value of X?
Thanks
Warren
#include <SFML/Graphics.hpp>
int main()
{
int x, y, radius = 20;
// Create the main rendering window
sf::RenderWindow App(sf::VideoMode(1400, 900, 32), "Warren Graphics");
// Clear screen
App.Clear(sf::Color(128, 128, 128));
// Start game loop
while (App.IsOpened())
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
for(x = 0; x < 1400; x = x + 25);
{
for(y = 0; y < 900; y = y + 25)
{
App.Draw(sf::Shape::Circle(x, y,radius,sf::Color(255,0,0)));
// Display window contents on screen
App.Display();
// Close window : exit
if (Event.Type == sf::Event::Closed)
App.Close();
//Escape key exit
if((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
App.Close();
}
}
}
}
return EXIT_SUCCESS;
}