JNGL
Easy to use cross-platform 2D game library
|
Linked vertex and fragment shaders. More...
#include <jngl/ShaderProgram.hpp>
Classes | |
struct | Context |
Lifetime object when the ShaderProgram is in use. More... | |
Public Member Functions | |
ShaderProgram (const Shader &vertex, const Shader &fragment) | |
ShaderProgram (const ShaderProgram &)=delete | |
ShaderProgram (ShaderProgram &&)=delete | |
ShaderProgram & | operator= (const ShaderProgram &)=delete |
ShaderProgram & | operator= (ShaderProgram &&)=delete |
Context | use () const |
int | getAttribLocation (const std::string &name) const |
int | getUniformLocation (const std::string &name) const |
Linked vertex and fragment shaders.
Definition at line 17 of file ShaderProgram.hpp.
int getUniformLocation | ( | const std::string & | name | ) | const |
name | name of the declared variable |