Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
yage::Shader Class Reference

#include <shader.h>

Public Member Functions

 Shader (std::string const &vertex_path, std::string const &fragment_path)
 
 Shader (const Shader &)=delete
 
 Shader (Shader &&)=delete
 
 ~Shader ()
 
Shaderoperator= (const Shader &)=delete
 
Shaderoperator= (Shader &&)=delete
 
void use () const
 compiles vertex and fragment shader More...
 
void setUniform (std::string const &name, int value) const
 set uniforms of different type More...
 
void setUniform (std::string const &name, float value) const
 
void setUniform (std::string const &name, const glm::mat4 &matrix) const
 

Constructor & Destructor Documentation

yage::Shader::Shader ( std::string const &  vertex_path,
std::string const &  fragment_path 
)
yage::Shader::Shader ( const Shader )
delete
yage::Shader::Shader ( Shader &&  )
delete
yage::Shader::~Shader ( )

cleans up all the shaders and the program

Member Function Documentation

Shader& yage::Shader::operator= ( const Shader )
delete
Shader& yage::Shader::operator= ( Shader &&  )
delete
void yage::Shader::setUniform ( std::string const &  name,
int  value 
) const

set uniforms of different type

void yage::Shader::setUniform ( std::string const &  name,
float  value 
) const
void yage::Shader::setUniform ( std::string const &  name,
const glm::mat4 &  matrix 
) const
void yage::Shader::use ( ) const

compiles vertex and fragment shader


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