Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_material.h
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | |||||
| void BKE_id_materials_copy(struct Main *bmain, struct ID *id_src, struct ID *id_dst); | void BKE_id_materials_copy(struct Main *bmain, struct ID *id_src, struct ID *id_dst); | ||||
| void BKE_id_material_resize(struct Main *bmain, struct ID *id, short totcol, bool do_id_user); | void BKE_id_material_resize(struct Main *bmain, struct ID *id, short totcol, bool do_id_user); | ||||
| void BKE_id_material_append(struct Main *bmain, struct ID *id, struct Material *ma); | void BKE_id_material_append(struct Main *bmain, struct ID *id, struct Material *ma); | ||||
| struct Material *BKE_id_material_pop(struct Main *bmain, | struct Material *BKE_id_material_pop(struct Main *bmain, | ||||
| struct ID *id, | struct ID *id, | ||||
| /* index is an int because of RNA. */ | /* index is an int because of RNA. */ | ||||
| int index); | int index); | ||||
| void BKE_id_material_clear(struct Main *bmain, struct ID *id); | void BKE_id_material_clear(struct Main *bmain, struct ID *id); | ||||
| /* eval api */ | |||||
| struct Material *BKE_object_material_get_eval(struct Object *ob, short act); | |||||
| int BKE_object_material_count_eval(struct Object *ob); | |||||
| /* rendering */ | /* rendering */ | ||||
| void ramp_blend(int type, float r_col[3], const float fac, const float col[3]); | void ramp_blend(int type, float r_col[3], const float fac, const float col[3]); | ||||
| /* copy/paste */ | /* copy/paste */ | ||||
| void BKE_material_copybuf_clear(void); | void BKE_material_copybuf_clear(void); | ||||
| void BKE_material_copybuf_free(void); | void BKE_material_copybuf_free(void); | ||||
| void BKE_material_copybuf_copy(struct Main *bmain, struct Material *ma); | void BKE_material_copybuf_copy(struct Main *bmain, struct Material *ma); | ||||
| Show All 21 Lines | |||||