vengine  0.0.1
3D graphics engine
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1#include <iostream>
2
5
6using namespace ven;
7
8int main(const int argc, char *argv[], char *envp[])
9{
10 try {
12 Engine(Parser(argc, argv, envp).getConfig()).run();
13 } catch (const ParserException &e) {
14 return EXIT_SUCCESS;
15 } catch (const std::exception &e) {
16 std::cerr << e.what() << '\n';
17 return EXIT_FAILURE;
18 } catch (...) {
19 std::cerr << "Unknown error\n";
20 return EXIT_FAILURE;
21 }
22 return EXIT_SUCCESS;
23}
This file contains the Engine class.
This file contains the Parser class.
Class for engine.
Definition Engine.hpp:23
void run()
Definition engine.cpp:86
static Logger & getInstance()
Definition Logger.hpp:32
Custom exception class for parsing errors.
Definition Parser.hpp:24
const char * what() const noexcept override
Definition Parser.hpp:36
Class for Parser.
Definition Parser.hpp:134
int main(const int argc, char *argv[], char *envp[])
Definition main.cpp:8