blob: 1f695825b8871ad44e12f4064fa2f7c0294de835 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "common.hpp"
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML");
world::world_t world;
interface::state_t interface(&window, &world);
window.setVerticalSyncEnabled(true);
while (1) {
interface.tick();
if (!window.isOpen())
break;
window.clear();
world.render(&window);
interface.render();
window.display();
}
return 0;
}
|