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

Show Posts

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.


Topics - Ges

Pages: [1]
1
Window / Create Window
« on: November 27, 2010, 06:10:45 am »
Hello. I dont create window. My program compile, run, but nothing occur. Process manager have my prog. I tried SFML 1.6 and 2.0.
My code:
Code: [Select]
#include <SFML/Window.hpp>

int main()
{
    sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
    bool Running = true;
    while (Running)
        App.Display();
    return EXIT_SUCCESS;
}


Win 7 x86. VS 2010

PS This code work
Code: [Select]
#include <SFML/System.hpp>
#include <iostream>

int main()
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }

    return 0;
}

Pages: [1]
anything