This class wrapps an OpenGL shader program. More...
#include <Program.h>
Public Member Functions | |
| Program (const std::vector< std::shared_ptr< Shader >> &shaderList) throw (RenderingException) | |
| Constructs and links a program given a list of shaders. | |
| GLuint | getProgram () const |
| Returns the program. | |
| void | use () |
| Uses the program. | |
| void | unuse () |
| Unuses the program. | |
| void | uniform (const std::string &name, const glm::mat4 &mat) |
| Sets the given uniform matrix buffer. | |
| void | uniform (const std::string &name, GLfloat val) |
| void | uniform (const std::string &name, GLint val) |
| void | uniform (const std::string &name, const glm::vec3 &v) |
| void | uniform (const std::string &name, const glm::vec2 &v) |
This class wrapps an OpenGL shader program.
1.8.4