5 #include <unordered_map> 
   40         void SetMatrix( 
const char* name, 
const Matrix44& matrix );
 
   59         void SetInt( 
const char* name, 
int value );
 
   63         void SetFloat( 
const char* name, 
float value );
 
   75         static std::unordered_map< std::string, RenderTexture* > sTexRTs;
 
   77         std::unordered_map< std::string, float > floats;
 
   78         std::unordered_map< std::string, int > ints;
 
   79         std::unordered_map< std::string, Vec3 > vec3s;
 
   80         std::unordered_map< std::string, Vec4 > vec4s;
 
   81         std::unordered_map< std::string, Texture2D* > tex2ds;
 
   82         std::unordered_map< std::string, TextureCube* > texCubes;
 
   83         std::unordered_map< std::string, RenderTexture* > texRTs;
 
   84         std::unordered_map< std::string, Matrix44 > mat4s;
 
   86         bool cullBackFaces = 
true;
 
Material is used to render a mesh. 
Definition: Material.hpp:18
 
void SetVector(const char *name, const Vec3 &vec3)
 
Definition: AudioClip.hpp:4
 
4-component vector. 
Definition: Vec3.hpp:351
 
void SetTexture(const char *name, Texture2D *texture)
 
void Apply()
Applies the uniforms into the shader. Called internally. 
 
Shader * GetShader() const 
Definition: Material.hpp:27
 
3-component vector. 
Definition: Vec3.hpp:12
 
void SetFloat(const char *name, float value)
 
Render texture. 
Definition: RenderTexture.hpp:10
 
void SetInt(const char *name, int value)
 
void SetBackFaceCulling(bool enable)
Definition: Material.hpp:36
 
Cube Map texture. 
Definition: TextureCube.hpp:15
 
Shader program containing a vertex and pixel shader. 
Definition: Shader.hpp:22
 
void SetMatrix(const char *name, const Matrix44 &matrix)
 
void SetRenderTexture(const char *name, RenderTexture *renderTexture)
 
bool IsValidShader() const 
 
2D texture. 
Definition: Texture2D.hpp:15
 
static void SetGlobalRenderTexture(const char *name, RenderTexture *renderTexture)
 
void SetShader(Shader *shader)