1446 {
1447 try {
1451 window.loop();
1453 std::cerr << std::format(
"mxvk: Exception: {}\n", exception.
text());
1454 return EXIT_FAILURE;
1456 std::cerr << std::format(
"mxvk: Argument Exception: {}\n", exception.
text());
1457 return EXIT_FAILURE;
1458 } catch (const std::exception &exception) {
1459 std::cerr << std::format("3dmath_puzzle_drop: Exception: {}\n", exception.what());
1460 return EXIT_FAILURE;
1461 }
1462 return EXIT_SUCCESS;
1463}
Arguments proc_args(int &argc, char **argv)
Parse standard libmx2 command-line options from main()'s argv.
Exception thrown by Argz::proc() on unrecognised or malformed options.
PuzzleDropWindow(const Arguments &args, const FramebufferDimensions &framebuffer)
constexpr int DEFAULT_FRAME_WIDTH
constexpr int DEFAULT_FRAME_HEIGHT
Plain data structure returned by proc_args() with all common libmx2 CLI options.
FramebufferDimensions framebuffer
Software framebuffer size requested by --framebuffer.
bool framebufferSpecified
Whether --framebuffer was provided.
Parsed software framebuffer dimensions.