19 std::map<std::string, std::map<string, long>> _dependencyModifiedTimes;
21 std::vector<std::string> _getSourceFilePaths(
const std::string &name)
const;
22 bool _wasFileModified(
const std::string &path)
const;
23 static std::string _getNameFromKey(
const std::string &key);
24 static std::vector<std::string> _getDefinesFromKey(
const std::string &key);
59 static std::string
PreProcessShader(
const std::string &path,
const std::vector<std::string> &defines = {});
Resource management class for shaders.
ShaderProgram * GetShader(const std::string &name)
static unsigned int GetShaderTypeFromPath(const std::string &path)
static Shader * CompileNewShaderFromFile(const std::string &path, const std::vector< std::string > &defines={})
int LoadResourceByKey(const std::string &key)
static std::string PreProcessShader(const std::string &path, const std::vector< std::string > &defines={})
SmartShaderProgram GetSmartShader(const std::string &name)
static std::vector< std::string > GetShaderDependencies(const std::string &path)
Provides a C++ interface to the OpenGL shader program construct.
Provides a C++ interface to the OpenGL shader construct.
Provides a C++ interface to the OpenGL shader program construct.