Blender V4.3
draw_cache_impl_gpencil_legacy.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2020 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#include "DNA_curve_types.h"
11#include "DNA_meshdata_types.h"
12#include "DNA_screen_types.h"
13
14#include "BKE_deform.hh"
16#include "BKE_gpencil_legacy.h"
17
18#include "DRW_engine.hh"
19#include "DRW_render.hh"
20
21#include "ED_gpencil_legacy.hh"
22#include "GPU_batch.hh"
23
25
26#include "BLI_hash.h"
28#include "BLI_polyfill_2d.h"
29
30#include "draw_cache.hh"
31#include "draw_cache_impl.hh"
32
35
36#define BEZIER_HANDLE (1 << 3)
37#define COLOR_SHIFT 5
38
64
65namespace blender::draw {
66
67/* -------------------------------------------------------------------- */
93
96/* -------------------------------------------------------------------- */
104
111
114/* ---------------------------------------------------------------------- */
126
129} // namespace blender::draw
support for deformation groups and hooks.
@ GP_DATA_CACHE_IS_DIRTY
#define GPU_BATCH_DISCARD_SAFE(batch)
Definition GPU_batch.hh:205
#define GPU_INDEXBUF_DISCARD_SAFE(elem)
#define GPU_VERTBUF_DISCARD_SAFE(verts)
#define MEM_SAFE_FREE(v)
void DRW_gpencil_batch_cache_dirty_tag(bGPdata *gpd)
static void gpencil_batch_cache_clear(GpencilBatchCache *cache)
void DRW_gpencil_batch_cache_free(bGPdata *gpd)
void DRW_cache_gpencil_sbuffer_clear(Object *ob)
blender::gpu::Batch * edit_curve_points_batch
blender::gpu::VertBuf * vbo_col
blender::gpu::Batch * edit_lines_batch
blender::gpu::IndexBuf * ibo
blender::gpu::VertBuf * edit_vbo
blender::gpu::VertBuf * edit_curve_vbo
blender::gpu::Batch * edit_curve_handles_batch
blender::gpu::Batch * edit_points_batch
blender::gpu::Batch * lines_batch
GPUVertBufHandle * sbuffer_color_buf
GPUVertBufHandle * sbuffer_position_buf
struct GpencilBatchCache * gpencil_cache
GPUBatchHandle * sbuffer_batch
struct bGPDstroke * sbuffer_gps
bGPdata_Runtime runtime