GLSL 'include' support

This commit is contained in:
MihailRis
2023-11-28 16:13:49 +03:00
parent e6ecd558a9
commit a60cc70246
20 changed files with 238 additions and 35 deletions
+3
View File
@@ -15,6 +15,7 @@
#include "window/Camera.h"
#include "window/input.h"
#include "graphics/Batch2D.h"
#include "graphics/Shader.h"
#include "graphics/ImageData.h"
#include "frontend/gui/GUI.h"
#include "frontend/screens.h"
@@ -22,6 +23,7 @@
#include "coders/json.h"
#include "coders/png.h"
#include "coders/GLSLExtension.h"
#include "files/files.h"
#include "files/engine_paths.h"
@@ -35,6 +37,7 @@ using gui::GUI;
Engine::Engine(EngineSettings& settings, EnginePaths* paths, Content* content)
: settings(settings), content(content), paths(paths) {
Window::initialize(settings.display);
Shader::preprocessor->setLibFolder(paths->getResources()/path("shaders/lib"));
assets = new Assets();
std::cout << "-- loading assets" << std::endl;