Blender V5.0
BKE_curves.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "DNA_curves_types.h"
8
9#include "BLI_string_ref.hh"
10
15
16struct Curves;
17struct Depsgraph;
18struct Main;
19struct Object;
20struct Scene;
21
22struct Curves *BKE_curves_add(struct Main *bmain, const char *name);
23
25
26/* Depsgraph */
27
28struct Curves *BKE_curves_copy_for_eval(const struct Curves *curves_src);
29
30void BKE_curves_data_update(struct Depsgraph *depsgraph,
31 struct Scene *scene,
32 struct Object *object);
33
34/* Draw Cache */
35
36enum {
38};
39
40void BKE_curves_batch_cache_dirty_tag(struct Curves *curves, int mode);
41void BKE_curves_batch_cache_free(struct Curves *curves);
42
43extern void (*BKE_curves_batch_cache_dirty_tag_cb)(struct Curves *curves, int mode);
44extern void (*BKE_curves_batch_cache_free_cb)(struct Curves *curves);
struct Curves * BKE_curves_copy_for_eval(const struct Curves *curves_src)
void(* BKE_curves_batch_cache_dirty_tag_cb)(struct Curves *curves, int mode)
bool BKE_curves_attribute_required(const struct Curves *curves, blender::StringRef name)
void BKE_curves_data_update(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *object)
struct Curves * BKE_curves_add(struct Main *bmain, const char *name)
void BKE_curves_batch_cache_free(struct Curves *curves)
void BKE_curves_batch_cache_dirty_tag(struct Curves *curves, int mode)
void(* BKE_curves_batch_cache_free_cb)(struct Curves *curves)
@ BKE_CURVES_BATCH_DIRTY_ALL
Definition BKE_curves.h:37
BPy_StructRNA * depsgraph
const char * name