1
Window / Create Window
« on: December 04, 2010, 08:52:49 pm »
My problem is identical to yours, so if you fix it could you please post how.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#include <SFML/Window.hpp>
int main()
{
// The Program Doesn't execute this line or any afterwards.
sf::Window window(sf::VideoMode(800, 600, 32), "Test");
bool running = true;
while(running)
{
sf::Event e;
while(window.GetEvent(e))
{
if(e.Type == sf::Event::Closed)
running = false;
if(e.Type == sf::Event::KeyPressed && e.Key.Code == sf::Key::Escape)
running = false;
}
window.Display();
}
return EXIT_SUCCESS;
}