TerraForge3D  2.3.1
3D Terrain And Landscape Generator
Shader Class Reference

Public Member Functions

 Shader (std::string vertexStc, std::string fragmentSrc, std::string geometrySource)
 
 Shader (std::string vertexStc, std::string fragmentSrc)
 
void Bind ()
 
void SetLightPos (glm::vec3 &)
 
void SetLightCol (float *)
 
void SetTime (float *)
 
void SetMPV (glm::mat4 &)
 
void SetUniformf (std::string name, float value)
 
void SetUniform3f (std::string name, float *value)
 
void SetUniformi (std::string name, int value)
 
void SetUniformMat4 (std::string name, glm::mat4 value)
 
void Unbind ()
 
int GetNativeShader ()
 

Public Attributes

int m_Shader =0
 
int m_UniformId =0
 
int m_LightPosUniformID =0
 
int m_LightColUniformID =0
 
int m_TimeUniformID =0
 
std::unordered_map< std::string, uint32_t > uniformLocations
 

Detailed Description

Definition at line 6 of file Shader.h.


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