content-pack resources support

This commit is contained in:
MihailRis 2023-12-14 02:30:39 +03:00
parent c6d2266026
commit 396ee31bcc
43 changed files with 170 additions and 90 deletions

View file

@ -2,19 +2,21 @@
#define CODERS_GLSL_EXTESION_H_
#include <string>
#include <vector>
#include <unordered_map>
#include <filesystem>
class ResPaths;
class GLSLExtension {
std::unordered_map<std::string, std::string> headers;
std::unordered_map<std::string, std::string> defines;
std::filesystem::path libFolder;
std::string version = "330 core";
const ResPaths* paths = nullptr;
void loadHeader(std::string name);
std::filesystem::path getHeaderPath(std::string name);
public:
void setLibFolder(std::filesystem::path folder);
void setPaths(const ResPaths* paths);
void setVersion(std::string version);
void define(std::string name, std::string value);
@ -30,4 +32,4 @@ public:
const std::string process(const std::filesystem::path file, const std::string& source);
};
#endif // CODERS_GLSL_EXTESION_H_
#endif // CODERS_GLSL_EXTESION_H_