Blender V4.3
DNA_cachefile_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2016 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "DNA_ID.h"
12
13struct GSet;
14
15/* CacheFile::type */
21
22/* CacheFile::flag */
23enum {
26};
27
28#if 0 /* UNUSED */
29/* CacheFile::draw_flag */
30enum {
31 CACHEFILE_KEYFRAME_DRAWN = (1 << 0),
32};
33#endif
34
35/* Representation of an object's path inside the archive.
36 * Note that this is not a file path. */
37typedef struct CacheObjectPath {
39
40 char path[4096];
42
43/* CacheFileLayer::flag */
44enum { CACHEFILE_LAYER_HIDDEN = (1 << 0) };
45
46typedef struct CacheFileLayer {
48
50 char filepath[1024];
51 int flag;
52 int _pad;
54
55/* CacheFile::velocity_unit
56 * Determines what temporal unit is used to interpret velocity vectors for motion blur effects. */
57enum {
60};
61
62typedef struct CacheFile {
64 struct AnimData *adt;
65
68
70
72 char filepath[1024];
73
76 char up_axis;
78
79 float scale;
81 float frame;
84
85 char _pad[4];
86
88 short flag;
89
90 /* eCacheFileType enum. */
91 char type;
92
99
100 char _pad1[3];
101
104
107
110
111 char _pad2[3];
112
114 /* Name of the velocity property in the archive. */
116
117 /* Runtime */
119 char handle_filepath[1024];
struct GSet GSet
Definition BLI_ghash.h:341
ID and Library types, which are fundamental for SDNA.
@ CACHEFILE_VELOCITY_UNIT_SECOND
@ CACHEFILE_VELOCITY_UNIT_FRAME
@ CACHEFILE_LAYER_HIDDEN
@ CACHEFILE_UNUSED_0
@ CACHEFILE_DS_EXPAND
struct CacheFile CacheFile
@ CACHE_FILE_TYPE_INVALID
@ CACHEFILE_TYPE_ALEMBIC
@ CACHEFILE_TYPE_USD
struct CacheFileLayer CacheFileLayer
struct CacheObjectPath CacheObjectPath
struct CacheFileLayer * prev
struct CacheFileLayer * next
struct CacheArchiveHandle * handle
struct AnimData * adt
ListBase object_paths
char handle_filepath[1024]
struct GSet * handle_readers
char filepath[1024]
char velocity_name[64]
struct CacheObjectPath * next
struct CacheObjectPath * prev
Definition DNA_ID.h:413