43 lines
977 B
C++
43 lines
977 B
C++
#include "gui/fsm.hpp"
|
|
#include "textures.hpp"
|
|
#include "sound.hpp"
|
|
#include "autowalker.hpp"
|
|
#include "ai.hpp"
|
|
#include "animation.hpp"
|
|
#include <iostream>
|
|
#include "shaders.hpp"
|
|
#include "backend.hpp"
|
|
#include "game_level.hpp"
|
|
#include "gui/fsm_events.hpp"
|
|
#include "events.hpp"
|
|
#include "constants.hpp"
|
|
#include "gui/event_router.hpp"
|
|
#include "camera.hpp"
|
|
|
|
int main(int, char*[]) {
|
|
components::init();
|
|
sfml::Backend backend;
|
|
guecs::init(&backend);
|
|
animation::init();
|
|
cinematic::init();
|
|
|
|
sf::RenderWindow window(sf::VideoMode({SCREEN_WIDTH, SCREEN_HEIGHT}), "Storyboard Editor");
|
|
window.setVerticalSyncEnabled(VSYNC);
|
|
if(FRAME_LIMIT) window.setFramerateLimit(FRAME_LIMIT);
|
|
window.setPosition({0,0});
|
|
|
|
gui::routing::Router router;
|
|
|
|
while(true) {
|
|
while(const auto ev = window.pollEvent()) {
|
|
auto gui_ev = router.process_event(ev);
|
|
|
|
if(gui_ev == gui::Event::QUIT) {
|
|
return 0;
|
|
}
|
|
}
|
|
window.display();
|
|
}
|
|
|
|
return 0;
|
|
}
|