mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
3 types of lights
supported number of n lights
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user