Classes | Public Member Functions | List of all members
ShaderProgram Class Reference

Linked vertex and fragment shaders. More...

#include <jngl/ShaderProgram.hpp>


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
ShaderProgramoperator= (const ShaderProgram &)=delete
ShaderProgramoperator= (ShaderProgram &&)=delete
Context use () const
int getAttribLocation (const std::string &name) const
int getUniformLocation (const std::string &name) const

Detailed Description

Linked vertex and fragment shaders.

Definition at line 17 of file ShaderProgram.hpp.

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