#include <Program.hpp>
Public Types | |
typedef std::shared_ptr< const Program > | ConstPtr |
typedef std::shared_ptr< Program > | Ptr |
Public Member Functions | |
std::uint32_t | getHandle () const |
std::uint32_t | getUniformLocation (const std::string &name) const |
void | use () |
~Program () | |
Static Public Member Functions | |
static Ptr | link (const std::initializer_list< Shader::Ptr > &shaders) |
Private Member Functions | |
Program (const std::uint16_t handle) | |
Private Attributes | |
std::uint32_t | handle_ |
Represents a shader pipeline program
Definition at line 15 of file Program.hpp.
typedef std::shared_ptr<const Program> quori_face::Program::ConstPtr |
Definition at line 19 of file Program.hpp.
typedef std::shared_ptr<Program> quori_face::Program::Ptr |
Definition at line 18 of file Program.hpp.
Program::~Program | ( | ) |
Definition at line 14 of file Program.cpp.
|
private |
Definition at line 65 of file Program.cpp.
std::uint32_t Program::getHandle | ( | ) | const |
Definition at line 60 of file Program.cpp.
std::uint32_t Program::getUniformLocation | ( | const std::string & | name | ) | const |
Definition at line 50 of file Program.cpp.
|
static |
Construct a program with the given shader pipeline.
[in] | shaders | The shader pipeline, in order |
Definition at line 19 of file Program.cpp.
void Program::use | ( | ) |
Bind the program to the current OpenGL context
Definition at line 55 of file Program.cpp.
|
private |
Definition at line 51 of file Program.hpp.