Blender V5.3
DNA_fileglobal_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <cstdint>
12
13namespace blender {
14
19struct FileGlobal {
21 char subvstr[4] = "";
22
23 short subversion = 0;
24 short minversion = 0, minsubversion = 0;
25 char _pad[6] = {};
26 struct bScreen *curscreen = nullptr;
27 struct Scene *curscene = nullptr;
28 struct ViewLayer *cur_view_layer = nullptr;
29 void *_pad1 = nullptr;
30
31 int fileflags = 0;
32 int globalf = 0;
36 char build_hash[16] = "";
38 char filepath[/*FILE_MAX*/ 1024] = "";
39
40 /* Working colorspace, for automatic conversion. Note the matrix is
41 * the source of truth, the name is only for user interface and diagnosis. */
42 char colorspace_scene_linear_name[/*MAX_COLORSPACE_NAME*/ 64] = "";
44 int _pad2[3] = {};
45};
46
47/* minversion: in file, the oldest past blender version you can use compliant */
48/* example: if in 2.43 the meshes lose mesh data, minversion is 2.43 then too */
49/* or: in 2.42, subversion 1, same as above, minversion then is 2.42, min subversion 1 */
50/* (defines for version are in the BKE_blender_version.h file, for historic reasons) */
51
52} // namespace blender
BMesh Iterators.
unsigned __int64 uint64_t
Definition BKE_text.h:91
struct bScreen * curscreen
float colorspace_scene_linear_to_xyz[3][3]
struct ViewLayer * cur_view_layer