#pragma once #include "glad.h" #include "glfw3.h" #include #include class Shader { public: unsigned int programID; std::string vertexFile; std::string fragmentFile; long fragmentModTimeOnLoad; Shader(); void Unload(); void ReloadFromFile(); static Shader LoadShader(std::string fileVertexShader, std::string fileFragmentShader); private: static bool CompileShader(unsigned int shaderId, char(&infoLog)[512]); static bool LinkProgram(unsigned int programID, char(&infoLog)[512]); };