#include "common.hpp" int main() { sf::RenderWindow window(sf::VideoMode(800, 600), "Minitrem"); game::state_t game; interface::state_t interface(&window, &game); window.setVerticalSyncEnabled(true); while (1) { game.tick(); interface.tick(); if (!window.isOpen()) break; window.clear(); game.render(&window); interface.render(); window.display(); } return 0; }