YourGameLib
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
yourgame::gl::Shader Class Reference

#include <shader.h>

Public Member Functions

 ~Shader ()
 
void useProgram (Lightsource *lightsource=nullptr, yourgame::math::Camera *camera=nullptr)
 
GLint getUniformLocation (const GLchar *name)
 
 Shader (Shader const &)=delete
 
Shaderoperator= (Shader const &)=delete
 

Static Public Member Functions

static Shadermake (const std::vector< std::pair< GLenum, std::string > > &shaderCodes, const std::vector< std::pair< GLuint, std::string > > &attrLocs, const std::vector< std::pair< GLuint, std::string > > &fragDataLocs, std::string &errorLog)
 

Constructor & Destructor Documentation

◆ ~Shader()

yourgame::gl::Shader::~Shader ( )

◆ Shader()

yourgame::gl::Shader::Shader ( Shader const &  )
delete

Member Function Documentation

◆ getUniformLocation()

GLint yourgame::gl::Shader::getUniformLocation ( const GLchar *  name)

◆ make()

Shader * yourgame::gl::Shader::make ( const std::vector< std::pair< GLenum, std::string > > &  shaderCodes,
const std::vector< std::pair< GLuint, std::string > > &  attrLocs,
const std::vector< std::pair< GLuint, std::string > > &  fragDataLocs,
std::string &  errorLog 
)
static

◆ operator=()

Shader & yourgame::gl::Shader::operator= ( Shader const &  )
delete

◆ useProgram()

void yourgame::gl::Shader::useProgram ( Lightsource lightsource = nullptr,
yourgame::math::Camera camera = nullptr 
)

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