mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
content-pack resources support
This commit is contained in:
parent
c6d2266026
commit
396ee31bcc
43 changed files with 170 additions and 90 deletions
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue