8 #include "COLLADABUUtils.h"
12 BCExportSettings &export_settings)
13 : COLLADASW::LibraryMaterials(
sw), export_settings(export_settings)
20 if (hasMaterials(sce)) {
25 sce, *
this, this->export_settings.get_export_set());
31 bool MaterialsExporter::hasMaterials(
Scene *sce)
34 for (
node = this->export_settings.get_export_set();
node;
node =
node->next) {
57 openMaterial(mat_id, mat_name);
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 get_material_id(Material *mat)
std::string encode_xml(std::string xml)
std::string get_effect_id(Material *mat)
std::string id_name(void *id)
ccl_gpu_kernel_postfix ccl_global float int int int sw
void forEachMaterialInExportSet(Scene *sce, Functor &f, LinkNode *export_set)