|
Blender
V2.93
|
General operations for hairs. More...
Go to the source code of this file.
Enumerations | |
| enum | { BKE_HAIR_BATCH_DIRTY_ALL = 0 } |
Functions | |
| void * | BKE_hair_add (struct Main *bmain, const char *name) |
| struct BoundBox * | BKE_hair_boundbox_get (struct Object *ob) |
| void | BKE_hair_update_customdata_pointers (struct Hair *hair) |
| bool | BKE_hair_customdata_required (struct Hair *hair, struct CustomDataLayer *layer) |
| struct Hair * | BKE_hair_new_for_eval (const struct Hair *hair_src, int totpoint, int totcurve) |
| struct Hair * | BKE_hair_copy_for_eval (struct Hair *hair_src, bool reference) |
| void | BKE_hair_data_update (struct Depsgraph *depsgraph, struct Scene *scene, struct Object *object) |
| void | BKE_hair_batch_cache_dirty_tag (struct Hair *hair, int mode) |
| void | BKE_hair_batch_cache_free (struct Hair *hair) |
Variables | |
| void(* | BKE_hair_batch_cache_dirty_tag_cb )(struct Hair *hair, int mode) |
| void(* | BKE_hair_batch_cache_free_cb )(struct Hair *hair) |
General operations for hairs.
Definition in file BKE_hair.h.
| anonymous enum |
| Enumerator | |
|---|---|
| BKE_HAIR_BATCH_DIRTY_ALL | |
Definition at line 51 of file BKE_hair.h.
| void* BKE_hair_add | ( | struct Main * | bmain, |
| const char * | name | ||
| ) |
Definition at line 250 of file hair.c.
References BKE_id_new(), and ID_HA.
Referenced by BKE_object_obdata_add_from_type().
| void BKE_hair_batch_cache_dirty_tag | ( | struct Hair * | hair, |
| int | mode | ||
| ) |
Definition at line 413 of file hair.c.
References Hair::batch_cache, and BKE_hair_batch_cache_dirty_tag_cb.
Referenced by BKE_object_batch_cache_dirty_tag().
| void BKE_hair_batch_cache_free | ( | struct Hair * | hair | ) |
Definition at line 420 of file hair.c.
References Hair::batch_cache, and BKE_hair_batch_cache_free_cb.
Referenced by hair_free_data().
Definition at line 257 of file hair.c.
References Freestyle::a, Object_Runtime::bb, BKE_boundbox_init_from_minmax(), BLI_assert, BOUNDBOX_DIRTY, Hair::co, Object::data, DO_MAX, DO_MIN, BoundBox::flag, float(), INIT_MINMAX, max, MEM_callocN, min, NULL, OB_HAIR, Hair::radius, Object::runtime, Hair::totpoint, and Object::type.
Referenced by BKE_object_boundbox_get(), and BKE_object_minmax().
Definition at line 321 of file hair.c.
References BKE_id_copy_ex(), Hair::id, LIB_ID_COPY_CD_REFERENCE, LIB_ID_COPY_LOCALIZE, NULL, and result.
Referenced by hair_evaluate_modifiers().
| bool BKE_hair_customdata_required | ( | struct Hair * | hair, |
| struct CustomDataLayer * | layer | ||
| ) |
Referenced by BKE_id_attribute_required().
| void BKE_hair_data_update | ( | struct Depsgraph * | depsgraph, |
| struct Scene * | scene, | ||
| struct Object * | object | ||
| ) |
Definition at line 395 of file hair.c.
References BKE_object_eval_assign_data(), BKE_object_free_derived_caches(), depsgraph, hair_evaluate_modifiers(), Hair::id, and scene.
Referenced by BKE_object_handle_data_update(), and object_force_modifier_update_for_bind().
| void BKE_hair_update_customdata_pointers | ( | struct Hair * | hair | ) |
Definition at line 289 of file hair.c.
References CD_HAIRCURVE, CD_HAIRMAPPING, CD_PROP_FLOAT, CD_PROP_FLOAT3, Hair::cdata, Hair::co, Hair::curves, CustomData_get_layer(), CustomData_get_layer_named(), HAIR_ATTR_POSITION, HAIR_ATTR_RADIUS, Hair::mapping, Hair::pdata, and Hair::radius.
Referenced by BKE_hair_new_for_eval(), hair_blend_read_data(), hair_copy_data(), hair_evaluate_modifiers(), hair_init_data(), and hair_random().
|
extern |
Definition at line 410 of file hair.c.
Referenced by BKE_hair_batch_cache_dirty_tag(), and DRW_engines_register().
Definition at line 411 of file hair.c.
Referenced by BKE_hair_batch_cache_free(), and DRW_engines_register().