Blender V5.3
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
11namespace blender {
12
17
18struct Curves;
19struct Depsgraph;
20struct Main;
21struct Object;
22struct Scene;
23
24struct Curves *BKE_curves_add(struct Main *bmain, const char *name);
25
27
28void BKE_curves_material_remap(struct Curves *curves, const unsigned int *remap, int remap_num);
29
30/* Depsgraph */
31
32struct Curves *BKE_curves_copy_for_eval(const struct Curves *curves_src);
33
34void BKE_curves_data_update(struct Depsgraph *depsgraph,
35 struct Scene *scene,
36 struct Object *object);
37
38/* Draw Cache */
39
40enum {
42};
43
44void BKE_curves_batch_cache_dirty_tag(struct Curves *curves, int mode);
45void BKE_curves_batch_cache_free(struct Curves *curves);
46
47extern void (*BKE_curves_batch_cache_dirty_tag_cb)(struct Curves *curves, int mode);
48extern void (*BKE_curves_batch_cache_free_cb)(struct Curves *curves);
49
50} // namespace blender
BMesh Iterators.
struct Curves * BKE_curves_add(struct Main *bmain, const char *name)
struct Curves * BKE_curves_copy_for_eval(const struct Curves *curves_src)
void(*) BKE_curves_batch_cache_free_cb(struct Curves *curves)
void BKE_curves_material_remap(struct Curves *curves, const unsigned int *remap, int remap_num)
void BKE_curves_batch_cache_free(struct Curves *curves)
void(*) BKE_curves_batch_cache_dirty_tag_cb(struct Curves *curves, int mode)
void BKE_curves_data_update(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *object)
bool BKE_curves_attribute_required(const struct Curves *curves, StringRef name)
void BKE_curves_batch_cache_dirty_tag(struct Curves *curves, int mode)
@ BKE_CURVES_BATCH_DIRTY_ALL
Definition BKE_curves.h:41