#include <cstdlib>
#include <format>
#include <iostream>
#include "mxvk/argz.hpp"
#include "mxvk/mxvk_exception.hpp"
#include "mutatris_window.hpp"
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 10 of file mutatris.cpp.
10 {
11 try {
14 window.loop();
16 std::cerr << std::format(
"mutatris: MXVK exception: {}\n", e.
text());
17 return EXIT_FAILURE;
19 std::cerr << std::format(
"mutatris: argument exception: {}\n", e.
text());
20 return EXIT_FAILURE;
21 }
22 return EXIT_SUCCESS;
23}
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.
bool fullscreen
Whether fullscreen mode was requested.
bool enable_vsync
Enable FIFO present mode / v-sync (--enable-vsync).
int height
Viewport height in pixels (default: 720).
std::string path
Asset root; proc_args() defaults it to the executable directory.
int width
Viewport width in pixels (default: 1280).
bool enable_crt
Enable CRT post-processing at startup (--enable-crt).