Wrapper around the GraphisEngine's material.
More...
#include <material.h>
|
static auto | id_value () -> uint64_t & |
| Used for assigning new material name in the graphics engine.
|
|
|
std::shared_ptr< GraphicsEngine::Material > | material |
|
Wrapper around the GraphisEngine's material.
◆ Material() [1/4]
Saga::Material::Material |
( |
| ) |
|
Construct a new Material object.
- Warning
- this will leave you with a pointer to a null material. Please assign it before use.
◆ Material() [2/4]
Saga::Material::Material |
( |
glm::vec3 |
color, |
|
|
float |
shininess = 1.f |
|
) |
| |
Constructor for setting SOLID_COLOR based material.
- Parameters
-
color | rgb color of the material. Each components are in the range [0,1]. |
shininess | shininess of the material. Used for phong illumination. |
- Parameters
-
color | rgb color of the material. Each components are in the range [0,1]. |
shininess | shininess of the material. Used for phong illumination. |
◆ Material() [3/4]
Saga::Material::Material |
( |
float |
shininess | ) |
|
Constructor for setting PER_VERTEX_COLOR based material.
- Parameters
-
shininess | shininess of the material. Used for phong illumination. |
- Parameters
-
shininess | shininess of the material. Used for phong illumination. |
◆ Material() [4/4]
Saga::Material::Material |
( |
std::shared_ptr< GraphicsEngine::Texture > |
texture, |
|
|
float |
shininess = 1.f |
|
) |
| |
Constructor for setting TEXTURE_COLOR based material.
- Parameters
-
texture | pointer to a texture object. |
shininess | shininess of the material. Used for phong illumination. |
- Parameters
-
texture | pointer to a texture object. |
shininess | shininess of the material. Used for phong illumination. |
◆ id_value()
static auto Saga::Material::id_value |
( |
| ) |
-> uint64_t & |
|
inlinestatic |
Used for assigning new material name in the graphics engine.
- Returns
- uint64_t& a new, unique integer.
◆ operator const std::shared_ptr< GraphicsEngine::Material > &()
Saga::Material::operator const std::shared_ptr< GraphicsEngine::Material > & |
( |
| ) |
const |
|
inline |
◆ operator std::shared_ptr< GraphicsEngine::Material > &()
Saga::Material::operator std::shared_ptr< GraphicsEngine::Material > & |
( |
| ) |
|
|
inline |
◆ material
std::shared_ptr<GraphicsEngine::Material> Saga::Material::material |
The documentation for this struct was generated from the following files: