libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
Loading...
Searching...
No Matches
Arguments Struct Reference

Plain data structure returned by proc_args() with all common libmx2 CLI options. More...

#include <argz.hpp>

Collaboration diagram for Arguments:
[legend]

Public Attributes

int width
 Viewport width in pixels (default: 1280).
int height
 Viewport height in pixels (default: 720).
std::string path
 Asset search path (default: ".").
bool fullscreen
 Whether fullscreen mode was requested.
std::string filename
 Optional input filename (--filename).
std::string texture
 Optional texture file path (--texture).
std::string shaderPath
 Optional SPV shader folder path (-S / --shader-path).

Detailed Description

Plain data structure returned by proc_args() with all common libmx2 CLI options.

Definition at line 504 of file argz.hpp.

Member Data Documentation

◆ filename

std::string Arguments::filename

Optional input filename (--filename).

Definition at line 509 of file argz.hpp.

Referenced by proc_args().

◆ fullscreen

bool Arguments::fullscreen

Whether fullscreen mode was requested.

Definition at line 508 of file argz.hpp.

Referenced by proc_args().

◆ height

int Arguments::height

Viewport height in pixels (default: 720).

Definition at line 506 of file argz.hpp.

Referenced by proc_args().

◆ path

std::string Arguments::path

Asset search path (default: ".").

Definition at line 507 of file argz.hpp.

Referenced by proc_args().

◆ shaderPath

std::string Arguments::shaderPath

Optional SPV shader folder path (-S / --shader-path).

Definition at line 511 of file argz.hpp.

Referenced by proc_args().

◆ texture

std::string Arguments::texture

Optional texture file path (--texture).

Definition at line 510 of file argz.hpp.

Referenced by proc_args().

◆ width

int Arguments::width

Viewport width in pixels (default: 1280).

Definition at line 505 of file argz.hpp.

Referenced by proc_args().


The documentation for this struct was generated from the following file: