Stephen Seo
d30a792aca
Added way to select and edit colors of placed Tris. Added third_party catch unit test framework that builds the UnitTest in Debug builds. Refactor internal use of notification_text. Rename src/imgui_helper.hpp to src/helpers.hpp Added some helper functions, including "is_within_shape" (used for selecting a Tri). Fixed use of flags in helpers not using enum values.
23 lines
387 B
C++
23 lines
387 B
C++
#include <SFML/System.hpp>
|
|
#include <SFML/Window.hpp>
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
#include <imgui.h>
|
|
#include <imgui-SFML.h>
|
|
|
|
#include "state.hpp"
|
|
|
|
int main(int argc, char **argv) {
|
|
// init
|
|
Tri::State state(argc, argv);
|
|
|
|
// main loop
|
|
while(state.get_flags().test(1)) {
|
|
state.handle_events();
|
|
state.update();
|
|
state.draw();
|
|
}
|
|
|
|
return 0;
|
|
}
|