Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/wavefront_obj/exporter/obj_export_file_writer.hh
| Context not available. | |||||
| #include "DNA_meshdata_types.h" | #include "DNA_meshdata_types.h" | ||||
| #include "BLI_map.hh" | #include "BLI_map.hh" | ||||
| #include "BLI_set.hh" | |||||
| #include "BLI_vector.hh" | #include "BLI_vector.hh" | ||||
| #include "IO_wavefront_obj.h" | #include "IO_wavefront_obj.h" | ||||
| Context not available. | |||||
| * For consistency of output from run to run (useful for testing), | * For consistency of output from run to run (useful for testing), | ||||
| * the materials are sorted by name before writing. | * the materials are sorted by name before writing. | ||||
| */ | */ | ||||
| void write_materials(); | void write_materials(const char *blen_filepath, | ||||
| ePathReferenceMode path_mode, | |||||
| const char *dest_dir); | |||||
| StringRefNull mtl_file_path() const; | StringRefNull mtl_file_path() const; | ||||
| /** | /** | ||||
| * Add the materials of the given object to #MTLWriter, de-duplicating | * Add the materials of the given object to #MTLWriter, de-duplicating | ||||
| Context not available. | |||||
| * Write a texture map in the form "map_XX -s 1. 1. 1. -o 0. 0. 0. [-bm 1.] path/to/image". | * Write a texture map in the form "map_XX -s 1. 1. 1. -o 0. 0. 0. [-bm 1.] path/to/image". | ||||
| */ | */ | ||||
| void write_texture_map(const MTLMaterial &mtl_material, | void write_texture_map(const MTLMaterial &mtl_material, | ||||
| const Map<const eMTLSyntaxElement, tex_map_XX>::Item &texture_map); | const Map<const eMTLSyntaxElement, tex_map_XX>::Item &texture_map, | ||||
| const char *blen_filedir, | |||||
| const char *dest_dir, | |||||
| ePathReferenceMode mode, | |||||
| Set<std::pair<std::string, std::string>> ©_set); | |||||
| }; | }; | ||||
| } // namespace blender::io::obj | } // namespace blender::io::obj | ||||
| Context not available. | |||||