Blender V5.3
DNA_pointcache_types.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
8
9#pragma once
10
11#include "BLI_enum_flags.hh"
12
13#include "DNA_listBase.h"
14
15namespace blender {
16
41
47
49enum ePointCache_Flag : int {
50 PTCACHE_BAKED = 1 << 0,
54 // PTCACHE_BAKE_EDIT = 1 << 4,
55 // PTCACHE_BAKE_EDIT_ACTIVE = 1 << 5,
57 /* removed since 2.64 - #30974, could be added back in a more useful way */
58 // PTCACHE_QUICK_CACHE = 1 << 7,
70
72
75};
77
78
85 PTCACHE_COMPRESS_LZO_DEPRECATED = 1, /* Removed in 5.0. */
86 PTCACHE_COMPRESS_LZMA_DEPRECATED = 2, /* Removed in 5.0. */
88 PTCACHE_COMPRESS_ZSTD_FAST_DEPRECATED = 4, /* Used only during 5.0 alpha. */
89 PTCACHE_COMPRESS_ZSTD_SLOW_DEPRECATED = 8, /* Used only during 5.0 alpha. */
90};
91
93 struct PTCacheExtra *next = nullptr, *prev = nullptr;
95 char _pad[2] = {};
96 unsigned int totdata = 0;
97 void *data = nullptr;
98};
99
101 struct PTCacheMem *next = nullptr, *prev = nullptr;
102 unsigned int frame = 0, totpoint = 0;
103 unsigned int data_types = 0, flag = 0;
104
106 void *data[/*BPHYS_TOT_DATA*/ 8] = {};
107
108 ListBaseT<PTCacheExtra> extradata = {nullptr, nullptr};
109};
110
112 struct PointCache *next = nullptr, *prev = nullptr;
115
129 int step = 0;
130
132 int simframe = 0;
134 int startframe = 0;
136 int endframe = 0;
138 int editframe = 0;
140 int last_exact = 0;
142 int last_valid = 0;
143 char _pad[4] = {};
144
145 /* for external cache files */
147 int totpoint = 0;
149 int index = 0;
152 char _pad0[2] = {};
153
154 char name[64] = "";
155 char prev_name[64] = "";
156 char info[128] = "";
158 char path[/*FILE_MAX*/ 1024] = "";
159
164 char *cached_frames = nullptr;
166 char _pad1[4] = {};
167
168 ListBaseT<PTCacheMem> mem_cache = {nullptr, nullptr};
169
170 struct PTCacheEdit *edit = nullptr;
172 void (*free_edit)(struct PTCacheEdit *edit) = nullptr;
173};
174
175} // namespace blender
#define ENUM_OPERATORS(_enum_type)
These structs are the foundation for all linked lists in the library system.
BMesh Iterators.
@ PTCACHE_COMPRESS_LZMA_DEPRECATED
@ PTCACHE_COMPRESS_ZSTD_FAST_DEPRECATED
@ PTCACHE_COMPRESS_LZO_DEPRECATED
@ PTCACHE_COMPRESS_ZSTD_SLOW_DEPRECATED
@ PTCACHE_COMPRESS_ZSTD_FILTERED
@ BPHYS_EXTRA_CLOTH_ACCELERATION
struct PTCacheExtra * prev
struct PTCacheExtra * next
ePointCache_ExtraDataType type
struct PTCacheMem * prev
struct PTCacheMem * next
ListBaseT< PTCacheExtra > extradata
ListBaseT< PTCacheMem > mem_cache
PointCacheCompression compression
void(*) free_edit(struct PTCacheEdit *edit)
struct PointCache * prev
struct PointCache * next
struct PTCacheEdit * edit