MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
room.cpp File Reference
#include <SDL3/SDL.h>
#include <algorithm>
#include <array>
#include <charconv>
#include <chrono>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <filesystem>
#include <format>
#include <glm/ext/matrix_clip_space.hpp>
#include <glm/ext/matrix_transform.hpp>
#include <glm/glm.hpp>
#include <iostream>
#include <random>
#include <string>
#include <string_view>
#include <vector>
#include "mxvk/argz.hpp"
#include "mxvk/mxvk.hpp"
#include "mxvk/mxvk_abstract_model.hpp"
#include "mxvk/mxvk_exception.hpp"
#include "mxvk/mxvk_io_window.hpp"
#include "mxvk/mxvk_png.hpp"
#include "mxvk/mxvk_shader_module.hpp"

Go to the source code of this file.

Classes

struct  walk::Collectible
struct  walk::ExplosionParticle
class  walk::MazeWorld
struct  walk::ParticlePointVertex
struct  walk::PillarInstance
struct  walk::RawPillarRenderer::PillarUniforms
struct  walk::RawPillarRenderer::PillarVertex
struct  walk::Projectile
class  walk::RawPillarRenderer
class  walk::RawWallRenderer
struct  walk::Projectile::TrailPoint
class  walk::WalkWindow
struct  walk::WallSegment
struct  walk::RawWallRenderer::WallUniforms
struct  walk::RawWallRenderer::WallVertex

Namespaces

namespace  walk

Functions

int main (int argc, char **argv)

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 4509 of file room.cpp.

4509 {
4510 try {
4511 const Arguments args = proc_args(argc, argv);
4512 walk::WalkWindow window(args);
4513 window.loop();
4514 } catch (mxvk::Exception &e) {
4515 std::cerr << std::format("mxvk: Exception: {}\n", e.text());
4516 return EXIT_FAILURE;
4517 } catch (ArgException<std::string> &e) {
4518 std::cerr << std::format("mxvk: Argument Exception: {}\n", e.text());
4519 return EXIT_FAILURE;
4520 }
4521
4522 return EXIT_SUCCESS;
4523}
Arguments proc_args(int &argc, char **argv)
Parse standard libmx2 command-line options from main()'s argv.
Definition argz.hpp:872
Exception thrown by Argz::proc() on unrecognised or malformed options.
Definition argz.hpp:178
String text() const
Definition argz.hpp:182
std::string text() const
Plain data structure returned by proc_args() with all common libmx2 CLI options.
Definition argz.hpp:730