1
General / window is closing
« on: December 23, 2011, 02:52:11 pm »
i have installed vc10, with sfml 1.6, it works at this moment,...and at this moment... the same prob
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.
01 #include <SFML/Graphics.hpp>
02
03 int main()
04 {
05 sf::VideoMode VMode(800, 600, 32);
06 sf::RenderWindow Window(VMode, "SFMLCoder Tutorial - Empty Window");
07
08 while (Window.IsOpened())
09 {
10 sf::Event Event;
11 while (Window.PollEvent(Event))
12 {
13 switch (Event.Type)
14 {
15 case sf::Event::Closed:
16 Window.Close();
17 break;
18 default:
19 break;
20 }
21 }
22
23 Window.Clear(sf::Color(0, 255, 255));
24 Window.Display();
25 }
26
27 return 0;
28 }
(without numbers )