#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 406 of file main.cpp.
406 {
407 try {
410 window.loop();
412 std::cerr << std::format(
"mxvk: Exception: {}\n", e.
text());
413 return EXIT_FAILURE;
415 std::cerr << std::format(
"mxvk: Argument Exception: {}\n", e.
text());
416 return EXIT_FAILURE;
417 }
418 return EXIT_SUCCESS;
419}
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.