0.44.0
|
#include <iMaterial.h>
Inherits igor::iResource.
Friends | |
class | iMaterialFactory |
Additional Inherited Members | |
Static Public Member Functions inherited from igor::iResource | |
static bool | extractID (const iParameters ¶meters, iResourceID &id, bool quiet=false) |
Protected Member Functions inherited from igor::iResource | |
iResource (const iParameters ¶meters) | |
contains all material information that belong to the surface of an object
Whereas iShaderMaterial contains all the information related to shader and environment ie lights etc.
float32 igor::iMaterial::getAlpha | ( | ) | const |
iaColor3f igor::iMaterial::getAmbient | ( | ) | const |
iaColor3f igor::iMaterial::getDiffuse | ( | ) | const |
iaColor3f igor::iMaterial::getEmissive | ( | ) | const |
iShaderMaterialPtr igor::iMaterial::getShaderMaterial | ( | ) | const |
float32 igor::iMaterial::getShininess | ( | ) | const |
iaColor3f igor::iMaterial::getSpecular | ( | ) | const |
iTexturePtr igor::iMaterial::getTexture | ( | uint32 | texunit | ) | const |
texunit | the given texture unit |
const std::map< uint32, iTexturePtr > & igor::iMaterial::getTextures | ( | ) | const |
const iaVector2f & igor::iMaterial::getTiling | ( | ) | const |
bool igor::iMaterial::hasTextures | ( | ) | const |
bool igor::iMaterial::hasTextureUnit | ( | uint32 | texunit | ) | const |
texunit | the given texture unit |
bool igor::iMaterial::isVelocityOriented | ( | ) | const |
void igor::iMaterial::setAlpha | ( | float32 | alpha | ) |
sets alpha value of material
void igor::iMaterial::setAmbient | ( | const iaColor3f & | a | ) |
set ambient color
a | ambient color |
void igor::iMaterial::setDiffuse | ( | const iaColor3f & | d | ) |
set diffuse color
d | diffuse color |
void igor::iMaterial::setEmissive | ( | const iaColor3f & | e | ) |
set emissive color
e | emissive color |
void igor::iMaterial::setShaderMaterial | ( | const iShaderMaterialPtr & | shaderMaterial | ) |
sets shader material
shaderMaterial | the shader material |
void igor::iMaterial::setShininess | ( | float32 | shininess | ) |
set shininess
shininess | the shininess value |
void igor::iMaterial::setSpecular | ( | const iaColor3f & | s | ) |
set specular color
s | specular color |
void igor::iMaterial::setTexture | ( | iTexturePtr | texture, |
uint32 | texunit | ||
) |
set a texture for a given texture unit
texture | the texture to add |
texunit | the texture unit |
void igor::iMaterial::setTiling | ( | const iaVector2f & | tiling | ) |
sets the tiling configuration that can be use in a shader
tiling | column and row count of tiles |
void igor::iMaterial::setVelocityOriented | ( | bool | enable | ) |
sets velocity orientation
enable | if true orientation will be along velocity axis |
|
friend |