#include "mxvk/argz.hpp"
#include "mxvk/mxvk.hpp"
#include "mxvk/mxvk_exception.hpp"
#include <SDL3/SDL.h>
#include <array>
#include <cmath>
#include <cstdint>
#include <format>
#include <iostream>
#include <memory>
#include <random>
Go to the source code of this file.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 152 of file surface.cpp.
152 {
153 try {
156 window.loop();
158 std::cerr << std::format(
"mxvk: Exception: {}\n", e.
text());
159 return EXIT_FAILURE;
161 std::cerr << std::format(
"mxvk: Argument Exception: {}\n", e.
text());
162 return EXIT_FAILURE;
163 }
164 return EXIT_SUCCESS;
165}
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 filename
Optional input filename (--filename).
int width
Viewport width in pixels (default: 1280).