|
Blender
V2.93
|
Go to the source code of this file.
Classes | |
| struct | ParticleHairFinalCache |
| struct | ParticleHairCache |
Macros | |
| #define | MAX_LAYER_NAME_CT 4 /* u0123456789, u, au, a0123456789 */ |
| #define | MAX_LAYER_NAME_LEN (GPU_MAX_SAFE_ATTR_NAME + 2) |
| #define | MAX_THICKRES 2 /* see eHairType */ |
| #define | MAX_HAIR_SUBDIV 4 /* see hair_subdiv rna */ |
Typedefs | |
| typedef struct ParticleHairFinalCache | ParticleHairFinalCache |
| typedef struct ParticleHairCache | ParticleHairCache |
Functions | |
| void | particle_batch_cache_clear_hair (struct ParticleHairCache *hair_cache) |
| bool | particles_ensure_procedural_data (struct Object *object, struct ParticleSystem *psys, struct ModifierData *md, struct ParticleHairCache **r_hair_cache, int subdiv, int thickness_res) |
| bool | hair_ensure_procedural_data (struct Object *object, struct ParticleHairCache **r_hair_cache, int subdiv, int thickness_res) |
| #define MAX_HAIR_SUBDIV 4 /* see hair_subdiv rna */ |
Definition at line 29 of file draw_hair_private.h.
| #define MAX_LAYER_NAME_CT 4 /* u0123456789, u, au, a0123456789 */ |
Definition at line 26 of file draw_hair_private.h.
| #define MAX_LAYER_NAME_LEN (GPU_MAX_SAFE_ATTR_NAME + 2) |
Definition at line 27 of file draw_hair_private.h.
| #define MAX_THICKRES 2 /* see eHairType */ |
Definition at line 28 of file draw_hair_private.h.
| typedef struct ParticleHairCache ParticleHairCache |
| typedef struct ParticleHairFinalCache ParticleHairFinalCache |
| bool hair_ensure_procedural_data | ( | struct Object * | object, |
| struct ParticleHairCache ** | r_hair_cache, | ||
| int | subdiv, | ||
| int | thickness_res | ||
| ) |
Definition at line 310 of file draw_cache_impl_hair.c.
References ensure_seg_pt_count(), HairBatchCache::hair, hair_batch_cache_ensure_procedural_final_points(), hair_batch_cache_ensure_procedural_indices(), hair_batch_cache_ensure_procedural_pos(), hair_batch_cache_ensure_procedural_strand_data(), hair_batch_cache_get(), NULL, and steps.
Referenced by drw_hair_particle_cache_get().
| void particle_batch_cache_clear_hair | ( | struct ParticleHairCache * | hair_cache | ) |
Definition at line 182 of file draw_cache_impl_particles.c.
References ParticleHairCache::col_tex, DRW_TEXTURE_FREE_SAFE, ParticleHairCache::final, GPU_BATCH_DISCARD_SAFE, GPU_INDEXBUF_DISCARD_SAFE, GPU_VERTBUF_DISCARD_SAFE, ParticleHairCache::hairs, ParticleHairCache::indices, MAX_HAIR_SUBDIV, MAX_MCOL, MAX_MTFACE, MAX_THICKRES, ParticleHairCache::point_tex, ParticleHairCache::pos, ParticleHairFinalCache::proc_buf, ParticleHairCache::proc_col_buf, ParticleHairFinalCache::proc_hairs, ParticleHairCache::proc_point_buf, ParticleHairCache::proc_strand_buf, ParticleHairCache::proc_strand_seg_buf, ParticleHairFinalCache::proc_tex, ParticleHairCache::proc_uv_buf, ParticleHairCache::strand_seg_tex, ParticleHairCache::strand_tex, and ParticleHairCache::uv_tex.
Referenced by hair_batch_cache_clear(), and particle_batch_cache_clear().
| bool particles_ensure_procedural_data | ( | struct Object * | object, |
| struct ParticleSystem * | psys, | ||
| struct ModifierData * | md, | ||
| struct ParticleHairCache ** | r_hair_cache, | ||
| int | subdiv, | ||
| int | thickness_res | ||
| ) |
Definition at line 1648 of file draw_cache_impl_particles.c.
References ParticleSettings::draw_step, drw_particle_get_hair_source(), drw_particle_update_ptcache(), ParticleDrawSource::edit, ensure_seg_pt_count(), ParticleHairCache::final, ParticleBatchCache::hair, ParticleDrawSource::md, NULL, ParticleSystem::part, particle_batch_cache_ensure_procedural_final_points(), particle_batch_cache_ensure_procedural_indices(), particle_batch_cache_ensure_procedural_pos(), particle_batch_cache_ensure_procedural_strand_data(), particle_batch_cache_get(), ParticleDrawSource::psys, and ParticleHairFinalCache::strands_res.
Referenced by drw_hair_particle_cache_get().