8 #ifndef SHADER_OBJECTS_HPP 9 #define SHADER_OBJECTS_HPP 11 #include <SimpleGL_gl/SimpleGL_gl_Export.h> 17 #include <glm/glm.hpp> 69 void source(std::string source);
79 bool getCompileStatus();
86 std::string getInfoLog();
121 void attach(
Shader* shader);
134 bool getLinkStatus();
141 std::string getInfoLog();
149 void bindFragmentDataLocation(
unsigned int colorNumber, std::string name);
158 int getAttributeLocation(std::string name);
167 int getUniformLocation(std::string name);
175 void setUniform(
int location,
int value);
183 void setUniform(
int location,
float value);
191 void setUniform(
int location, glm::vec2 value);
199 void setUniform(
int location, glm::vec3 value);
207 void setUniform(
int location, glm::vec4 value);
215 void setUniform(
int location, glm::mat2 value);
223 void setUniform(
int location, glm::mat3 value);
231 void setUniform(
int location, glm::mat4 value);
239 void setUniform(std::string name,
int value);
247 void setUniform(std::string name,
float value);
255 void setUniform(std::string name, glm::vec2 value);
263 void setUniform(std::string name, glm::vec3 value);
271 void setUniform(std::string name, glm::vec4 value);
279 void setUniform(std::string name, glm::mat2 value);
287 void setUniform(std::string name, glm::mat3 value);
295 void setUniform(std::string name, glm::mat4 value);
This class wraps an OpenGL shader object.
ShaderType
This enum wraps the shader types.
Equivalent to GL_VERTEX_SHADER.
This class wraps an OpenGL shader program.
Generic namespace for the SimpleGL framework.
Equivalent to GL_FRAGMENT_SHADER.