JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
ShaderProgram Class Reference

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
 
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.

Member Function Documentation

◆ getUniformLocation()

int getUniformLocation ( const std::string & name) const
Parameters
namename of the declared variable

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