1569 {
1570 try {
1576 window.loop();
1578 std::cerr << std::format(
"mxvk: Exception: {}\n", exception.
text());
1579 return EXIT_FAILURE;
1581 std::cerr << std::format(
"mxvk: Argument Exception: {}\n", exception.
text());
1582 return EXIT_FAILURE;
1583 } catch (const std::exception &exception) {
1584 std::cerr << std::format("3dmath_puzzle_drop: Exception: {}\n", exception.what());
1585 return EXIT_FAILURE;
1586 }
1587 return EXIT_SUCCESS;
1588}
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.