vengine
0.0.1
3D graphics engine
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
#include <iostream>
2
3
#include "
VEngine/Core/Engine.hpp
"
4
#include "
VEngine/Utils/Parser.hpp
"
5
6
using namespace
ven
;
7
8
int
main
(
const
int
argc,
char
*argv[],
char
*envp[])
9
{
10
try
{
11
Logger::getInstance
();
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
}
Engine.hpp
This file contains the Engine class.
Parser.hpp
This file contains the Parser class.
ven::Engine
Class for engine.
Definition
Engine.hpp:23
ven::Engine::run
void run()
Definition
engine.cpp:86
ven::Logger::getInstance
static Logger & getInstance()
Definition
Logger.hpp:32
ven::ParserException
Custom exception class for parsing errors.
Definition
Parser.hpp:24
ven::ParserException::what
const char * what() const noexcept override
Definition
Parser.hpp:36
ven::Parser
Class for Parser.
Definition
Parser.hpp:134
main
int main(const int argc, char *argv[], char *envp[])
Definition
main.cpp:8
ven
src
main.cpp
Generated by
1.11.0