diff options
author | Hans Goudey <h.goudey@me.com> | 2021-05-22 00:28:19 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-05-22 00:28:29 +0300 |
commit | 2175cbe2ceeffc65517dd21ee94f19bc93094544 (patch) | |
tree | 9389abead58429bc9b6027c37504f35a9c79339a /source/blender/draw/intern/draw_cache_impl.h | |
parent | 2521e17a58b54b93d8ac49a50c44e40358d3076e (diff) |
Cleanup: Move curve draw cache implementation to C++
I'd like to use this file to draw curves from geometry nodes, which
would otherwise require implementing a C API. The changes in this
commit are minimal, mostly just casts and changing to nullptr.
Differential Revision: https://developer.blender.org/D11350
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl.h')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl.h b/source/blender/draw/intern/draw_cache_impl.h index 7b97ce43558..2c2ab9eaadd 100644 --- a/source/blender/draw/intern/draw_cache_impl.h +++ b/source/blender/draw/intern/draw_cache_impl.h @@ -43,6 +43,10 @@ struct bGPdata; #include "BKE_mesh_types.h" +#ifdef __cplusplus +extern "C" { +#endif + /* Expose via BKE callbacks */ void DRW_mball_batch_cache_dirty_tag(struct MetaBall *mb, int mode); void DRW_mball_batch_cache_validate(struct MetaBall *mb); @@ -262,3 +266,7 @@ struct GPUBatch *DRW_particles_batch_cache_get_edit_inner_points(struct Object * struct GPUBatch *DRW_particles_batch_cache_get_edit_tip_points(struct Object *object, struct ParticleSystem *psys, struct PTCacheEdit *edit); + +#ifdef __cplusplus +} +#endif |