Docs: comment BHead.code values
This commit is contained in:
@@ -34,14 +34,45 @@
|
|||||||
# define BLEND_MAKE_ID(a, b, c, d) ( (int)(d) << 24 | (int)(c) << 16 | (b) << 8 | (a) )
|
# define BLEND_MAKE_ID(a, b, c, d) ( (int)(d) << 24 | (int)(c) << 16 | (b) << 8 | (a) )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DATA BLEND_MAKE_ID('D', 'A', 'T', 'A')
|
/**
|
||||||
#define GLOB BLEND_MAKE_ID('G', 'L', 'O', 'B')
|
* Codes used for #BHead.code.
|
||||||
|
*
|
||||||
#define DNA1 BLEND_MAKE_ID('D', 'N', 'A', '1')
|
* These coexist with ID codes such as #ID_OB, #ID_SCE ... etc.
|
||||||
#define TEST BLEND_MAKE_ID('T', 'E', 'S', 'T') /* used as preview between 'REND' and 'GLOB' */
|
*/
|
||||||
#define REND BLEND_MAKE_ID('R', 'E', 'N', 'D')
|
enum {
|
||||||
#define USER BLEND_MAKE_ID('U', 'S', 'E', 'R')
|
/**
|
||||||
|
* Arbitrary allocated memory
|
||||||
#define ENDB BLEND_MAKE_ID('E', 'N', 'D', 'B')
|
* (owned by #ID's, or will leak on exit)
|
||||||
|
*/
|
||||||
|
DATA = BLEND_MAKE_ID('D', 'A', 'T', 'A'),
|
||||||
|
/**
|
||||||
|
* Used for #Global struct.
|
||||||
|
*/
|
||||||
|
GLOB = BLEND_MAKE_ID('G', 'L', 'O', 'B'),
|
||||||
|
/**
|
||||||
|
* Used for storing the encoded SDNA string
|
||||||
|
* (decoded into an #SDNA on load).
|
||||||
|
*/
|
||||||
|
DNA1 = BLEND_MAKE_ID('D', 'N', 'A', '1'),
|
||||||
|
/**
|
||||||
|
* Used as preview between #REND and #GLOB,
|
||||||
|
* (ignored for regular file reading)
|
||||||
|
*/
|
||||||
|
TEST = BLEND_MAKE_ID('T', 'E', 'S', 'T'),
|
||||||
|
/**
|
||||||
|
* Used for #RenderInfo, basic Scene and frame range info,
|
||||||
|
* can be easily read by other applications without writing a full blend file parser.
|
||||||
|
*/
|
||||||
|
REND = BLEND_MAKE_ID('R', 'E', 'N', 'D'),
|
||||||
|
/**
|
||||||
|
* Used for #UserDef, (user-preferences data).
|
||||||
|
* (written to #BLENDER_STARTUP_FILE & #BLENDER_USERPREF_FILE).
|
||||||
|
*/
|
||||||
|
USER = BLEND_MAKE_ID('U', 'S', 'E', 'R'),
|
||||||
|
/**
|
||||||
|
* Terminate reading (no data).
|
||||||
|
*/
|
||||||
|
ENDB = BLEND_MAKE_ID('E', 'N', 'D', 'B'),
|
||||||
|
};
|
||||||
|
|
||||||
#endif /* __BLO_BLEND_DEFS_H__ */
|
#endif /* __BLO_BLEND_DEFS_H__ */
|
||||||
|
@@ -201,7 +201,12 @@ typedef struct PreviewImage {
|
|||||||
# define MAKE_ID2(c, d) ((d) << 8 | (c))
|
# define MAKE_ID2(c, d) ((d) << 8 | (c))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ID from database */
|
/**
|
||||||
|
* ID from database.
|
||||||
|
*
|
||||||
|
* Written to #BHead.code (for file IO)
|
||||||
|
* and the first 2 bytes of #ID.name (for runtime checks, see #GS macro).
|
||||||
|
*/
|
||||||
#define ID_SCE MAKE_ID2('S', 'C') /* Scene */
|
#define ID_SCE MAKE_ID2('S', 'C') /* Scene */
|
||||||
#define ID_LI MAKE_ID2('L', 'I') /* Library */
|
#define ID_LI MAKE_ID2('L', 'I') /* Library */
|
||||||
#define ID_OB MAKE_ID2('O', 'B') /* Object */
|
#define ID_OB MAKE_ID2('O', 'B') /* Object */
|
||||||
|
Reference in New Issue
Block a user