|
Blender V4.3
|
defines for blend-file codes. More...
Go to the source code of this file.
Macros | |
| #define | BLEND_MAKE_ID(a, b, c, d) ((int)(d) << 24 | (int)(c) << 16 | (b) << 8 | (a)) |
| #define | BLEN_THUMB_MEMSIZE_FILE(_x, _y) (sizeof(int) * (2 + (size_t)(_x) * (size_t)(_y))) |
Enumerations | |
| enum | { BLO_CODE_DATA = BLEND_MAKE_ID('D', 'A', 'T', 'A') , BLO_CODE_GLOB = BLEND_MAKE_ID('G', 'L', 'O', 'B') , BLO_CODE_DNA1 = BLEND_MAKE_ID('D', 'N', 'A', '1') , BLO_CODE_TEST = BLEND_MAKE_ID('T', 'E', 'S', 'T') , BLO_CODE_REND = BLEND_MAKE_ID('R', 'E', 'N', 'D') , BLO_CODE_USER = BLEND_MAKE_ID('U', 'S', 'E', 'R') , BLO_CODE_ENDB = BLEND_MAKE_ID('E', 'N', 'D', 'B') } |
defines for blend-file codes.
Definition in file BLO_blend_defs.hh.
Definition at line 61 of file BLO_blend_defs.hh.
Referenced by blo_read_file_internal(), BLO_thumbnail_from_file(), read_file_thumbnail(), and write_thumb().
Definition at line 17 of file BLO_blend_defs.hh.
| anonymous enum |
Codes used for BHead.code.
These coexist with ID codes such as ID_OB, ID_SCE ... etc.
| Enumerator | |
|---|---|
| BLO_CODE_DATA | Arbitrary allocated memory (typically owned by ID's, will be freed when there are no users). |
| BLO_CODE_GLOB | Used for Global struct. |
| BLO_CODE_DNA1 | Used for storing the encoded SDNA string (decoded into an SDNA on load). |
| BLO_CODE_TEST | Used to store thumbnail previews, written between #REND and #GLOB blocks, (ignored for regular file reading). |
| BLO_CODE_REND | Used for RenderInfo, basic Scene and frame range info, can be easily read by other applications without writing a full blend file parser. |
| BLO_CODE_USER | Used for UserDef, (user-preferences data). (written to BLENDER_STARTUP_FILE & BLENDER_USERPREF_FILE). |
| BLO_CODE_ENDB | Terminate reading (no data). |
Definition at line 25 of file BLO_blend_defs.hh.