#include <ShaderProgram.hpp>
Inherits gli::OpenGLBase< Derived >.
|
| ShaderProgram () noexcept |
|
| ~ShaderProgram () noexcept |
|
void | compileString (ShaderType shaderType, const char *sourceCode) |
|
void | compileFile (ShaderType shaderType, const char *sourceFilePath) |
|
void | link () const |
|
void | validate () const |
|
int | getParameter (ProgramParameter param) const noexcept |
|
unsigned int | getUniformLocation (const char *name) const |
|
template<int L, OpenGLType T, glm::qualifier Q> |
void | setUniform (const char *name, const glm::vec< L, T, Q > &v) |
|
template<int R, int C, OpenGLType T, glm::qualifier Q> |
void | setUniform (const char *name, const glm::mat< R, C, T, Q > &m, bool transpose) |
|
void | bindAttribLocation (unsigned int index, const char *name) const noexcept |
|
◆ ShaderProgram()
gli::ShaderProgram::ShaderProgram |
( |
| ) |
|
|
noexcept |
◆ ~ShaderProgram()
gli::ShaderProgram::~ShaderProgram |
( |
| ) |
|
|
noexcept |
◆ bindAttribLocation()
void gli::ShaderProgram::bindAttribLocation |
( |
unsigned int |
index, |
|
|
const char * |
name |
|
) |
| const |
|
noexcept |
◆ compileFile()
void gli::ShaderProgram::compileFile |
( |
ShaderType |
shaderType, |
|
|
const char * |
sourceFilePath |
|
) |
| |
◆ compileString()
void gli::ShaderProgram::compileString |
( |
ShaderType |
shaderType, |
|
|
const char * |
sourceCode |
|
) |
| |
◆ getParameter()
◆ getUniformLocation()
unsigned int gli::ShaderProgram::getUniformLocation |
( |
const char * |
name | ) |
const |
◆ link()
void gli::ShaderProgram::link |
( |
| ) |
const |
◆ setUniform() [1/2]
template<int R, int C, OpenGLType T, glm::qualifier Q>
void gli::ShaderProgram::setUniform |
( |
const char * |
name, |
|
|
const glm::mat< R, C, T, Q > & |
m, |
|
|
bool |
transpose |
|
) |
| |
◆ setUniform() [2/2]
template<int L, OpenGLType T, glm::qualifier Q>
void gli::ShaderProgram::setUniform |
( |
const char * |
name, |
|
|
const glm::vec< L, T, Q > & |
v |
|
) |
| |
◆ validate()
void gli::ShaderProgram::validate |
( |
| ) |
const |
◆ OpenGLBase< ShaderProgram >
The documentation for this class was generated from the following file: