Blender V5.0
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
11struct CacheFile;
12struct CacheFileLayer;
13struct CacheReader;
14struct Depsgraph;
15struct Main;
16struct Object;
17struct Scene;
18
19void *BKE_cachefile_add(Main *bmain, const char *name);
20
21void BKE_cachefile_reload(Depsgraph *depsgraph, CacheFile *cache_file);
22
23void BKE_cachefile_eval(Main *bmain, Depsgraph *depsgraph, CacheFile *cache_file);
24
26 const Depsgraph *depsgraph,
27 const CacheFile *cache_file,
28 char r_filepath[1024]);
29
30double BKE_cachefile_time_offset(const CacheFile *cache_file, double time, double fps);
31double BKE_cachefile_frame_offset(const CacheFile *cache_file, double time);
32
33/* Modifiers and constraints open and free readers through these. */
35 CacheReader **reader,
36 Object *object,
37 const char *object_path);
38void BKE_cachefile_reader_free(CacheFile *cache_file, CacheReader **reader);
39
44CacheFileLayer *BKE_cachefile_add_layer(CacheFile *cache_file, const char filepath[1024]);
45
47
bool BKE_cachefile_filepath_get(const Main *bmain, const Depsgraph *depsgraph, const CacheFile *cache_file, char r_filepath[1024])
void BKE_cachefile_reader_free(CacheFile *cache_file, CacheReader **reader)
Definition cachefile.cc:210
double BKE_cachefile_time_offset(const CacheFile *cache_file, double time, double fps)
Definition cachefile.cc:404
void BKE_cachefile_remove_layer(CacheFile *cache_file, CacheFileLayer *layer)
Definition cachefile.cc:444
CacheFileLayer * BKE_cachefile_get_active_layer(CacheFile *cache_file)
Definition cachefile.cc:438
double BKE_cachefile_frame_offset(const CacheFile *cache_file, double time)
Definition cachefile.cc:411
CacheFileLayer * BKE_cachefile_add_layer(CacheFile *cache_file, const char filepath[1024])
Definition cachefile.cc:418
void * BKE_cachefile_add(Main *bmain, const char *name)
Definition cachefile.cc:311
void BKE_cachefile_reload(Depsgraph *depsgraph, CacheFile *cache_file)
Definition cachefile.cc:318
void BKE_cachefile_eval(Main *bmain, Depsgraph *depsgraph, CacheFile *cache_file)
Definition cachefile.cc:329
void BKE_cachefile_reader_open(CacheFile *cache_file, CacheReader **reader, Object *object, const char *object_path)
Definition cachefile.cc:160
BPy_StructRNA * depsgraph
const char * name