Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2022-04-08 19:23:40 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-04-08 19:23:40 +0300
commite15320568a29e163b32e261dc1aaee22404e0dac (patch)
tree8fd74e1dbd0bde5839e846c2f47da028a4a3ce06 /source/blender/draw/intern/draw_cache_impl.h
parent3039b215ba2af5ed63446aba72244b6bc5a4fd18 (diff)
Curves edit mode: show dots for points
This adds support to show dots for the curves points when in edit mode, using a specific overlay. This also adds `DRW_curves_batch_cache_create_requested` which for now only creates the point buffer for the newly added `edit_points` batch. In the future, this will also handle other edit mode overlays, and probably also replace the current curves batch cache creation. Maniphest Tasks: T95770 Differential Revision: https://developer.blender.org/D14262
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl.h')
-rw-r--r--source/blender/draw/intern/draw_cache_impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl.h b/source/blender/draw/intern/draw_cache_impl.h
index e728d8614de..f877c94208f 100644
--- a/source/blender/draw/intern/draw_cache_impl.h
+++ b/source/blender/draw/intern/draw_cache_impl.h
@@ -351,6 +351,16 @@ struct GPUBatch *DRW_particles_batch_cache_get_edit_tip_points(struct Object *ob
/** \} */
+/* -------------------------------------------------------------------- */
+/** \name Curves
+ * \{ */
+
+struct GPUBatch *DRW_curves_batch_cache_get_edit_points(struct Curves *curves);
+
+void DRW_curves_batch_cache_create_requested(const struct Object *ob);
+
+/** \} */
+
#ifdef __cplusplus
}
#endif