Blender  V3.3
DNA_asset_types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 #include "DNA_defs.h"
10 #include "DNA_listBase.h"
11 #include "DNA_uuid_types.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
22 typedef struct AssetTag {
23  struct AssetTag *next, *prev;
24  char name[64]; /* MAX_NAME */
26 
27 #
28 #
29 typedef struct AssetFilterSettings {
32  ListBase tags; /* AssetTag */
33  uint64_t id_types; /* rna_enum_id_type_filter_items */
35 
44 typedef struct AssetMetaData {
47 
50 
56  struct bUUID catalog_id;
62  char catalog_simple_name[64]; /* MAX_NAME */
63 
65  char *author;
66 
68  char *description;
69 
73  ListBase tags; /* AssetTag */
74  short active_tag;
77  short tot_tags;
78 
79  char _pad[4];
81 
82 typedef enum eAssetLibraryType {
83  /* For the future. Display assets bundled with Blender by default. */
84  // ASSET_LIBRARY_BUNDLED = 0,
87  /* For the future. Display assets for the current project. */
88  // ASSET_LIBRARY_PROJECT = 2,
89 
97 
105 typedef struct AssetLibraryReference {
106  short type; /* eAssetLibraryType */
107  char _pad1[2];
115 
121 #
122 #
123 typedef struct AssetHandle {
124  const struct FileDirEntry *file_data;
126 
127 #ifdef __cplusplus
128 }
129 #endif
struct AssetMetaData AssetMetaData
The meta-data of an asset. By creating and giving this for a data-block (ID.asset_data),...
struct AssetFilterSettings AssetFilterSettings
struct AssetHandle AssetHandle
struct AssetLibraryReference AssetLibraryReference
struct AssetTag AssetTag
User defined tag. Currently only used by assets, could be used more often at some point....
eAssetLibraryType
@ ASSET_LIBRARY_CUSTOM
@ ASSET_LIBRARY_LOCAL
These structs are the foundation for all linked lists in the library system.
unsigned __int64 uint64_t
Definition: stdint.h:90
const struct FileDirEntry * file_data
The meta-data of an asset. By creating and giving this for a data-block (ID.asset_data),...
char catalog_simple_name[64]
struct IDProperty * properties
struct AssetTypeInfo * local_type_info
struct bUUID catalog_id
User defined tag. Currently only used by assets, could be used more often at some point....
char name[64]
struct AssetTag * prev
struct AssetTag * next
Universally Unique Identifier according to RFC4122.