-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
26 lines (19 loc) · 790 Bytes
/
main.cpp
File metadata and controls
26 lines (19 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "FelissCore/FileSystem.h"
#include "FelissCore/Logger.h"
#include "FelissRenderer/FelissRenderer.h"
#include <configparser.hpp> // assume simple wrapper for INI (you can swap with inih or others)
using namespace FelissCore;
using namespace FelissRenderer;
int main() {
Logger::Log("FelissEngine Launching...");
ConfigParser config("../configuration.ini");
std::string aa_mode = config.get("Graphics", "AntiAliasing", "TAA");
Renderer renderer;
AntiAliasingMode aa = RendererSettings::GetAAModeFromString(aa_mode);
renderer.SetAntiAliasingMode(aa);
for (int frame = 0; frame < 3; ++frame) {
Logger::Log("Rendering frame " + std::to_string(frame));
}
Logger::Log("FelissEngine Shutdown.");
return 0;
}