Blender  V2.93
Enumerations | Functions | Variables
BKE_hair.h File Reference

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)
 

Detailed Description

General operations for hairs.

Definition in file BKE_hair.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
BKE_HAIR_BATCH_DIRTY_ALL 

Definition at line 51 of file BKE_hair.h.

Function Documentation

◆ BKE_hair_add()

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().

◆ BKE_hair_batch_cache_dirty_tag()

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().

◆ BKE_hair_batch_cache_free()

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().

◆ BKE_hair_boundbox_get()

struct BoundBox* BKE_hair_boundbox_get ( struct Object *  ob)

◆ BKE_hair_copy_for_eval()

struct Hair* BKE_hair_copy_for_eval ( struct Hair *  hair_src,
bool  reference 
)

◆ BKE_hair_customdata_required()

bool BKE_hair_customdata_required ( struct Hair *  hair,
struct CustomDataLayer *  layer 
)

◆ BKE_hair_data_update()

void BKE_hair_data_update ( struct Depsgraph *  depsgraph,
struct Scene *  scene,
struct Object *  object 
)

◆ BKE_hair_new_for_eval()

struct Hair* BKE_hair_new_for_eval ( const struct Hair *  hair_src,
int  totpoint,
int  totcurve 
)

◆ BKE_hair_update_customdata_pointers()

void BKE_hair_update_customdata_pointers ( struct Hair *  hair)

Variable Documentation

◆ BKE_hair_batch_cache_dirty_tag_cb

void(* BKE_hair_batch_cache_dirty_tag_cb) (struct Hair *hair, int mode) ( struct Hair *  hair,
int  mode 
)
extern

Definition at line 410 of file hair.c.

Referenced by BKE_hair_batch_cache_dirty_tag(), and DRW_engines_register().

◆ BKE_hair_batch_cache_free_cb

void(* BKE_hair_batch_cache_free_cb) (struct Hair *hair) ( struct Hair *  hair)
extern

Definition at line 411 of file hair.c.

Referenced by BKE_hair_batch_cache_free(), and DRW_engines_register().