Blender  V3.3
Classes | Typedefs | Enumerations
DNA_asset_types.h File Reference
#include "DNA_defs.h"
#include "DNA_listBase.h"
#include "DNA_uuid_types.h"

Go to the source code of this file.

Classes

struct  AssetTag
 User defined tag. Currently only used by assets, could be used more often at some point. Maybe add a custom icon and color to these in future? More...
 
struct  AssetFilterSettings
 
struct  AssetMetaData
 The meta-data of an asset. By creating and giving this for a data-block (ID.asset_data), the data-block becomes an asset. More...
 
struct  AssetLibraryReference
 
struct  AssetHandle
 

Typedefs

typedef struct AssetTag AssetTag
 User defined tag. Currently only used by assets, could be used more often at some point. Maybe add a custom icon and color to these in future? More...
 
typedef struct AssetFilterSettings AssetFilterSettings
 
typedef struct AssetMetaData AssetMetaData
 The meta-data of an asset. By creating and giving this for a data-block (ID.asset_data), the data-block becomes an asset. More...
 
typedef enum eAssetLibraryType eAssetLibraryType
 
typedef struct AssetLibraryReference AssetLibraryReference
 
typedef struct AssetHandle AssetHandle
 

Enumerations

enum  eAssetLibraryType { ASSET_LIBRARY_LOCAL = 1 , ASSET_LIBRARY_CUSTOM = 100 }
 

Typedef Documentation

◆ AssetFilterSettings

◆ AssetHandle

typedef struct AssetHandle AssetHandle

Not part of the core design, we should try to get rid of it. Only needed to wrap FileDirEntry into a type with PropertyGroup as base, so we can have an RNA collection of AssetHandle's to pass to the UI.

◆ AssetLibraryReference

Information to identify a asset library. May be either one of the predefined types (current 'Main', builtin library, project library), or a custom type as defined in the Preferences.

If the type is set to ASSET_LIBRARY_CUSTOM, custom_library_index must be set to identify the custom library. Otherwise it is not used.

◆ AssetMetaData

typedef struct AssetMetaData AssetMetaData

The meta-data of an asset. By creating and giving this for a data-block (ID.asset_data), the data-block becomes an asset.

Note
This struct must be readable without having to read anything but blocks from the ID it is attached to! That way, asset information of a file can be read, without reading anything more than that from the file. So pointers to other IDs or ID data are strictly forbidden.

◆ AssetTag

typedef struct AssetTag AssetTag

User defined tag. Currently only used by assets, could be used more often at some point. Maybe add a custom icon and color to these in future?

◆ eAssetLibraryType

Enumeration Type Documentation

◆ eAssetLibraryType

Enumerator
ASSET_LIBRARY_LOCAL 

Display assets from the current session (current "Main").

ASSET_LIBRARY_CUSTOM 

Display assets from custom asset libraries, as defined in the preferences (bUserAssetLibrary). The name will be taken from #FileSelectParams.asset_library_ref.idname then. In RNA, we add the index of the custom library to this to identify it by index. So keep this last!

Definition at line 82 of file DNA_asset_types.h.