#include "mxvk/argz.hpp"
#include "mxvk/mxvk.hpp"
#include "mxvk/mxvk_cv.hpp"
#include "mxvk/mxvk_exception.hpp"
#include <array>
#include <chrono>
#include <cstdlib>
#include <format>
#include <iostream>
#include <opencv2/videoio.hpp>
#include <string>
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
◆ opencv_example_ASSET_DIR
| #define opencv_example_ASSET_DIR "." |
◆ opencv_example_SHADER_DIR
| #define opencv_example_SHADER_DIR "." |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 203 of file main.cpp.
203 {
204 try {
207 ex_window.loop();
209 std::cerr << std::format(
"mxvk: Exception: {}\n", e.
text());
210 return EXIT_FAILURE;
212 std::cerr << std::format(
"mxvk: Argument Exception: {}\n", e.
text());
213 }
214 return EXIT_SUCCESS;
215}
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.