|
|
| null_material (const_shader_ptr_type pShader=nullptr, const render_mode aRenderMode=render_mode::opaque, const face_culling_mode aFaceCullingMode=face_culling_mode::none) |
|
virtual void | set_texture (const std::string_view aName, texture_ptr_type aValue) override |
| virtual void | set_float (const std::string_view aName, float aValue) override |
| | assigns a float to the material.
|
| virtual void | set_vector2 (const std::string_view aName, vector2_type aValue) override |
| | assigns a 2 component vector
|
| virtual void | set_vector3 (const std::string_view aName, vector3_type aValue) override |
| | assigns a 3 component vector
|
| virtual void | set_vector4 (const std::string_view aName, vector4_type aValue) override |
| | assigns a 4 component vector
|
| virtual void | set_vector4 (const std::string_view aName, const color &aValue) override |
| | assign an RGBA colour to a vec4 uniform
|
| virtual void | set_integer (const std::string_view aName, int aValue) override |
| | assigns an integer to the material.
|
| virtual void | set_integer2 (const std::string_view aName, int a1, int a2) override |
| | assigns a 2 integer array to the material.
|
| virtual void | set_integer3 (const std::string_view aName, int a1, int a2, int a3) override |
| | assigns a 3 integer array to the material.
|
| virtual void | set_integer4 (const std::string_view aName, int a1, int a2, int a3, int a4) override |
| | assigns a 4 integer array to the material.
|
| virtual void | set_int_vector2_array (const std::string_view aName, const std::vector< intvector2_type > &aValue) override |
| | assigns an array of integer vector2s to the material
|
|
std::optional< float > | float_at (std::string_view aName) const |
|
std::optional< vector4_type > | vector4_at (std::string_view aName) const |
|
texture_ptr_type | texture_at (std::string_view aName) const |
|
std::vector< std::string > | uniforms () const |
|
render_mode | mode () const |
|
virtual void | set_texture (const std::string_view aName, texture_ptr_type aTexturePointer)=0 |
| | assigns a texture to the material, which shares it; a null texture unsets the name
|