|
Blender V5.0
|
#include <obj_import_file_reader.hh>
Public Member Functions | |
| MTLParser (StringRefNull mtl_library_, StringRefNull obj_filepath) | |
| void | parse_and_store (Map< std::string, std::unique_ptr< MTLMaterial > > &r_materials) |
Definition at line 63 of file obj_import_file_reader.hh.
| blender::io::obj::MTLParser::MTLParser | ( | StringRefNull | mtl_library_, |
| StringRefNull | obj_filepath ) |
Open material library file.
Definition at line 872 of file obj_import_file_reader.cc.
References BLI_path_join, BLI_path_normalize(), BLI_path_split_dir_part(), blender::StringRefBase::data(), FILE_MAX, and FILE_MAXDIR.
| void blender::io::obj::MTLParser::parse_and_store | ( | Map< std::string, std::unique_ptr< MTLMaterial > > & | r_materials | ) |
Read MTL file(s) and add MTLMaterial instances to the given Map reference.
Definition at line 884 of file obj_import_file_reader.cc.
References blender::io::obj::MTLMaterial::alpha, blender::io::obj::MTLMaterial::ambient_color, blender::io::obj::MTLMaterial::aniso, blender::io::obj::MTLMaterial::aniso_rot, blender::StringRefBase::begin(), BLI_file_read_text_as_mem(), blender::io::obj::MTLMaterial::cc_roughness, blender::io::obj::MTLMaterial::cc_thickness, CLOG_ERROR, blender::io::obj::MTLMaterial::color, blender::io::drop_whitespace(), blender::io::obj::MTLMaterial::emission_color, blender::StringRefBase::end(), blender::io::obj::MTLMaterial::illum_mode, blender::io::obj::MTLMaterial::ior, blender::StringRefBase::is_empty(), LOG, MEM_freeN(), blender::io::obj::MTLMaterial::metallic, blender::io::parse_float(), blender::io::parse_floats(), blender::io::obj::parse_keyword(), blender::io::obj::parse_texture_map(), blender::io::read_next_line(), blender::io::obj::MTLMaterial::roughness, blender::io::obj::MTLMaterial::sheen, blender::io::obj::MTLMaterial::spec_color, blender::io::obj::MTLMaterial::spec_exponent, blender::io::obj::MTLMaterial::transmit_color, and blender::StringRefBase::trim().
Referenced by blender::io::obj::OBJMTLParserTest::check_impl(), and blender::io::obj::importer_main().