From 0eb32ab22809d9c0c41bfff5082f58b1a7aa9965 Mon Sep 17 00:00:00 2001 From: Luca Rood Date: Tue, 9 May 2017 16:23:47 +0200 Subject: Implement hair drawing with Draw Manager in Clay engine Part of T51378 --- source/blender/draw/intern/draw_cache_impl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/draw/intern/draw_cache_impl.h') diff --git a/source/blender/draw/intern/draw_cache_impl.h b/source/blender/draw/intern/draw_cache_impl.h index ddcc55fd85e..2363d097261 100644 --- a/source/blender/draw/intern/draw_cache_impl.h +++ b/source/blender/draw/intern/draw_cache_impl.h @@ -29,6 +29,7 @@ struct Batch; struct ListBase; struct CurveCache; +struct ParticleSystem; struct Curve; struct Lattice; @@ -44,6 +45,9 @@ void DRW_mesh_batch_cache_free(struct Mesh *me); void DRW_lattice_batch_cache_dirty(struct Lattice *lt, int mode); void DRW_lattice_batch_cache_free(struct Lattice *lt); +void DRW_particle_batch_cache_dirty(struct ParticleSystem *psys, int mode); +void DRW_particle_batch_cache_free(struct ParticleSystem *psys); + /* Curve */ struct Batch *DRW_curve_batch_cache_get_wire_edge(struct Curve *cu, struct CurveCache *ob_curve_cache); struct Batch *DRW_curve_batch_cache_get_normal_edge( @@ -85,4 +89,7 @@ struct Batch *DRW_mesh_batch_cache_get_overlay_loose_edges(struct Mesh *me); struct Batch *DRW_mesh_batch_cache_get_overlay_loose_verts(struct Mesh *me); struct Batch *DRW_mesh_batch_cache_get_overlay_facedots(struct Mesh *me); +/* Particles */ +struct Batch *DRW_particles_batch_cache_get_hair(struct ParticleSystem *psys); + #endif /* __DRAW_CACHE_IMPL_H__ */ -- cgit v1.2.3