Blender V5.3
BKE_cachefile.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2016 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11namespace blender {
12
13struct CacheFile;
14struct CacheFileLayer;
15struct CacheReader;
16struct Depsgraph;
17struct Main;
18struct Object;
19struct Scene;
20
21void *BKE_cachefile_add(Main *bmain, const char *name);
22
23void BKE_cachefile_reload(Depsgraph *depsgraph, CacheFile *cache_file);
24
25void BKE_cachefile_eval(Main *bmain, Depsgraph *depsgraph, CacheFile *cache_file);
26
28 const Depsgraph *depsgraph,
29 const CacheFile *cache_file,
30 char r_filepath[/*FILE_MAX*/ 1024]);
31
32double BKE_cachefile_time_offset(const CacheFile *cache_file, double time, double fps);
33double BKE_cachefile_frame_offset(const CacheFile *cache_file, double time);
34
35/* Modifiers and constraints open and free readers through these. */
37 CacheReader **reader,
38 Object *object,
39 const char *object_path);
40void BKE_cachefile_reader_free(CacheFile *cache_file, CacheReader **reader);
41
47 const char filepath[/*FILE_MAX*/ 1024]);
48
50
52
53} // namespace blender
#define layer
BMesh Iterators.
CacheFileLayer * BKE_cachefile_get_active_layer(CacheFile *cache_file)
Definition cachefile.cc:433
double BKE_cachefile_frame_offset(const CacheFile *cache_file, double time)
Definition cachefile.cc:406
void * BKE_cachefile_add(Main *bmain, const char *name)
Definition cachefile.cc:310
bool BKE_cachefile_filepath_get(const Main *bmain, const Depsgraph *depsgraph, const CacheFile *cache_file, char r_filepath[1024])
void BKE_cachefile_remove_layer(CacheFile *cache_file, CacheFileLayer *layer)
Definition cachefile.cc:439
double BKE_cachefile_time_offset(const CacheFile *cache_file, double time, double fps)
Definition cachefile.cc:399
CacheFileLayer * BKE_cachefile_add_layer(CacheFile *cache_file, const char filepath[1024])
void BKE_cachefile_reader_free(CacheFile *cache_file, CacheReader **reader)
Definition cachefile.cc:211
void BKE_cachefile_eval(Main *bmain, Depsgraph *depsgraph, CacheFile *cache_file)
Definition cachefile.cc:328
void BKE_cachefile_reader_open(CacheFile *cache_file, CacheReader **reader, Object *object, const char *object_path)
Definition cachefile.cc:161
void BKE_cachefile_reload(Depsgraph *depsgraph, CacheFile *cache_file)
Definition cachefile.cc:317