#include "app.hpp" #include "compat/fpu.hpp" namespace floormat { app::app(const Arguments& arguments): Platform::Application{ arguments, Configuration{} .setTitle("Test") .setSize({1024, 768}, dpi_policy::Physical) .setWindowFlags(Configuration::WindowFlag::Resizable), GLConfiguration{} .setSampleCount(4) .setFlags(GLConfiguration::Flag::GpuValidation) } { set_fp_mask(); reset_camera_offset(); update_window_scale(windowSize()); timeline.start(); } void app::update(float dt) { do_camera(dt); if (keys[key::quit]) Platform::Sdl2Application::exit(0); } } // namespace floormat