X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fshader_manager.h;h=cd171e62461302dbf786c958f643a0a623bd3960;hb=f6ceb163227d00d7f97df1fc2dfbdd419c56277e;hp=da44c0902d920fe2a5631bf99a8c832cd50c3547;hpb=31bab00bc3b476be9814c1ee06b9a2f0dc77d4e9;p=demo diff --git a/src/shader_manager.h b/src/shader_manager.h index da44c09..cd171e6 100644 --- a/src/shader_manager.h +++ b/src/shader_manager.h @@ -1,6 +1,7 @@ #ifndef SHADER_MANAGER_H_ #define SHADER_MANAGER_H_ +#include #include #include "shader.h" @@ -8,13 +9,19 @@ class ShaderManager { private: std::map shaders; + std::string path; + public: ShaderManager(); ~ShaderManager(); void add_shader(Shader *sdr, const char *name); - Shader *load_shader(const char *name, SType type); + Shader *load_shader(const char *name, ShaderType type); void delete_shaders(); + + ShaderProgram *create_shader_program(const char *vname, const char *fname); + + void set_path(const char *path); }; -#endif // SHADER_MANAGER_H_ \ No newline at end of file +#endif // SHADER_MANAGER_H_