Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Tutorial doesnt work  (Read 2063 times)

0 Members and 1 Guest are viewing this topic.

djmentos

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://www.krolnet.pl/
Tutorial doesnt work
« on: May 28, 2010, 10:10:50 pm »
hi.

i copied a code from tutorial:
Code: [Select]

#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.

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
Tutorial doesnt work
« Reply #1 on: May 28, 2010, 10:22:49 pm »
What is your version of SFML ?
Mindiell
----

djmentos

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://www.krolnet.pl/
Tutorial doesnt work
« Reply #2 on: May 28, 2010, 10:29:15 pm »
1.7

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Tutorial doesnt work
« Reply #3 on: May 28, 2010, 11:29:07 pm »
Ubuntu 10? ATI graphics card?
Laurent Gomila - SFML developer

djmentos

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://www.krolnet.pl/
Tutorial doesnt work
« Reply #4 on: May 29, 2010, 07:58:56 am »
Win Vista, intergrated, not ATI (Intel).