#include <SDL3/SDL.h>
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstdlib>
#include <format>
#include <iostream>
#include <memory>
#include <string>
#include <string_view>
#include <vector>
#include <glm/ext/matrix_clip_space.hpp>
#include <glm/ext/matrix_transform.hpp>
#include <glm/glm.hpp>
#include "mxvk/argz.hpp"
#include "mxvk/mxvk_controller.hpp"
#include "mxvk/mxvk.hpp"
#include "mxvk/mxvk_abstract_model.hpp"
#include "mxvk/mxvk_exception.hpp"
#include "mxvk/mxvk_sound.hpp"
Go to the source code of this file.
◆ breakout_ASSET_DIR
| #define breakout_ASSET_DIR "." |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 733 of file breakout.cpp.
733 {
734 try {
737 window.loop();
739 std::cerr << std::format(
"mxvk: Exception: {}\n", e.
text());
740 return EXIT_FAILURE;
742 std::cerr << std::format(
"mxvk: Argument Exception: {}\n", e.
text());
743 return EXIT_FAILURE;
744 }
745 return EXIT_SUCCESS;
746}
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.
BreakoutWindow(const std::string &path, int width, int height, bool fullscreen, bool enable_vsync)
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).