/******************************************************************************* * This file is part of the "Enduro2D" * For conditions of distribution and use, see copyright notice in LICENSE.md * Copyright (C) 2018 Matvey Cherevko ******************************************************************************/ #include "../common.hpp" using namespace e2d; int e2d_main() { modules::initialize(); modules::initialize(); modules::initialize(); modules::initialize(v2u{640, 480}, "Enduro2D", false); the().add_sink(); the().register_event_listener(the()); const keyboard& k = the().keyboard(); while ( !the().should_close() && !k.is_key_just_released(keyboard_key::escape) ) { the().set_clear_color({1.f, 0.4f, 0.f}); the().clear(true, true, true); the().frame_tick(); the().swap_buffers(true); window::frame_tick(); } return 0; }