TDME2 1.9.121
|
Represents specular material properties. More...
#include <tdme/engine/model/SpecularMaterialProperties.h>
Public Member Functions | |
SpecularMaterialProperties () | |
Public constructor. More... | |
~SpecularMaterialProperties () | |
Destructor. More... | |
bool | hasEmbeddedTextures () const |
void | setEmbedTextures (bool embedTextures) |
Set if to embed textures. More... | |
const Color4 & | getAmbientColor () const |
void | setAmbientColor (const Color4 &ambientColor) |
Set ambient color component. More... | |
const Color4 & | getDiffuseColor () const |
void | setDiffuseColor (const Color4 &diffuseColor) |
Set diffuse color component. More... | |
const Color4 & | getSpecularColor () const |
void | setSpecularColor (const Color4 &specularColor) |
Set specular color component. More... | |
const Color4 & | getEmissionColor () const |
void | setEmissionColor (const Color4 &emissionColor) |
Set emission color component. More... | |
float | getShininess () const |
void | setShininess (float shininess) |
Set up material shininess. More... | |
float | getReflection () const |
void | setReflection (float reflection) |
Set up material reflection. More... | |
int32_t | getTextureAtlasSize () const |
void | setTextureAtlasSize (int32_t textureAtlasSize) |
Set texture atlas size. More... | |
const string & | getDiffuseTexturePathName () const |
void | setDiffuseTexturePathName (const string &diffuseTexturePathName) |
Set diffuse texture path name. More... | |
const string & | getDiffuseTextureFileName () const |
void | setDiffuseTextureFileName (const string &diffuseTextureFileName) |
Set diffuse texture file name. More... | |
const string & | getDiffuseTransparencyTexturePathName () const |
const string & | getDiffuseTransparencyTextureFileName () const |
void | setDiffuseTexture (Texture *diffuseTexture) |
Set up a diffuse texture by the texture itself. More... | |
void | setDiffuseTexture (const string &pathName, const string &fileName, const string &transparencyPathName=string(), const string &transparencyFileName=string()) |
Set up a diffuse texture. More... | |
bool | hasDiffuseTexture () const |
Texture * | getDiffuseTexture () const |
bool | hasDiffuseTextureTransparency () const |
bool | hasDiffuseTextureMaskedTransparency () const |
void | setDiffuseTextureMaskedTransparency (bool maskedTransparency) |
Set if diffuse texture uses masked transparency(means pixel are eighter opaque or not visible) More... | |
float | getDiffuseTextureMaskedTransparencyThreshold () const |
void | setDiffuseTextureMaskedTransparencyThreshold (float maskedTransparencyThreshold) |
Set diffuse texture masked transparency threshold. More... | |
const string & | getSpecularTexturePathName () const |
void | setSpecularTexturePathName (const string &specularTexturePathName) |
Set specular texture path name. More... | |
const string & | getSpecularTextureFileName () const |
void | setSpecularTextureFileName (const string &specularTextureFileName) |
Set specular texture file name. More... | |
void | setSpecularTexture (Texture *specularTexture) |
Set up a specular texture by the texture itself. More... | |
void | setSpecularTexture (const string &pathName, const string &fileName) |
Set up a specular texture. More... | |
bool | hasSpecularTexture () const |
Texture * | getSpecularTexture () const |
const string & | getNormalTexturePathName () const |
void | setNormalTexturePathName (const string &normalTexturePathName) |
Set normal texture path name. More... | |
const string & | getNormalTextureFileName () const |
void | setNormalTextureFileName (const string &normalTextureFileName) |
Set normal texture file name. More... | |
void | setNormalTexture (Texture *normalTexture) |
Set up a normal texture by the texture itself. More... | |
void | setNormalTexture (const string &pathName, const string &fileName) |
Set up a normal texture. More... | |
bool | hasNormalTexture () const |
Texture * | getNormalTexture () const |
bool | hasColorTransparency () const |
bool | getDiffuseTextureTransparency () |
void | setDiffuseTextureTransparency (bool textureTransparency) |
Set diffuse texture transparency. More... | |
bool | hasTextureTransparency () const |
const Matrix2D3x3 & | getTextureMatrix () const |
void | setTextureMatrix (const Matrix2D3x3 &textureMatrix) |
Set texture matrix. More... | |
Private Member Functions | |
void | checkDiffuseTextureTransparency () |
Checks and set ups diffuse texture transparency. More... | |
Private Attributes | |
bool | embedTextures |
Color4 | ambientColor |
Color4 | diffuseColor |
Color4 | specularColor |
Color4 | emissionColor |
float | shininess |
float | reflection |
string | diffuseTexturePathName |
string | diffuseTextureFileName |
string | diffuseTransparencyTexturePathName |
string | diffuseTransparencyTextureFileName |
Texture * | diffuseTexture |
bool | diffuseTextureMaskedTransparency |
float | diffuseTextureMaskedTransparencyThreshold |
bool | diffuseTextureTransparency |
string | specularTexturePathName |
string | specularTextureFileName |
Texture * | specularTexture |
string | normalTexturePathName |
string | normalTextureFileName |
Texture * | normalTexture |
Matrix2D3x3 | textureMatrix |
int | textureAtlasSize |
Represents specular material properties.
Definition at line 22 of file SpecularMaterialProperties.h.
Public constructor.
Definition at line 21 of file SpecularMaterialProperties.cpp.
Destructor.
Definition at line 39 of file SpecularMaterialProperties.cpp.
|
private |
Checks and set ups diffuse texture transparency.
Definition at line 87 of file SpecularMaterialProperties.cpp.
|
inline |
Definition at line 84 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 99 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 255 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 204 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 284 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 189 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 420 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 226 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 219 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 129 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 406 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 371 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 356 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 159 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 144 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 114 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 349 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 314 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 299 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 174 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 442 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 413 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 248 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 269 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 262 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 69 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 399 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 342 of file SpecularMaterialProperties.h.
|
inline |
Definition at line 435 of file SpecularMaterialProperties.h.
|
inline |
Set ambient color component.
ambientColor | ambient color |
Definition at line 92 of file SpecularMaterialProperties.h.
|
inline |
Set diffuse color component.
diffuseColor | diffuse color |
Definition at line 107 of file SpecularMaterialProperties.h.
void setDiffuseTexture | ( | const string & | pathName, |
const string & | fileName, | ||
const string & | transparencyPathName = string() , |
||
const string & | transparencyFileName = string() |
||
) |
Set up a diffuse texture.
pathName | path name |
fileName | file name |
transparencyPathName | transparency path name |
transparencyFileName | transparency file name |
Definition at line 56 of file SpecularMaterialProperties.cpp.
void setDiffuseTexture | ( | Texture * | diffuseTexture | ) |
Set up a diffuse texture by the texture itself.
diffuseTexture | diffuse texture |
Definition at line 45 of file SpecularMaterialProperties.cpp.
|
inline |
Set diffuse texture file name.
Definition at line 212 of file SpecularMaterialProperties.h.
|
inline |
Set if diffuse texture uses masked transparency(means pixel are eighter opaque or not visible)
maskedTransparency | masked transparency |
Definition at line 277 of file SpecularMaterialProperties.h.
|
inline |
Set diffuse texture masked transparency threshold.
maskedTransparencyThreshold | diffuse texture masked transparency threshold |
Definition at line 292 of file SpecularMaterialProperties.h.
|
inline |
Set diffuse texture path name.
diffuseTexturePathName | diffuse texture path name |
Definition at line 197 of file SpecularMaterialProperties.h.
|
inline |
Set diffuse texture transparency.
diffuseTextureTransparency | diffuse texture has transparency |
Definition at line 428 of file SpecularMaterialProperties.h.
|
inline |
Set if to embed textures.
embedTextures | embed textures |
Definition at line 77 of file SpecularMaterialProperties.h.
|
inline |
Set emission color component.
emissionColor | emission color |
Definition at line 137 of file SpecularMaterialProperties.h.
void setNormalTexture | ( | const string & | pathName, |
const string & | fileName | ||
) |
Set up a normal texture.
pathName | path name |
fileName | file name |
Definition at line 127 of file SpecularMaterialProperties.cpp.
void setNormalTexture | ( | Texture * | normalTexture | ) |
Set up a normal texture by the texture itself.
normalTexture | normal texture |
Definition at line 119 of file SpecularMaterialProperties.cpp.
|
inline |
Set normal texture file name.
Definition at line 379 of file SpecularMaterialProperties.h.
|
inline |
Set normal texture path name.
normalTexturePathName | normal texture path name |
Definition at line 364 of file SpecularMaterialProperties.h.
|
inline |
Set up material reflection.
reflection | reflection |
Definition at line 167 of file SpecularMaterialProperties.h.
|
inline |
Set up material shininess.
shininess | shininess |
Definition at line 152 of file SpecularMaterialProperties.h.
|
inline |
Set specular color component.
specularColor | specular color |
Definition at line 122 of file SpecularMaterialProperties.h.
void setSpecularTexture | ( | const string & | pathName, |
const string & | fileName | ||
) |
Set up a specular texture.
pathName | path name |
fileName | file name |
Definition at line 110 of file SpecularMaterialProperties.cpp.
void setSpecularTexture | ( | Texture * | specularTexture | ) |
Set up a specular texture by the texture itself.
specularTexture | specular texture |
Definition at line 102 of file SpecularMaterialProperties.cpp.
|
inline |
Set specular texture file name.
Definition at line 322 of file SpecularMaterialProperties.h.
|
inline |
Set specular texture path name.
specularTexturePathName | specular texture path name |
Definition at line 307 of file SpecularMaterialProperties.h.
|
inline |
Set texture atlas size.
textureAtlasSize | texture atlas size |
Definition at line 182 of file SpecularMaterialProperties.h.
|
inline |
Set texture matrix.
texture | matrix |
Definition at line 450 of file SpecularMaterialProperties.h.
|
private |
Definition at line 27 of file SpecularMaterialProperties.h.
|
private |
Definition at line 28 of file SpecularMaterialProperties.h.
|
private |
Definition at line 37 of file SpecularMaterialProperties.h.
|
private |
Definition at line 34 of file SpecularMaterialProperties.h.
|
private |
Definition at line 38 of file SpecularMaterialProperties.h.
|
private |
Definition at line 39 of file SpecularMaterialProperties.h.
|
private |
Definition at line 33 of file SpecularMaterialProperties.h.
|
private |
Definition at line 40 of file SpecularMaterialProperties.h.
|
private |
Definition at line 36 of file SpecularMaterialProperties.h.
|
private |
Definition at line 35 of file SpecularMaterialProperties.h.
|
private |
Definition at line 26 of file SpecularMaterialProperties.h.
|
private |
Definition at line 30 of file SpecularMaterialProperties.h.
|
private |
Definition at line 46 of file SpecularMaterialProperties.h.
|
private |
Definition at line 45 of file SpecularMaterialProperties.h.
|
private |
Definition at line 44 of file SpecularMaterialProperties.h.
|
private |
Definition at line 32 of file SpecularMaterialProperties.h.
|
private |
Definition at line 31 of file SpecularMaterialProperties.h.
|
private |
Definition at line 29 of file SpecularMaterialProperties.h.
|
private |
Definition at line 43 of file SpecularMaterialProperties.h.
|
private |
Definition at line 42 of file SpecularMaterialProperties.h.
|
private |
Definition at line 41 of file SpecularMaterialProperties.h.
|
private |
Definition at line 48 of file SpecularMaterialProperties.h.
|
private |
Definition at line 47 of file SpecularMaterialProperties.h.