Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_main.h
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct BLI_mempool; | struct BLI_mempool; | ||||
| struct BlendThumbnail; | struct BlendThumbnail; | ||||
| struct GHash; | struct GHash; | ||||
| struct GSet; | struct GSet; | ||||
| struct IDNameLib_Map; | |||||
| struct ImBuf; | struct ImBuf; | ||||
| struct Library; | struct Library; | ||||
| struct MainLock; | struct MainLock; | ||||
| /* Blender thumbnail, as written on file (width, height, and data as char RGBA). */ | /* Blender thumbnail, as written on file (width, height, and data as char RGBA). */ | ||||
| /* We pack pixel data after that struct. */ | /* We pack pixel data after that struct. */ | ||||
| typedef struct BlendThumbnail { | typedef struct BlendThumbnail { | ||||
| int width, height; | int width, height; | ||||
| ▲ Show 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | typedef struct Main { | ||||
| /** | /** | ||||
| * Must be generated, used and freed by same code - never assume this is valid data unless you | * Must be generated, used and freed by same code - never assume this is valid data unless you | ||||
| * know when, who and how it was created. | * know when, who and how it was created. | ||||
| * Used by code doing a lot of remapping etc. at once to speed things up. | * Used by code doing a lot of remapping etc. at once to speed things up. | ||||
| */ | */ | ||||
| struct MainIDRelations *relations; | struct MainIDRelations *relations; | ||||
| /* IDMap of IDs. Currently used when reading (expanding) libraries. */ | |||||
| struct IDNameLib_Map *id_map; | |||||
| struct MainLock *lock; | struct MainLock *lock; | ||||
| } Main; | } Main; | ||||
| struct Main *BKE_main_new(void); | struct Main *BKE_main_new(void); | ||||
| void BKE_main_free(struct Main *mainvar); | void BKE_main_free(struct Main *mainvar); | ||||
| void BKE_main_lock(struct Main *bmain); | void BKE_main_lock(struct Main *bmain); | ||||
| void BKE_main_unlock(struct Main *bmain); | void BKE_main_unlock(struct Main *bmain); | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||