#include "mxvk/argz.hpp"
#include "mxvk/mxvk.hpp"
#include "mxvk/mxvk_exception.hpp"
#include "mxvk/mxvk_math.h"
#include <SDL3/SDL.h>
#include <algorithm>
#include <array>
#include <chrono>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <format>
#include <iostream>
#include <limits>
#include <memory>
#include <random>
#include <vector>
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 618 of file main.cpp.
618 {
619 try {
625 window.loop();
627 std::cerr << std::format(
"mxvk: Exception: {}\n", exception.
text());
628 return EXIT_FAILURE;
630 std::cerr << std::format(
"mxvk: Argument Exception: {}\n", exception.
text());
631 return EXIT_FAILURE;
632 }
633 return EXIT_SUCCESS;
634}
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.
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.
bool fullscreen
Whether fullscreen mode was requested.
bool enable_vsync
Enable FIFO present mode / v-sync (--enable-vsync).
Parsed software framebuffer dimensions.