Public Types | |
enum | color_component_t { COLOR_RED = 0, COLOR_GREEN = 1, COLOR_BLUE = 2 } |
Public Member Functions | |
OBJMtl (const string &mtl_name="", double ambt_r=0.2, double ambt_g=0.2, double ambt_b=0.2, double diff_r=0.8, double diff_g=0.8, double diff_b=0.8, double spec_r=1.0, double spec_g=1.0, double spec_b=1.0, double trans=1.0, double shin=0.0, int illum=1, const string &texture_color_diffuse_filename="") | |
const string & | get_name () const |
double | get_ambient (color_component_t comp) const |
void | set_ambient (color_component_t comp, double val) |
void | set_ambient (double ambient[3]) |
double | get_diffuse (color_component_t comp) const |
void | set_diffuse (color_component_t comp, double val) |
void | set_diffuse (double diffuse[3]) |
double | get_specular (color_component_t comp) const |
void | set_specular (color_component_t comp, double val) |
void | set_specular (double specular[3]) |
double | get_transparency () const |
void | set_transparency (double trans) |
double | get_shininess () const |
void | set_shininess (double shin) |
int | get_illumination_model () const |
void | set_illumination_model (int illum) |
const string & | get_diffuse_texture_map () const |
void | set_diffuse_texture_map (const string &texmap) |
Private Attributes | |
string | name |
double | color_ambient [3] |
double | color_diffuse [3] |
double | color_specular [3] |
double | transparency |
double | shininess |
int | illumination_model |
string | texmap_color_diffuse |
Definition at line 376 of file objreader.C.
|
Definition at line 380 of file objreader.C. |
|
Definition at line 461 of file objreader.C. References color_ambient, color_diffuse, and color_specular. |
|
Definition at line 392 of file objreader.C. References color_ambient. |
|
Definition at line 401 of file objreader.C. References color_diffuse. |
|
Definition at line 437 of file objreader.C. References texmap_color_diffuse. |
|
Definition at line 431 of file objreader.C. References illumination_model. |
|
Definition at line 389 of file objreader.C. |
|
Definition at line 425 of file objreader.C. References shininess. |
|
Definition at line 410 of file objreader.C. References color_specular. |
|
Definition at line 419 of file objreader.C. References transparency. |
|
Definition at line 398 of file objreader.C. References color_ambient. |
|
Definition at line 395 of file objreader.C. References color_ambient. |
|
Definition at line 407 of file objreader.C. References color_diffuse. |
|
Definition at line 404 of file objreader.C. References color_diffuse. |
|
Definition at line 440 of file objreader.C. References texmap_color_diffuse. |
|
Definition at line 434 of file objreader.C. References illumination_model. |
|
Definition at line 428 of file objreader.C. References shininess. |
|
Definition at line 416 of file objreader.C. References color_specular. |
|
Definition at line 413 of file objreader.C. References color_specular. |
|
Definition at line 422 of file objreader.C. References transparency. |
|
Definition at line 447 of file objreader.C. Referenced by get_ambient(), OBJMtl(), and set_ambient(). |
|
Definition at line 448 of file objreader.C. Referenced by get_diffuse(), OBJMtl(), and set_diffuse(). |
|
Definition at line 449 of file objreader.C. Referenced by get_specular(), OBJMtl(), and set_specular(). |
|
Definition at line 455 of file objreader.C. Referenced by get_illumination_model(), and set_illumination_model(). |
|
Definition at line 445 of file objreader.C. |
|
Definition at line 453 of file objreader.C. Referenced by get_shininess(), and set_shininess(). |
|
Definition at line 457 of file objreader.C. Referenced by get_diffuse_texture_map(), and set_diffuse_texture_map(). |
|
Definition at line 451 of file objreader.C. Referenced by get_transparency(), and set_transparency(). |