TDME2 1.9.121
|
Represents a material. More...
#include <tdme/engine/model/Material.h>
Public Member Functions | |
Material (const string &id) | |
Public constructor. More... | |
~Material () | |
Destructor. More... | |
const string & | getId () const |
const SpecularMaterialProperties * | getSpecularMaterialProperties () const |
SpecularMaterialProperties * | getSpecularMaterialProperties () |
const PBRMaterialProperties * | getPBRMaterialProperties () const |
PBRMaterialProperties * | getPBRMaterialProperties () |
void | setSpecularMaterialProperties (SpecularMaterialProperties *specularMaterialProperties) |
Set specular material properties. More... | |
void | setPBRMaterialProperties (PBRMaterialProperties *pbrMaterialProperties) |
Set PBR material properties. More... | |
bool | isDoubleSided () const |
void | setDoubleSided (bool doubleSided) |
Set double sided. More... | |
const Matrix2D3x3 & | getTextureMatrix () const |
void | setTextureMatrix (const Matrix2D3x3 &textureMatrix) |
Set texture matrix. More... | |
Static Public Member Functions | |
static Material * | getDefaultMaterial () |
Private Attributes | |
string | id |
SpecularMaterialProperties * | specularMaterialProperties { nullptr } |
PBRMaterialProperties * | pbrMaterialProperties { nullptr } |
bool | doubleSided { false } |
Matrix2D3x3 | textureMatrix |
Static Private Attributes | |
static STATIC_DLL_IMPEXT string | defaultMaterialId = "tdme.default_material" |
static STATIC_DLL_IMPEXT Material * | defaultMaterial = new Material(Material::defaultMaterialId) |
Material | ( | const string & | id | ) |
~Material | ( | ) |
Destructor.
Definition at line 36 of file Material.cpp.
|
inlinestatic |
Definition at line 31 of file Material.h.
|
inline |
Definition at line 57 of file Material.h.
|
inline |
Definition at line 85 of file Material.h.
|
inline |
Definition at line 78 of file Material.h.
|
inline |
Definition at line 71 of file Material.h.
|
inline |
Definition at line 64 of file Material.h.
|
inline |
Definition at line 119 of file Material.h.
|
inline |
Definition at line 104 of file Material.h.
|
inline |
void setPBRMaterialProperties | ( | PBRMaterialProperties * | pbrMaterialProperties | ) |
Set PBR material properties.
pbrMaterialProperties | PBR material properties |
Definition at line 29 of file Material.cpp.
void setSpecularMaterialProperties | ( | SpecularMaterialProperties * | specularMaterialProperties | ) |
Set specular material properties.
specularMaterialProperties | specular material properties |
Definition at line 22 of file Material.cpp.
|
inline |
Set texture matrix.
textureMatrix | texture matrix |
Definition at line 127 of file Material.h.
|
staticprivate |
Definition at line 24 of file Material.h.
|
staticprivate |
Definition at line 23 of file Material.h.
|
private |
Definition at line 39 of file Material.h.
|
private |
Definition at line 36 of file Material.h.
|
private |
Definition at line 38 of file Material.h.
|
private |
Definition at line 37 of file Material.h.
|
private |
Definition at line 40 of file Material.h.