Blender
V2.93
source
blender
blenloader
BLO_blend_defs.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*/
16
#pragma once
17
23
/* INTEGER CODES */
24
#ifdef __BIG_ENDIAN__
25
/* Big Endian */
26
# define BLEND_MAKE_ID(a, b, c, d) ((int)(a) << 24 | (int)(b) << 16 | (c) << 8 | (d))
27
#else
28
/* Little Endian */
29
# define BLEND_MAKE_ID(a, b, c, d) ((int)(d) << 24 | (int)(c) << 16 | (b) << 8 | (a))
30
#endif
31
37
enum
{
42
DATA
=
BLEND_MAKE_ID
(
'D'
,
'A'
,
'T'
,
'A'
),
46
GLOB
=
BLEND_MAKE_ID
(
'G'
,
'L'
,
'O'
,
'B'
),
51
DNA1
=
BLEND_MAKE_ID
(
'D'
,
'N'
,
'A'
,
'1'
),
56
TEST
=
BLEND_MAKE_ID
(
'T'
,
'E'
,
'S'
,
'T'
),
61
REND
=
BLEND_MAKE_ID
(
'R'
,
'E'
,
'N'
,
'D'
),
66
USER
=
BLEND_MAKE_ID
(
'U'
,
'S'
,
'E'
,
'R'
),
70
ENDB
=
BLEND_MAKE_ID
(
'E'
,
'N'
,
'D'
,
'B'
),
71
};
72
73
#define BLEN_THUMB_MEMSIZE_FILE(_x, _y) (sizeof(int) * (2 + (size_t)(_x) * (size_t)(_y)))
GLOB
@ GLOB
Definition:
BLO_blend_defs.h:46
DNA1
@ DNA1
Definition:
BLO_blend_defs.h:51
ENDB
@ ENDB
Definition:
BLO_blend_defs.h:70
DATA
@ DATA
Definition:
BLO_blend_defs.h:42
TEST
@ TEST
Definition:
BLO_blend_defs.h:56
USER
@ USER
Definition:
BLO_blend_defs.h:66
REND
@ REND
Definition:
BLO_blend_defs.h:61
BLEND_MAKE_ID
#define BLEND_MAKE_ID(a, b, c, d)
Definition:
BLO_blend_defs.h:29
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1