diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..1f69582 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,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; +} |