12#include "COLLADASWInstanceMaterial.h"
27 for (
int a = 0; a < ob->
totcol; a++) {
30 COLLADASW::InstanceMaterialList &iml = bind_material.getInstanceMaterialList();
35 std::ostringstream ostr;
37 COLLADASW::InstanceMaterial im(ostr.str(),
38 COLLADASW::URI(COLLADABU::Utils::EMPTY_STRING, matid));
47 for (
int b = 0;
b < num_layers;
b++) {
48 if (!active_uv_only ||
b == active_uv_index) {
50 im.push_back(COLLADASW::BindVertexInput(name,
"TEXCOORD", map_index++));
CustomData interface, see also DNA_customdata_types.h.
int CustomData_get_active_layer_index(const CustomData *data, eCustomDataType type)
int CustomData_number_of_layers(const CustomData *data, eCustomDataType type)
General operations, lookup, etc. for materials.
struct Material * BKE_object_material_get(struct Object *ob, short act)
void add_material_bindings(COLLADASW::BindMaterial &bind_material, Object *ob, bool active_uv_only)
std::string translate_id(const char *idString)
std::string get_material_id(Material *mat)
const char * bc_CustomData_get_layer_name(const CustomData *data, eCustomDataType type, int n)
local_group_size(16, 16) .push_constant(Type b