Blender V4.3
BLO_blend_defs.hh 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)
#define BLEN_THUMB_MEMSIZE_FILE(_x, _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')
}

Detailed Description

defines for blend-file codes.

Definition in file BLO_blend_defs.hh.

Macro Definition Documentation

◆ BLEN_THUMB_MEMSIZE_FILE

#define BLEN_THUMB_MEMSIZE_FILE ( _x,
_y )
Value:
(sizeof(int) * (2 + (size_t)(_x) * (size_t)(_y)))
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int

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().

◆ BLEND_MAKE_ID

#define BLEND_MAKE_ID ( a,
b,
c,
d )
Value:
((int)(d) << 24 | (int)(c) << 16 | (b) << 8 | (a))
local_group_size(16, 16) .push_constant(Type b

Definition at line 17 of file BLO_blend_defs.hh.

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
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.