#include <Shader.h>
|
| Shader (const std::string &vertexShader, const std::string &fragmentShader) |
|
| Shader (const std::string &vertexShader, const std::string &geometryShader, const std::string &fragmentShader) |
|
void | useShader () const |
|
virtual void | setLighting (std::vector< std::shared_ptr< PointLight >> *allLights) |
|
void | setCutawayDimension (glm::vec2 dim) |
|
virtual void | bindTexture (int unit) |
|
Shader::Shader |
( |
const std::string & |
vertexShader, |
|
|
const std::string & |
fragmentShader |
|
) |
| |
Constructor.
- Parameters
-
vertexShader | vertex shader file |
fragmentShader | fragment shader file |
Shader::Shader |
( |
const std::string & |
vertexShader, |
|
|
const std::string & |
geometryShader, |
|
|
const std::string & |
fragmentShader |
|
) |
| |
Constructor.
- Parameters
-
vertexShader | vertex shader file |
geometryShader | geometry shader file |
fragmentShader | fragment shader file |
void Shader::bindTexture |
( |
int |
unit | ) |
|
|
virtual |
void Shader::setCutawayDimension |
( |
glm::vec2 |
dim | ) |
|
Set screen coordinate dimension of cutaway surface plane in shader.
- Parameters
-
dim | 2D vector of cutaway surface plane dimension |
void Shader::setLighting |
( |
std::vector< std::shared_ptr< PointLight >> * |
allLights | ) |
|
|
virtual |
void Shader::useShader |
( |
| ) |
const |
Installs given GLSL program.
GLuint Shader::programHandle |
Program handle that contains all given shaders.
The documentation for this class was generated from the following files: