VisPro  1.0
Project of Visualisierung 2
TextureShader Class Reference
Inheritance diagram for TextureShader:
Shader AnimatedTextureShader

Public Member Functions

 TextureShader (const std::string &path, glm::vec3 amb_col, glm::vec3 spec_col, float shin)
 
virtual void bindTexture (int unit)
 
virtual void setLighting (std::vector< std::shared_ptr< PointLight >> *allLights, int sm_light_id)
 
- Public Member Functions inherited from Shader
 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)
 

Protected Attributes

Texturetexture
 

Additional Inherited Members

- Public Attributes inherited from Shader
GLuint programHandle
 

Member Function Documentation

void TextureShader::bindTexture ( int  unit)
virtual

Bind given texture unit in given context.

Parameters
unittexture unit identifier

Reimplemented from Shader.

Reimplemented in AnimatedTextureShader.


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