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.


Messages - silentdth

Pages: [1]
1
General / Code blocks: No such file or directory - SFML\system.hpp
« on: March 05, 2012, 12:19:51 pm »
I also encountered this problem, and had to copy the SFML/include/SFML folder into my mingw/include folder.

An idea was to add the c:\program files\SFML to my PATH... but I don't think that will work as the path is looking at MINGW\bin, which does not include MINGW\include.

2
General / Problem with compling an example code
« on: March 05, 2012, 12:14:29 pm »
Just a warning that this sample code doesn't work with SFML2.
I believe it's because Clock.GetElapsedTime() now returns an sf::Time object instead, not a float.

Some other sample code to try for SFML2 users:

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);
    //}
   
    sf::Time time1 = clock.GetElapsedTime();
    std::cout << time1.AsSeconds() << std::endl;
    return 0;
}

Pages: [1]
anything