VisualizeVideo
 All Classes Functions Pages
Public Member Functions | List of all members
Program Class Reference

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)
 

Detailed Description

This class wrapps an OpenGL shader program.


The documentation for this class was generated from the following files: