Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_cachefile_types.h
| Show All 24 Lines | |||||
| #define __DNA_CACHEFILE_TYPES_H__ | #define __DNA_CACHEFILE_TYPES_H__ | ||||
| #include "DNA_ID.h" | #include "DNA_ID.h" | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct GSet; | |||||
| /* CacheFile::flag */ | /* CacheFile::flag */ | ||||
| enum { | enum { | ||||
| CACHEFILE_DS_EXPAND = (1 << 0), | CACHEFILE_DS_EXPAND = (1 << 0), | ||||
| CACHEFILE_DIRTY = (1 << 1), | CACHEFILE_UNUSED_0 = (1 << 1), | ||||
| }; | }; | ||||
| /* CacheFile::draw_flag */ | /* CacheFile::draw_flag */ | ||||
| enum { | enum { | ||||
| CACHEFILE_KEYFRAME_DRAWN = (1 << 0), | CACHEFILE_KEYFRAME_DRAWN = (1 << 0), | ||||
| }; | }; | ||||
| /* Representation of an object's path inside the Alembic file. | /* Representation of an object's path inside the Alembic file. | ||||
| * Note that this is not a file path. */ | * Note that this is not a file path. */ | ||||
| typedef struct AlembicObjectPath { | typedef struct AlembicObjectPath { | ||||
| struct AlembicObjectPath *next, *prev; | struct AlembicObjectPath *next, *prev; | ||||
| char path[4096]; | char path[4096]; | ||||
| } AlembicObjectPath; | } AlembicObjectPath; | ||||
| typedef struct CacheFile { | typedef struct CacheFile { | ||||
| ID id; | ID id; | ||||
| struct AnimData *adt; | struct AnimData *adt; | ||||
| struct AbcArchiveHandle *handle; | |||||
| void *handle_mutex; | |||||
| /** Paths of the objects inside of the Alembic archive referenced by this CacheFile. */ | /** Paths of the objects inside of the Alembic archive referenced by this CacheFile. */ | ||||
| ListBase object_paths; | ListBase object_paths; | ||||
| /** 1024 = FILE_MAX. */ | /** 1024 = FILE_MAX. */ | ||||
| char filepath[1024]; | char filepath[1024]; | ||||
| char is_sequence; | char is_sequence; | ||||
| char forward_axis; | char forward_axis; | ||||
| char up_axis; | char up_axis; | ||||
| char override_frame; | char override_frame; | ||||
| float scale; | float scale; | ||||
| /** The frame/time to lookup in the cache file. */ | /** The frame/time to lookup in the cache file. */ | ||||
| float frame; | float frame; | ||||
| /** The frame offset to subtract. */ | /** The frame offset to subtract. */ | ||||
| float frame_offset; | float frame_offset; | ||||
| /** Animation flag. */ | /** Animation flag. */ | ||||
| short flag; | short flag; | ||||
| short draw_flag; | short draw_flag; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| /* Runtime */ | |||||
| struct AbcArchiveHandle *handle; | |||||
| char handle_filepath[1024]; | |||||
| struct GSet *handle_readers; | |||||
| } CacheFile; | } CacheFile; | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __DNA_CACHEFILE_TYPES_H__ */ | #endif /* __DNA_CACHEFILE_TYPES_H__ */ | ||||