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

Author Topic: Tutorial Code does nothing  (Read 2192 times)

0 Members and 1 Guest are viewing this topic.

kingcools

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Tutorial Code does nothing
« on: December 07, 2011, 07:39:35 pm »
Hello, i just tried to compile the first graphic package tutorial

Code: [Select]
#include <SFML/Graphics.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();
        }

        // Clear the screen (fill it with black color)
        App.Clear();

        // Display window contents on screen
        App.Display();
    }

    return EXIT_SUCCESS;
}


When i compile and run it the console window opens but nothing happens, i then have to use the task manager to shut the console down.

Apperently I set SFML up wrong or something :/ No error message is shown sadly :/

the console window is completely empty.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Tutorial Code does nothing
« Reply #1 on: December 07, 2011, 10:02:46 pm »
ATI bug
-> search the forum for solutions
Laurent Gomila - SFML developer

kingcools

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Tutorial Code does nothing
« Reply #2 on: December 07, 2011, 11:21:51 pm »
Indeed, thank you :)

what did ati fuck up though, i heard there are many applications and games that have issues with ati cards.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Tutorial Code does nothing
« Reply #3 on: December 08, 2011, 05:30:54 am »
Quote from: "kingcools"
Indeed, thank you :)

what did ati **** up though, i heard there are many applications and games that have issues with ati cards.
Please avoid swearing. Children of all ages come here. Even toddlers.
I use the latest build of SFML2

nitrix

  • Newbie
  • *
  • Posts: 27
    • View Profile
Tutorial Code does nothing
« Reply #4 on: December 08, 2011, 05:34:15 am »
*raises his hand* More candies please~ :3

 

anything