diff options
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_gpencil.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_gpencil.c | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_gpencil.c b/source/blender/draw/intern/draw_cache_impl_gpencil.c index 24bc03ef154..483e52ed547 100644 --- a/source/blender/draw/intern/draw_cache_impl_gpencil.c +++ b/source/blender/draw/intern/draw_cache_impl_gpencil.c @@ -47,7 +47,10 @@ #define BEZIER_HANDLE (1 << 3) #define COLOR_SHIFT 5 -/* ---------------------------------------------------------------------- */ +/* -------------------------------------------------------------------- */ +/** \name Internal Types + * \{ */ + typedef struct GpencilBatchCache { /** Instancing Data */ GPUVertBuf *vbo; @@ -74,6 +77,12 @@ typedef struct GpencilBatchCache { int cache_frame; } GpencilBatchCache; +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Internal Utilities + * \{ */ + static bool gpencil_batch_cache_valid(GpencilBatchCache *cache, bGPdata *gpd, int cfra) { bool valid = true; @@ -151,6 +160,12 @@ static GpencilBatchCache *gpencil_batch_cache_get(Object *ob, int cfra) return cache; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name BKE Callbacks + * \{ */ + void DRW_gpencil_batch_cache_dirty_tag(bGPdata *gpd) { gpd->flag |= GP_DATA_CACHE_IS_DIRTY; @@ -166,7 +181,7 @@ void DRW_gpencil_batch_cache_free(bGPdata *gpd) /** \} */ /* -------------------------------------------------------------------- */ -/** \name Vertex Formats. +/** \name Vertex Formats * \{ */ /* MUST match the format below. */ @@ -247,7 +262,7 @@ static GPUVertFormat *gpencil_color_format(void) /** \} */ /* -------------------------------------------------------------------- */ -/** \name Vertex Buffers. +/** \name Vertex Buffers * \{ */ typedef struct gpIterData { @@ -681,8 +696,9 @@ void DRW_cache_gpencil_sbuffer_clear(Object *ob) /** \} */ -/* ---------------------------------------------------------------------- */ -/* Edit GPencil Batches */ +/* -------------------------------------------------------------------- */ +/** \name Edit GPencil Batches + * \{ */ #define GP_EDIT_POINT_SELECTED (1 << 0) #define GP_EDIT_STROKE_SELECTED (1 << 1) |