Definition at line 98 of file model.cpp.
Public Member Functions | |
void | attach () |
bool | detach () |
Returns true if the object deleted itself. | |
const int & | get_ref_count () const |
material_file (const string &fname) | |
~material_file () | |
Public Attributes | |
dictionary< material_impl *, string > | materials |
Private Member Functions | |
void | load_mtl_file (const string &fname) |
material_file | ( | const string & | fname | ) |
Definition at line 112 of file model.cpp.
References file::get_full_path(), material_file::load_mtl_file(), string::make_lower(), string::right_substring(), and string::w_string().
~material_file | ( | ) |
void attach | ( | ) | [inherited] |
Definition at line 53 of file shared.cpp.
References shared_object::ref_count.
Referenced by font::font(), material::material(), model_part::model_part(), string::operator=(), string::string(), texture::texture(), and string::unshare().
bool detach | ( | ) | [inherited] |
Returns true if the object deleted itself.
Definition at line 59 of file shared.cpp.
References shared_object::ref_count.
Referenced by string::make_null(), string::unshare(), font::~font(), and texture::~texture().
const int& get_ref_count | ( | ) | const [inline, inherited] |
void load_mtl_file | ( | const string & | fname | ) | [private] |
Definition at line 134 of file model.cpp.
References material_impl::ambient, ft_stream::at_end(), color::COMPONENT_ALPHA, color::COMPONENT_BLUE, color::COMPONENT_GREEN, color::COMPONENT_RED, material_impl::diffuse, material_impl::flat, file::get_dir_name(), material_file::materials, material_impl::shininess, string::size(), material_impl::specular, string::split(), material_impl::tex, string::trim(), and string::w_string().
Referenced by material_file::material_file().
Definition at line 102 of file model.cpp.
Referenced by material_file::load_mtl_file(), material::material(), and material_file::~material_file().