Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_material.h
| Show All 32 Lines | |||||
| struct Material; | struct Material; | ||||
| struct Object; | struct Object; | ||||
| struct Scene; | struct Scene; | ||||
| struct bNode; | struct bNode; | ||||
| /* materials */ | /* materials */ | ||||
| void init_def_material(void); | void init_def_material(void); | ||||
| void BKE_material_gpencil_free_default(void); | |||||
| void BKE_material_free(struct Material *ma); | void BKE_material_free(struct Material *ma); | ||||
| void test_object_materials(struct Main *bmain, struct Object *ob, struct ID *id); | void test_object_materials(struct Main *bmain, struct Object *ob, struct ID *id); | ||||
| void test_all_objects_materials(struct Main *bmain, struct ID *id); | void test_all_objects_materials(struct Main *bmain, struct ID *id); | ||||
| void BKE_material_resize_object(struct Main *bmain, | void BKE_material_resize_object(struct Main *bmain, | ||||
| struct Object *ob, | struct Object *ob, | ||||
| const short totcol, | const short totcol, | ||||
| bool do_id_user); | bool do_id_user); | ||||
| void BKE_material_init(struct Material *ma); | void BKE_material_init(struct Material *ma); | ||||
| void BKE_material_gpencil_init(struct Material *ma); | |||||
| void BKE_material_remap_object(struct Object *ob, const unsigned int *remap); | void BKE_material_remap_object(struct Object *ob, const unsigned int *remap); | ||||
| void BKE_material_remap_object_calc(struct Object *ob_dst, | void BKE_material_remap_object_calc(struct Object *ob_dst, | ||||
| struct Object *ob_src, | struct Object *ob_src, | ||||
| short *remap_src_to_dst); | short *remap_src_to_dst); | ||||
| struct Material *BKE_material_add(struct Main *bmain, const char *name); | struct Material *BKE_material_add(struct Main *bmain, const char *name); | ||||
| struct Material *BKE_material_add_gpencil(struct Main *bmain, const char *name); | struct Material *BKE_material_add_gpencil(struct Main *bmain, const char *name); | ||||
| void BKE_material_copy_data(struct Main *bmain, | void BKE_material_copy_data(struct Main *bmain, | ||||
| struct Material *ma_dst, | struct Material *ma_dst, | ||||
| Show All 30 Lines | void assign_material( | ||||
| struct Main *bmain, struct Object *ob, struct Material *ma, short act, int assign_type); | struct Main *bmain, struct Object *ob, struct Material *ma, short act, int assign_type); | ||||
| void assign_matarar(struct Main *bmain, struct Object *ob, struct Material ***matar, short totcol); | void assign_matarar(struct Main *bmain, struct Object *ob, struct Material ***matar, short totcol); | ||||
| short BKE_object_material_slot_find_index(struct Object *ob, struct Material *ma); | short BKE_object_material_slot_find_index(struct Object *ob, struct Material *ma); | ||||
| bool BKE_object_material_slot_add(struct Main *bmain, struct Object *ob); | bool BKE_object_material_slot_add(struct Main *bmain, struct Object *ob); | ||||
| bool BKE_object_material_slot_remove(struct Main *bmain, struct Object *ob); | bool BKE_object_material_slot_remove(struct Main *bmain, struct Object *ob); | ||||
| bool BKE_object_material_slot_used(struct ID *id, short actcol); | bool BKE_object_material_slot_used(struct ID *id, short actcol); | ||||
| struct Material *BKE_material_gpencil_get(struct Object *ob, short act); | |||||
| struct MaterialGPencilStyle *BKE_material_gpencil_settings_get(struct Object *ob, short act); | struct MaterialGPencilStyle *BKE_material_gpencil_settings_get(struct Object *ob, short act); | ||||
| void BKE_texpaint_slot_refresh_cache(struct Scene *scene, struct Material *ma); | void BKE_texpaint_slot_refresh_cache(struct Scene *scene, struct Material *ma); | ||||
| void BKE_texpaint_slots_refresh_object(struct Scene *scene, struct Object *ob); | void BKE_texpaint_slots_refresh_object(struct Scene *scene, struct Object *ob); | ||||
| struct bNode *BKE_texpaint_slot_material_find_node(struct Material *ma, short texpaint_slot); | struct bNode *BKE_texpaint_slot_material_find_node(struct Material *ma, short texpaint_slot); | ||||
| /* rna api */ | /* rna api */ | ||||
| void BKE_material_resize_id(struct Main *bmain, struct ID *id, short totcol, bool do_id_user); | void BKE_material_resize_id(struct Main *bmain, struct ID *id, short totcol, bool do_id_user); | ||||
| Show All 15 Lines | |||||
| /* Dependency graph evaluation. */ | /* Dependency graph evaluation. */ | ||||
| struct Depsgraph; | struct Depsgraph; | ||||
| void BKE_material_eval(struct Depsgraph *depsgraph, struct Material *material); | void BKE_material_eval(struct Depsgraph *depsgraph, struct Material *material); | ||||
| extern struct Material defmaterial; | extern struct Material defmaterial; | ||||
| extern struct Material defgpencil_material; | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif | #endif | ||||