Blender V4.5
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
46bool BKE_cache_file_uses_render_procedural(const CacheFile *cache_file, Scene *scene);
47
52CacheFileLayer *BKE_cachefile_add_layer(CacheFile *cache_file, const char filepath[1024]);
53
55
bool BKE_cache_file_uses_render_procedural(const CacheFile *cache_file, Scene *scene)
Definition cachefile.cc:415
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:207
double BKE_cachefile_time_offset(const CacheFile *cache_file, double time, double fps)
Definition cachefile.cc:401
void BKE_cachefile_remove_layer(CacheFile *cache_file, CacheFileLayer *layer)
Definition cachefile.cc:454
CacheFileLayer * BKE_cachefile_get_active_layer(CacheFile *cache_file)
Definition cachefile.cc:448
double BKE_cachefile_frame_offset(const CacheFile *cache_file, double time)
Definition cachefile.cc:408
CacheFileLayer * BKE_cachefile_add_layer(CacheFile *cache_file, const char filepath[1024])
Definition cachefile.cc:428
void * BKE_cachefile_add(Main *bmain, const char *name)
Definition cachefile.cc:308
void BKE_cachefile_reload(Depsgraph *depsgraph, CacheFile *cache_file)
Definition cachefile.cc:315
void BKE_cachefile_eval(Main *bmain, Depsgraph *depsgraph, CacheFile *cache_file)
Definition cachefile.cc:326
void BKE_cachefile_reader_open(CacheFile *cache_file, CacheReader **reader, Object *object, const char *object_path)
Definition cachefile.cc:157
BPy_StructRNA * depsgraph
string name
Definition scene.h:117