10#include "COLLADABUUtils.h"
14 BCExportSettings &export_settings)
15 : COLLADASW::LibraryMaterials(sw), export_settings(export_settings)
22 if (hasMaterials(sce)) {
27 sce, *
this, this->export_settings.get_export_set());
33bool MaterialsExporter::hasMaterials(
Scene *sce)
36 for (node = this->export_settings.get_export_set();
node; node = node->next) {
39 for (a = 0; a < ob->totcol; a++) {
59 openMaterial(mat_id, mat_name);
60 addInstanceEffect(COLLADASW::URI(COLLADABU::Utils::EMPTY_STRING, eff_id));
struct Material * BKE_object_material_get(struct Object *ob, short act)
void operator()(Material *ma, Object *ob)
MaterialsExporter(COLLADASW::StreamWriter *sw, BCExportSettings &export_settings)
void exportMaterials(Scene *sce)
std::string encode_xml(const std::string &xml)
std::string get_material_id(Material *mat)
std::string get_effect_id(Material *mat)
std::string id_name(void *id)
void forEachMaterialInExportSet(Scene *sce, Functor &f, LinkNode *export_set)