Triangles/src/main.cpp

23 lines
387 B
C++
Raw Normal View History

2020-07-21 11:03:22 +00:00
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <imgui.h>
#include <imgui-SFML.h>
2020-07-21 11:34:39 +00:00
#include "state.hpp"
2020-07-21 11:03:22 +00:00
int main(int argc, char **argv) {
// init
2020-07-22 06:19:37 +00:00
Tri::State state(argc, argv);
2020-07-21 11:34:39 +00:00
// main loop
2020-07-22 06:19:37 +00:00
while(state.get_flags().test(1)) {
state.handle_events();
2020-07-21 11:34:39 +00:00
state.update();
state.draw();
}
2020-07-21 11:03:22 +00:00
return 0;
}