Blender
V5.3
source
blender
blenloader
BLO_writefile.hh
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
5
#pragma once
6
11
12
#include "
BLI_sys_types.hh
"
13
14
namespace
blender
{
15
16
struct
BlendThumbnail
;
17
struct
Main
;
18
struct
MemFile
;
19
struct
ReportList
;
20
21
/* -------------------------------------------------------------------- */
26
30
enum
eBLO_WritePathRemap
{
32
BLO_WRITE_PATH_REMAP_NONE
= 0,
34
BLO_WRITE_PATH_REMAP_RELATIVE
= 1,
36
BLO_WRITE_PATH_REMAP_RELATIVE_ALL
= 2,
38
BLO_WRITE_PATH_REMAP_ABSOLUTE
= 3,
39
};
40
42
struct
BlendFileWriteParams
{
43
eBLO_WritePathRemap
remap_mode
= {};
45
uint
use_save_versions
: 1 =
false
;
47
uint
use_save_as_copy
: 1 =
false
;
48
uint
use_userdef
: 1 =
false
;
50
uint
is_copypaste_buffer
: 1 =
false
;
51
const
BlendThumbnail
*
thumb
=
nullptr
;
52
};
53
57
extern
bool
BLO_write_file
(
Main
*mainvar,
58
const
char
*filepath,
59
int
write_flags,
60
const
BlendFileWriteParams
*params,
61
ReportList
*reports);
62
66
extern
bool
BLO_write_file_mem
(
Main
*mainvar,
MemFile
*compare,
MemFile
*current,
int
write_flags);
67
69
70
}
// namespace blender
BLI_sys_types.hh
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::uint
unsigned int uint
Definition
BKE_text.h:55
blender::BLO_write_file
bool BLO_write_file(Main *mainvar, const char *filepath, int write_flags, const BlendFileWriteParams *params, ReportList *reports)
Definition
writefile.cc:2176
blender::BLO_write_file_mem
bool BLO_write_file_mem(Main *mainvar, MemFile *compare, MemFile *current, int write_flags)
Definition
writefile.cc:2192
blender::eBLO_WritePathRemap
eBLO_WritePathRemap
Definition
BLO_writefile.hh:30
blender::BLO_WRITE_PATH_REMAP_RELATIVE_ALL
@ BLO_WRITE_PATH_REMAP_RELATIVE_ALL
Definition
BLO_writefile.hh:36
blender::BLO_WRITE_PATH_REMAP_RELATIVE
@ BLO_WRITE_PATH_REMAP_RELATIVE
Definition
BLO_writefile.hh:34
blender::BLO_WRITE_PATH_REMAP_NONE
@ BLO_WRITE_PATH_REMAP_NONE
Definition
BLO_writefile.hh:32
blender::BLO_WRITE_PATH_REMAP_ABSOLUTE
@ BLO_WRITE_PATH_REMAP_ABSOLUTE
Definition
BLO_writefile.hh:38
blender::BlendFileWriteParams
Definition
BLO_writefile.hh:42
blender::BlendFileWriteParams::remap_mode
eBLO_WritePathRemap remap_mode
Definition
BLO_writefile.hh:43
blender::BlendFileWriteParams::is_copypaste_buffer
uint is_copypaste_buffer
Definition
BLO_writefile.hh:50
blender::BlendFileWriteParams::use_userdef
uint use_userdef
Definition
BLO_writefile.hh:48
blender::BlendFileWriteParams::thumb
const BlendThumbnail * thumb
Definition
BLO_writefile.hh:51
blender::BlendFileWriteParams::use_save_as_copy
uint use_save_as_copy
Definition
BLO_writefile.hh:47
blender::BlendFileWriteParams::use_save_versions
uint use_save_versions
Definition
BLO_writefile.hh:45
blender::BlendThumbnail
Definition
BKE_main.hh:131
blender::Main
Definition
BKE_main.hh:243
blender::MemFile
Definition
BLO_undofile.hh:54
blender::ReportList
Definition
BKE_report.hh:78
Generated on
for Blender by
doxygen
1.18.0