123456789101112131415161718192021222324252627282930313233343536373839404142 |
-
- #include <Agents/Agent.hpp>
- #include <Environment/PictureEnvironment.hpp>
- #include <unistd.h>
-
- int main()
- {
- util::Platform platform;
- #if defined(_DEBUG)
- std::cout << "Zé Parti" << std::endl;
- #endif
- //std::string filepath = "C:\\Users\\VroumVroumMachine\\Pictures\\dickbutt.jpg";
- //std::string filepath = "C:\\Users\\VroumVroumMachine\\Pictures\\caisseenre.png";
- std::string filepath = "C:\\Users\\VroumVroumMachine\\Pictures\\RepAgents\\PA315024.jpg";
- //std::string filepath = "C:\\Users\\VroumVroumMachine\\Pictures\\RepAgents\\PA304995.jpg";
- //std::string filepath = "C:\\Users\\VroumVroumMachine\\Pictures\\RepAgents\\P6224671.jpg";
- //std::string filepath = "content/sfml.png";
- sf::RenderWindow window;
-
- // in Windows at least, this must be called before creating the window
-
- // Use the screenScalingFactor
-
- //
- bool vDisplayOriginal = false;
- PictureEnvironment vEnvironment(filepath, &window, &platform, vDisplayOriginal);
-
- //vEnvironment.makeAgents(10000, 1, 10);
- vEnvironment.makeRepaintAgents(50, 30, 10);
- vEnvironment.makeStraightRepaintAgents(250, 20, 15);
- vEnvironment.makePullPaintAgents(50, 20, 10);
- //int i = 0;
- while (vEnvironment.loop())
- {
- ;
- //usleep(10);
- }
-
- //vEnvironment.displayLockInput();
-
- return 0;
- }
|