Blender  V3.3
Macros | Enumerations
BLO_blend_defs.h File Reference

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  {
  DATA = BLEND_MAKE_ID('D', 'A', 'T', 'A') , GLOB = BLEND_MAKE_ID('G', 'L', 'O', 'B') , DNA1 = BLEND_MAKE_ID('D', 'N', 'A', '1') , TEST = BLEND_MAKE_ID('T', 'E', 'S', 'T') ,
  REND = BLEND_MAKE_ID('R', 'E', 'N', 'D') , USER = BLEND_MAKE_ID('U', 'S', 'E', 'R') , ENDB = BLEND_MAKE_ID('E', 'N', 'D', 'B')
}
 

Detailed Description

defines for blend-file codes.

Definition in file BLO_blend_defs.h.

Macro Definition Documentation

◆ BLEN_THUMB_MEMSIZE_FILE

#define BLEN_THUMB_MEMSIZE_FILE (   _x,
  _y 
)    (sizeof(int) * (2 + (size_t)(_x) * (size_t)(_y)))

Definition at line 59 of file BLO_blend_defs.h.

◆ BLEND_MAKE_ID

#define BLEND_MAKE_ID (   a,
  b,
  c,
 
)    ((int)(d) << 24 | (int)(c) << 16 | (b) << 8 | (a))

Definition at line 15 of file BLO_blend_defs.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Codes used for BHead.code.

These coexist with ID codes such as ID_OB, ID_SCE ... etc.

Enumerator
DATA 

Arbitrary allocated memory (typically owned by ID's, will be freed when there are no users).

GLOB 

Used for Global struct.

DNA1 

Used for storing the encoded SDNA string (decoded into an SDNA on load).

TEST 

Used to store thumbnail previews, written between REND and GLOB blocks, (ignored for regular file reading).

REND 

Used for RenderInfo, basic Scene and frame range info, can be easily read by other applications without writing a full blend file parser.

USER 

Used for UserDef, (user-preferences data). (written to BLENDER_STARTUP_FILE & BLENDER_USERPREF_FILE).

ENDB 

Terminate reading (no data).

Definition at line 23 of file BLO_blend_defs.h.