#include "mxvk/argz.hpp"
#include "mxvk/mxvk.hpp"
#include "mxvk/mxvk_exception.hpp"
#include "mxvk/mxvk_math.h"
#include "mxvk/mxvk_png.hpp"
#include <SDL3/SDL.h>
#include <algorithm>
#include <array>
#include <cstdint>
#include <cstdlib>
#include <filesystem>
#include <format>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
Go to the source code of this file.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 428 of file main.cpp.
428 {
429 try {
432 window.loop();
434 std::cerr << std::format(
"mxvk: Exception: {}\n", e.
text());
435 return EXIT_FAILURE;
437 std::cerr << std::format(
"mxvk: Argument Exception: {}\n", e.
text());
438 return EXIT_FAILURE;
439 }
440 return EXIT_SUCCESS;
441}
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.
Plain data structure returned by proc_args() with all common libmx2 CLI options.