3 types of lights

supported number of n lights
This commit is contained in:
devZoGok
2021-10-18 19:03:19 +03:00
parent 0083f9e5b8
commit aebc069053
16 changed files with 350 additions and 23 deletions
+5
View File
@@ -8,13 +8,18 @@ namespace vb01{
class Shader{
public:
Shader(std::string,std::string);
void setNumLights(int);
void use();
void setMat4(glm::mat4,std::string);
void setVec3(glm::vec3,std::string);
void setFloat(float,std::string);
void setBool(bool,std::string);
void setInt(int,std::string);
private:
enum ErrorType{VERTEX,FRAGMENT,PROGRAM};
void checkCompileErrors(unsigned int,ErrorType);
unsigned int id;
std::string vString,fString;
};
}