Blender V4.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
11struct CacheFile;
12struct CacheFileLayer;
13struct CacheReader;
14struct Depsgraph;
15struct Main;
16struct Object;
17struct Scene;
18
21
22void *BKE_cachefile_add(Main *bmain, const char *name);
23
24void BKE_cachefile_reload(Depsgraph *depsgraph, CacheFile *cache_file);
25
26void BKE_cachefile_eval(Main *bmain, Depsgraph *depsgraph, CacheFile *cache_file);
27
29 const Depsgraph *depsgraph,
30 const CacheFile *cache_file,
31 char r_filepath[1024]);
32
33double BKE_cachefile_time_offset(const CacheFile *cache_file, double time, double fps);
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
48bool BKE_cache_file_uses_render_procedural(const CacheFile *cache_file, Scene *scene);
49
54CacheFileLayer *BKE_cachefile_add_layer(CacheFile *cache_file, const char filepath[1024]);
55
57
bool BKE_cache_file_uses_render_procedural(const CacheFile *cache_file, Scene *scene)
Definition cachefile.cc:418
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:217
double BKE_cachefile_time_offset(const CacheFile *cache_file, double time, double fps)
Definition cachefile.cc:411
void BKE_cachefiles_init()
Definition cachefile.cc:156
void BKE_cachefile_remove_layer(CacheFile *cache_file, CacheFileLayer *layer)
Definition cachefile.cc:458
CacheFileLayer * BKE_cachefile_get_active_layer(CacheFile *cache_file)
Definition cachefile.cc:452
CacheFileLayer * BKE_cachefile_add_layer(CacheFile *cache_file, const char filepath[1024])
Definition cachefile.cc:431
void * BKE_cachefile_add(Main *bmain, const char *name)
Definition cachefile.cc:318
void BKE_cachefiles_exit()
Definition cachefile.cc:161
void BKE_cachefile_reload(Depsgraph *depsgraph, CacheFile *cache_file)
Definition cachefile.cc:325
void BKE_cachefile_eval(Main *bmain, Depsgraph *depsgraph, CacheFile *cache_file)
Definition cachefile.cc:336
void BKE_cachefile_reader_open(CacheFile *cache_file, CacheReader **reader, Object *object, const char *object_path)
Definition cachefile.cc:166
const Depsgraph * depsgraph