Triangles/src/main.cpp

24 lines
401 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"
#include "imgui_helper.hpp"
2020-07-21 11:03:22 +00:00
int main(int argc, char **argv) {
// init
2020-07-21 11:34:39 +00:00
Tri::State state{};
// main loop
while(state.window.isOpen()) {
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;
}