Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Represents a Wavefront OBJ material as loaded from an MTL file. See also ObjLoader. More...
#include <ioOBJ.hpp>
Public Member Functions | |
ObjMaterial () | |
const fvec3 & | ka () const |
Ka - ambient color. | |
const fvec3 & | kd () const |
Kd - diffuse color. | |
const fvec3 & | ks () const |
Ks - specular color. | |
const fvec3 & | ke () const |
Ke - emissive color. | |
float | tr () const |
Tr/d - transparency. | |
float | ns () const |
Ns - specular exponent. | |
int | illum () const |
illum - illumination model | |
float | ni () const |
Ni - optical density / index of refraction. | |
const ObjTexture & | map_Kd () const |
map_Kd - ambient diffuse | |
const ObjTexture & | map_Ka () const |
map_Ka - ambient color map | |
const ObjTexture & | map_Ks () const |
map_Ks - specular color map | |
const ObjTexture & | map_Ns () const |
map_Ns - specular exponent map | |
const ObjTexture & | map_d () const |
map_d - transparency map | |
const ObjTexture & | map_Decal () const |
decal - decal map | |
const ObjTexture & | map_Disp () const |
disp - displace map | |
const ObjTexture & | map_Bump () const |
bump - bump map | |
void | setKa (const fvec3 &ka) |
Ka - ambient color. | |
void | setKd (const fvec3 &kd) |
Kd - diffuse color. | |
void | setKs (const fvec3 &ks) |
Ks - specular color. | |
void | setKe (const fvec3 &ke) |
Ke - emissive color. | |
void | setTr (float tr) |
Tr/d - transparency. | |
void | setNs (float ns) |
Ns - specular exponent. | |
void | setIllum (int illum) |
illum - illumination model | |
void | setNi (float ni) |
Ni - optical density / index of refraction. | |
void | setMap_Kd (const ObjTexture &map_kd) |
map_Kd - ambient diffuse | |
void | setMap_Ka (const ObjTexture &map_ka) |
map_Ka - ambient color map | |
void | setMap_Ks (const ObjTexture &map_ks) |
map_Ks - specular color map | |
void | setMap_Ns (const ObjTexture &map_ns) |
map_Ns - specular exponent map | |
void | setMap_d (const ObjTexture &map_d) |
map_d - transparency map | |
void | setMap_Decal (const ObjTexture &map_decal) |
decal - decal map | |
void | setMap_Disp (const ObjTexture &map_disp) |
disp - displace map | |
void | setMap_Bump (const ObjTexture &map_bump) |
bump - bump map | |
Protected Attributes | |
fvec3 | mKa |
Ka - ambient color. | |
fvec3 | mKd |
Kd - diffuse color. | |
fvec3 | mKs |
Ks - specular color. | |
fvec3 | mKe |
Ke - emissive color. | |
float | mTr |
Tr/d - transparency. | |
float | mNs |
Ns - specular exponent. | |
int | mIllum |
illum - illumination model | |
float | mNi |
Ni - optical density / index of refraction. | |
ObjTexture | mMap_Kd |
map_Kd - ambient diffuse | |
ObjTexture | mMap_Ka |
map_Ka - ambient color map | |
ObjTexture | mMap_Ks |
map_Ks - specular color map | |
ObjTexture | mMap_Ns |
map_Ns - specular exponent map | |
ObjTexture | mMap_d |
map_d - transparency map | |
ObjTexture | mMap_Decal |
decal - decal map | |
ObjTexture | mMap_Disp |
disp - displace map | |
ObjTexture | mMap_Bump |
bump - bump map |
Represents a Wavefront OBJ material as loaded from an MTL file. See also ObjLoader.
Definition at line 187 of file ioOBJ.hpp.
const fvec3& vl::ObjMaterial::ka | ( | ) | const [inline] |
const fvec3& vl::ObjMaterial::kd | ( | ) | const [inline] |
const fvec3& vl::ObjMaterial::ks | ( | ) | const [inline] |
const fvec3& vl::ObjMaterial::ke | ( | ) | const [inline] |
float vl::ObjMaterial::tr | ( | ) | const [inline] |
float vl::ObjMaterial::ns | ( | ) | const [inline] |
int vl::ObjMaterial::illum | ( | ) | const [inline] |
illum - illumination model
Definition at line 207 of file ioOBJ.hpp.
References mIllum.
Referenced by setIllum().
float vl::ObjMaterial::ni | ( | ) | const [inline] |
const ObjTexture& vl::ObjMaterial::map_Kd | ( | ) | const [inline] |
const ObjTexture& vl::ObjMaterial::map_Ka | ( | ) | const [inline] |
const ObjTexture& vl::ObjMaterial::map_Ks | ( | ) | const [inline] |
const ObjTexture& vl::ObjMaterial::map_Ns | ( | ) | const [inline] |
const ObjTexture& vl::ObjMaterial::map_d | ( | ) | const [inline] |
map_d - transparency map
Definition at line 219 of file ioOBJ.hpp.
References mMap_d.
Referenced by setMap_d().
const ObjTexture& vl::ObjMaterial::map_Decal | ( | ) | const [inline] |
const ObjTexture& vl::ObjMaterial::map_Disp | ( | ) | const [inline] |
const ObjTexture& vl::ObjMaterial::map_Bump | ( | ) | const [inline] |
void vl::ObjMaterial::setKa | ( | const fvec3 & | ka ) | [inline] |
void vl::ObjMaterial::setKd | ( | const fvec3 & | kd ) | [inline] |
void vl::ObjMaterial::setKs | ( | const fvec3 & | ks ) | [inline] |
void vl::ObjMaterial::setKe | ( | const fvec3 & | ke ) | [inline] |
void vl::ObjMaterial::setTr | ( | float | tr ) | [inline] |
void vl::ObjMaterial::setNs | ( | float | ns ) | [inline] |
void vl::ObjMaterial::setIllum | ( | int | illum ) | [inline] |
void vl::ObjMaterial::setNi | ( | float | ni ) | [inline] |
void vl::ObjMaterial::setMap_Kd | ( | const ObjTexture & | map_kd ) | [inline] |
void vl::ObjMaterial::setMap_Ka | ( | const ObjTexture & | map_ka ) | [inline] |
void vl::ObjMaterial::setMap_Ks | ( | const ObjTexture & | map_ks ) | [inline] |
void vl::ObjMaterial::setMap_Ns | ( | const ObjTexture & | map_ns ) | [inline] |
void vl::ObjMaterial::setMap_d | ( | const ObjTexture & | map_d ) | [inline] |
void vl::ObjMaterial::setMap_Decal | ( | const ObjTexture & | map_decal ) | [inline] |
void vl::ObjMaterial::setMap_Disp | ( | const ObjTexture & | map_disp ) | [inline] |
void vl::ObjMaterial::setMap_Bump | ( | const ObjTexture & | map_bump ) | [inline] |
fvec3 vl::ObjMaterial::mKa [protected] |
fvec3 vl::ObjMaterial::mKd [protected] |
fvec3 vl::ObjMaterial::mKs [protected] |
fvec3 vl::ObjMaterial::mKe [protected] |
float vl::ObjMaterial::mTr [protected] |
float vl::ObjMaterial::mNs [protected] |
int vl::ObjMaterial::mIllum [protected] |
illum - illumination model
Definition at line 274 of file ioOBJ.hpp.
Referenced by illum(), and setIllum().
float vl::ObjMaterial::mNi [protected] |
ObjTexture vl::ObjMaterial::mMap_Kd [protected] |
map_Kd - ambient diffuse
Definition at line 278 of file ioOBJ.hpp.
Referenced by map_Kd(), and setMap_Kd().
ObjTexture vl::ObjMaterial::mMap_Ka [protected] |
map_Ka - ambient color map
Definition at line 280 of file ioOBJ.hpp.
Referenced by map_Ka(), and setMap_Ka().
ObjTexture vl::ObjMaterial::mMap_Ks [protected] |
map_Ks - specular color map
Definition at line 282 of file ioOBJ.hpp.
Referenced by map_Ks(), and setMap_Ks().
ObjTexture vl::ObjMaterial::mMap_Ns [protected] |
map_Ns - specular exponent map
Definition at line 284 of file ioOBJ.hpp.
Referenced by map_Ns(), and setMap_Ns().
ObjTexture vl::ObjMaterial::mMap_d [protected] |
map_d - transparency map
Definition at line 286 of file ioOBJ.hpp.
Referenced by map_d(), and setMap_d().
ObjTexture vl::ObjMaterial::mMap_Decal [protected] |
decal - decal map
Definition at line 288 of file ioOBJ.hpp.
Referenced by map_Decal(), and setMap_Decal().
ObjTexture vl::ObjMaterial::mMap_Disp [protected] |
disp - displace map
Definition at line 290 of file ioOBJ.hpp.
Referenced by map_Disp(), and setMap_Disp().
ObjTexture vl::ObjMaterial::mMap_Bump [protected] |
bump - bump map
Definition at line 292 of file ioOBJ.hpp.
Referenced by map_Bump(), and setMap_Bump().